/* ============================================================
   MCRES 选料 - 首页样式（Hero 两栏）
   ============================================================ */

body {
    padding-top: 0;
}

.main-content {
    max-width: none;
    padding: 0;
}

.homepage {
    width: 100%;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    padding: calc(var(--navbar-height) + 28px) 20px 56px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(0.5);
}

.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0)    0%,
        rgba(0, 0, 0, 0.08) 55%,
        rgba(0, 0, 0, 0.35) 100%
    );
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    width: 100%;
    text-align: center;
}

.hero-head {
    margin-bottom: 24px;
}

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    text-decoration: none;
}

.hero-brand img {
    height: 44px;
    filter: drop-shadow(0 4px 16px rgba(168, 85, 247, 0.45));
}

.hero-brand-text {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-brand-text .mc {
    color: #fff;
}

.hero-brand-text .hl {
    color: var(--accent);
}

.hero-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.3px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Hero 两栏主体
   ============================================================ */
.hero-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    text-align: left;
}

/* ============================================================
   左：配置卡
   ============================================================ */
.config-card {
    background: rgba(18, 22, 30, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease;
}

.config-card:hover {
    border-color: rgba(168, 85, 247, 0.28);
}

/* 我的配置栏 */
.my-configs-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.my-configs-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-bright);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.my-configs-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.my-configs-control select {
    flex: 1;
    min-width: 120px;
    padding: 6px 28px 6px 10px;
    background: rgba(11, 15, 20, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='3'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: var(--transition);
}

.my-configs-control select:hover,
.my-configs-control select:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.4);
}

.my-configs-control select option {
    background: #11161c;
    color: var(--text-primary);
}

.my-configs-control .manage-link {
    font-size: 12px;
    color: var(--accent-bright);
    white-space: nowrap;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.my-configs-control .manage-link:hover {
    color: var(--accent);
}

.my-configs-control .manage-link i {
    font-size: 9px;
}

/* ============================================================
   配置行（一字段一行）
   ============================================================ */
.config-rows {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cfg-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
}

.cfg-label {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.cfg-label i {
    color: var(--accent);
    font-size: 11px;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
}

.cfg-inputs {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.cfg-inputs-2 {
    grid-template-columns: 1fr 1.4fr;
}

.cfg-inputs select {
    width: 100%;
    padding: 8px 30px 8px 12px;
    background: rgba(11, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    color: #e8edf2;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='3'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 0;
    height: 38px;
}

.cfg-inputs select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(11, 15, 20, 0.9);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.cfg-inputs select:hover {
    border-color: rgba(168, 85, 247, 0.4);
}

.cfg-inputs select option {
    background: #11161c;
    color: #e8edf2;
}

/* ============================================================
   ★ 硬件搜索选择器（GPU / CPU）— 首页上下文
   ============================================================ */
.hw-search {
    position: relative;
    width: 100%;
    min-width: 0;
}

.cfg-inputs .hw-search-input {
    width: 100%;
    padding: 8px 30px 8px 12px;
    background: rgba(11, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    color: #e8edf2;
    font-size: 13px;
    font-family: inherit;
    height: 38px;
    min-width: 0;
    transition: var(--transition);
    outline: none;
}

.cfg-inputs .hw-search-input::placeholder {
    color: var(--text-muted);
}

.cfg-inputs .hw-search-input:hover {
    border-color: rgba(168, 85, 247, 0.4);
}

.cfg-inputs .hw-search-input:focus {
    border-color: var(--accent);
    background-color: rgba(11, 15, 20, 0.9);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.hw-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
    pointer-events: none;
}

.hw-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(18, 22, 30, 0.98);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    z-index: 60;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hw-search-results[hidden] {
    display: none !important;
}

.hw-search-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
    color: var(--text-primary);
}

.hw-search-item:last-child {
    border-bottom: none;
}

.hw-search-item:hover,
.hw-search-item.active {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-bright);
}

.hw-search-item mark {
    background: rgba(168, 85, 247, 0.28);
    color: var(--accent-bright);
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 600;
}

.hw-search-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.hw-search-tier {
    margin-left: auto;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent);
    opacity: 0.85;
    flex-shrink: 0;
    font-family: ui-monospace, Consolas, monospace;
}

.hw-search-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* 提交按钮 */
.cfg-submit {
    margin-top: 8px;
}

.btn-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
    font-family: inherit;
    letter-spacing: 0.5px;
}

.btn-match:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.55);
    filter: brightness(1.1);
}

.btn-match:active:not(:disabled) {
    transform: translateY(0);
}

.btn-match:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-match i {
    font-size: 14px;
}

/* 脚注 */
.config-foot {
    text-align: center;
    margin-top: 12px;
}

.link-method {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.link-method:hover {
    color: var(--accent-bright);
}

.link-method i {
    font-size: 10px;
}

/* ============================================================
   右：预览卡
   ============================================================ */
.preview-card {
    background: rgba(18, 22, 30, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.preview-title i {
    color: var(--accent);
    font-size: 13px;
}

.preview-tag {
    font-size: 10.5px;
    font-weight: 500;
    padding: 2px 10px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-bright);
    border-radius: 10px;
    letter-spacing: 0.5px;
}

/* 配置摘要 */
.preview-config {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.pc-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 7px;
    min-width: 0;
}

.pc-item span {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.pc-item b {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* 模块 tab */
.preview-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.preview-tabs::-webkit-scrollbar {
    display: none;
}

.ptab {
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-muted);
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.ptab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.ptab.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

/* 五档示例 */
.preview-bands {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pband {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--c);
    border-radius: 8px;
    transition: var(--transition);
}

.pband:hover {
    background: var(--bg-card-hover);
    transform: translateX(2px);
}

.pband-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--c) 18%, transparent);
    color: var(--c);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.pband-tag i {
    font-size: 10px;
}

.pband-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pband-fps {
    font-size: 15px;
    font-weight: 700;
    color: #55d88b;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* 底部提示 */
.preview-foot {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.preview-foot i {
    color: var(--accent);
    opacity: 0.7;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================================
   通用 section
   ============================================================ */
.section {
    padding: 48px 20px;
}

.main-grid-section {
    padding-top: 44px;
    padding-bottom: 24px;
}

/* ============================================================
   三列主体
   ============================================================ */
.main-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.col-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.col-header > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-header i {
    color: var(--accent);
    font-size: 14px;
}

.col-more {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    transition: var(--transition);
    text-decoration: none;
}

.col-more:hover {
    color: var(--accent-bright);
}

.col-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* -------- 最新实测 -------- */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.recent-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.recent-item:hover {
    background: rgba(168, 85, 247, 0.06);
}

.recent-gpu {
    grid-row: 1;
    grid-column: 1;
    font-size: 12px;
    color: var(--accent-bright);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-gpu i {
    margin-right: 4px;
    opacity: 0.7;
    font-size: 10px;
}

.recent-resource {
    grid-row: 2;
    grid-column: 1;
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-fps {
    grid-row: 1 / 3;
    grid-column: 2;
    font-size: 16px;
    font-weight: 700;
    color: #55d88b;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 2px;
    align-self: center;
}

.recent-fps span {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 2px;
}

/* -------- 精选测评 -------- */
.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
}

.review-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.review-card:hover {
    background: rgba(168, 85, 247, 0.05);
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateY(-2px);
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.review-type {
    padding: 1px 8px;
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-bright);
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.review-score {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #f5a623;
    flex-shrink: 0;
}

.review-score i {
    font-size: 10px;
}

.review-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-summary {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.review-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    gap: 8px;
}

.review-foot span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.review-foot i {
    font-size: 10px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* -------- 贡献者 -------- */
.contributors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
}

.contributor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(168, 85, 247, 0.07);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 14px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 12px;
}

.contributor:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.contributor-name {
    color: var(--text-primary);
    font-weight: 500;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contributor-count {
    color: var(--accent-bright);
    font-size: 10.5px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ============================================================
   投稿入口横条
   ============================================================ */
.submit-section {
    padding-top: 0;
    padding-bottom: 72px;
}

.submit-bar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px;
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.08) 0%,
        rgba(126, 34, 206, 0.04) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 14px;
    flex-wrap: wrap;
}

.submit-bar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.submit-bar-left > i {
    font-size: 30px;
    color: var(--accent);
    flex-shrink: 0;
    opacity: 0.85;
}

.submit-bar-left strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-weight: 600;
}

.submit-bar-left span {
    font-size: 13px;
    color: var(--text-muted);
}

.submit-bar-right {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr 1.4fr 1fr;
    }
}

@media (max-width: 1024px) {
    .hero-body {
        grid-template-columns: 1fr;
    }
    .main-grid {
        grid-template-columns: 1fr 1fr;
    }
    .col-card-wide {
        grid-column: 1 / -1;
        order: -1;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: calc(var(--navbar-height) + 20px) 16px 40px;
    }
    .hero-brand img {
        height: 36px;
    }
    .hero-brand-text {
        font-size: 24px;
    }
    .hero-title {
        font-size: 18px;
    }
    .config-card,
    .preview-card {
        padding: 18px;
    }
    .cfg-row {
        grid-template-columns: 80px 1fr;
        gap: 10px;
    }
    .section {
        padding: 36px 16px;
    }
    .main-grid-section {
        padding-top: 32px;
        padding-bottom: 16px;
    }
    .submit-section {
        padding-bottom: 48px;
    }
    .submit-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    .submit-bar-right {
        justify-content: flex-end;
    }
    .review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-brand-text {
        font-size: 20px;
    }
    .hero-brand img {
        height: 32px;
    }
    .hero-title {
        font-size: 15px;
    }
    .cfg-row {
        grid-template-columns: 72px 1fr;
        gap: 8px;
    }
    .cfg-label {
        font-size: 11.5px;
    }
    .cfg-inputs-2 {
        grid-template-columns: 1fr 1.4fr;
    }
    .preview-config {
        grid-template-columns: 1fr;
    }
    .submit-bar-right {
        flex-direction: column;
    }
    .submit-bar-right .btn {
        width: 100%;
        justify-content: center;
    }
    .main-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-card:hover,
    .contributor:hover,
    .btn-match:hover:not(:disabled),
    .pband:hover {
        transform: none;
    }
}
/* ============================================================
   ★ 硬件搜索输入框状态
   ============================================================ */
.cfg-inputs .hw-search-input.selected {
    border-color: rgba(168, 85, 247, 0.45);
}

.cfg-inputs .hw-search-input.dirty {
    border-color: var(--warning, #e67e22) !important;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15) !important;
}