* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    padding: 20px 120px;
}
.top_header {
    /*position: fixed;*/
    /*top: 0;*/
    /*z-index: 100; !* 确保盖住其他内容 *!*/
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}
.header {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: white;
    padding: 10px;
    text-align: center;
    height: 120px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.header-tabs {
    flex: 1;
    display: flex;
    align-items: center;   /* 垂直方向上下居中 */
    justify-content: flex-end; /* 水平方向靠右 */
}

.tabs-list {
    width: 500px;
    position: absolute;
}

.header h1 {
    font-size: 40px;
    margin-bottom: 10px;
}
.controls {
    padding: 20px 20px 20px 20px;
    background-color: #f8f9fa;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    clear: both;
}
.control-group {
    flex: 1;
    min-width: 200px;
    font-size: 16px;
}
.control-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}
input[type="text"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
}
a {
    text-decoration: none;
    color: inherit;
}
.gpu_mem {
    font-size: 16px;
    color: var(--text-sub);
}
.ladder-list {
    padding: 0 20px 20px 20px;
}
.gpu-item {
    display: flex;
    align-items: center;
    padding: 16px 16px 16px 6px;
    margin-top: 12px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid #ccc;
    transition: all 0.3s ease;
}
.gpu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.nv { border-left-color: #76b900; }
.amd { border-left-color: #ed1c24; }
.intel { border-left-color: #1A73E8; }
.mt { border-left-color: #FFA500; }
.lisuan { border-left-color: #FFA500; }
.rank-cell {
    width: 50px;
    font-weight: bold;
    font-size: 1.1em;
    color: #666;
    text-align: center;
}
.info-cell {
    flex: 2;
    min-width: 180px;
    cursor: pointer;
}
.info-perf-cell {
    display: flex;
    width: 100%;
}
.model-name {
    font-weight: bold;
    font-size: 1.1em;
    flex: 1;
}
.brand-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.8em;
    margin-right: 8px;
}
.nv .brand-tag { background-color: #76b900; }
.amd .brand-tag { background-color: #ed1c24; }
.intel .brand-tag { background-color: #1A73E8; }
.mt .brand-tag { background-color: #FFA500; }
.lisuan .brand-tag { background-color: #FFA500; }
.tier-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.8em;
    background-color: #607d8b;
}
.perf-cell {
    flex: 5;
    min-width: 250px;
}
.perf-bar-container {
    width: 100%;
    height: 24px;
    background-color: #eee;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.perf-bar {
    height: 100%;
    width: 0;
    border-radius: 12px;
    transition: width 1s ease-in-out;
}
.nv .perf-bar { background-color: #76b900; }
.amd .perf-bar { background-color: #ed1c24; }
.intel .perf-bar { background-color: #1A73E8; }
.mt .perf-bar { background-color: #FFA500; }
.lisuan .perf-bar { background-color: #FFA500; }
.perf-score {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    font-size: 0.9em;
}
.perf-score-percent {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    font-size: 0.9em;
}
.specs-cell {
    flex: 1;
    min-width: 150px;
    text-align: right;
}
.spec-item {
    margin-bottom: 4px;
    font-size: 0.9em;
}
.vram { color: #1976d2; }
.tdp { color: #f57c00; }
.price { color: #388e3c; font-weight: bold; }


/* 模态框样式 */
:root {
    --primary-bg: #f8fafc; --card-bg: #ffffff; --text-main: #1e293b; --text-sub: #64748b;
    --nvidia-green: #76b900; --amd-red: #ed1c24; --border-color: #e2e8f0; --primary-blue: #3b82f6;
    --highlight-best: #dcfce7; --highlight-best-text: #166534;
    --highlight-worst: #fee2e2; --highlight-worst-text: #991b1b;
}


/* 顶部导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.navbar h1 { font-size: 1.5rem; color: var(--primary-blue); }

.logo {
    float: left;
}
.logo_text {
    margin-top: 20px;
}

.user-actions {
    padding: 10px 0 0 0;
    color: #000000;
}
.user-actions button {
    /*float: right;*/
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: 0.2s;
}
.login-msg {
    display: flex;
    justify-content: center;
    margin: 50px 0 50px 0;
}
.btn-login { background: var(--primary-blue); color: white; }
.btn-register { background: #10b981; color: white; }
.btn-logout { background: #ef4444; color: white; }
.user-welcome {
    font-weight: bold;
    margin-right: 10px;
    float: right;
    margin-top: 5px;
    /*color: white;*/
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal h2 { margin-bottom: 20px; text-align: center; }

.form-group { margin-bottom: 15px; }
.form-group label { text-align: left; display: block; margin-bottom: 5px; font-size: 14px; color: var(--text-sub); }
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn-submit { background: var(--primary-blue); color: white; }
.btn-cancel { background: #e2e8f0; color: var(--text-main); }
.error-msg { color: #ef4444; font-size: 12px; margin-top: 5px; display: none; }

/* Tab 选项卡样式 */
.tabs-container { display: flex; gap: 10px; margin-bottom: 20px; background: var(--card-bg); padding: 10px 20px 10px 20px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.tab-btn { flex: 1; padding: 12px; border: none; background: transparent; border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text-sub); transition: 0.3s; }
.tab-btn:hover { background-color: #f1f5f9; color: var(--text-main); }
.tab-btn.active { background-color: var(--primary-blue); color: white; box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3); }

/* 头部信息区 */
.header-card {
    background: var(--card-bg); padding: 30px 30px 0 30px; border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex; align-items: center; gap: 24px;
}
.header-card img{ border-radius: 6px; }
.gpu-icon {
    background: #f1f5f9; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 36px; flex-shrink: 0;
}
.header-info h1 { font-size: 24px; margin-bottom: 8px; }
.header-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 6px; color: white; font-weight: 600; }
.tag-arch { background-color: var(--nvidia-green); }
.tag-tier { background-color: var(--primary-blue); }
.tag-date { background-color: #64748b; }
/* 参数网格布局 */
.specs-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.spec-card {
    background: var(--card-bg); padding: 20px; border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04); border: 1px solid var(--border-color);
    transition: transform 0.2s;
}
.spec-card:hover { transform: translateY(-2px); border-color: var(--primary-blue); }
.spec-label { font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }
.spec-value { font-size: 18px; font-weight: 700; color: var(--text-main); }


.add-btn {
    padding: 10px 20px; background: var(--primary-blue); color: white; border: none;
    border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s;
    position: absolute;
}
.add-btn:hover { background: #1e40af; }
.add-btn:disabled { background: #cbd5e1; cursor: not-allowed; }

.add-btn-container {
    display: flex;
    justify-content: flex-end;
    height: 40px;
    margin: 10px;
}

.add-select-container {
    height: 40px;
    margin: 10px;
}

/* 对比表格容器 */
.compare-wrapper {
    background: var(--card-bg); border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow-x: auto; border: 1px solid var(--border-color);
}

table { width: 100%; border-collapse: collapse; }

th, td { padding: 16px; text-align: center; border-bottom: 1px solid var(--border-color); font-size: 14px; }
th { background: #f8fafc; font-weight: 700; color: var(--text-sub); position: sticky; top: 0; z-index: 1; }
/* 第一列（参数名）固定左侧 */
th:first-child, td:first-child {
    /*text-align: left; */
    font-weight: 600; background: var(--card-bg);
    position: sticky; left: 0; z-index: 2; min-width: 0;
    border-right: 1px solid var(--border-color);
}
th:first-child { z-index: 3; background: #f8fafc; }

tr:last-child td { border-bottom: none; }

/* 高亮样式 */
.best { background-color: var(--highlight-best); color: var(--highlight-best-text); font-weight: 700; }
.worst { background-color: var(--highlight-worst); color: var(--highlight-worst-text); }

/* 移除按钮 */
.remove-btn {
    background: none; border: none; color: #ef4444; cursor: pointer; font-size: 18px; font-weight: bold;
}

/* 空状态提示 */
.empty-state { padding: 60px 20px; text-align: center; color: var(--text-sub); }


/* 桌面端导航 */
.nav-tabs {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 10px;
}

.nav-tabs li a {
    display: block;
    padding: 8px 10px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-tabs li a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-tabs li a.active { background: rgba(255,255,255,0.25); color: #fff; font-weight: 700; }

/* --- 移动端独立菜单 --- */
.nav-toggle {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1002;
    width: 44px;
    height: 44px;
    background: var(--primary-blue);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    align-items: center;
    justify-content: center;
}

.nav-toggle-proj {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1002;
    width: 44px;
    height: 44px;
    background: var(--primary-blue);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    align-items: center;
    justify-content: center;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: inline; }

.nav-toggle-proj .icon-close { display: none; }
.nav-toggle-proj.open .icon-menu { display: none; }
.nav-toggle-proj.open .icon-close { display: inline; }

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    backdrop-filter: blur(2px);
}
.mobile-menu-overlay.show { display: block; }

.mobile-menu {
    display: none;
    position: absolute;
    top: 72px;
    right: 20px;
    z-index: 1003;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: slideDown 0.25s ease-out;
}
.mobile-menu.show { display: block; }

.mobile-menu-proj {
    display: none;
    position: absolute;
    top: 150px;
    right: 30px;
    z-index: 1001;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: slideDown 0.25s ease-out;
}
.mobile-menu-proj.show { display: block; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu ul { list-style: none; padding: 8px 0; }
.mobile-menu ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.15s;
}
.mobile-menu ul li a:hover { background: #f5faff; color: var(--primary-blue); }
.mobile-menu ul li a.active { background: #e3f2fd; color: var(--primary-blue); font-weight: 700; border-left: 4px solid var(--primary-blue); }

.mobile-menu-proj ul { list-style: none; padding: 8px 0; }
.mobile-menu-proj ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.15s;
}
.mobile-menu-proj ul li a:hover { background: #f5faff; color: var(--primary-blue); }
.mobile-menu-proj ul li a.active { background: #e3f2fd; color: var(--primary-blue); font-weight: 700; border-left: 4px solid var(--primary-blue); }

.game-card {
    background: var(--card-bg);
    /*padding: 24px 24px 16px 24px;*/
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    max-width: 400px;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}

.game-card h1 {
    display: flex;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #3E3E3E;
    line-height: 1.4;
    text-shadow:
            -1px -1px 0 #FFF,   /* 左上 */
            1px -1px 0 #FFF,   /* 右上 */
            -1px  1px 0 #FFF,   /* 左下 */
            1px  1px 0 #FFF;   /* 右下 */
}
.game-card h2 {
    display: flex;
    justify-content: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: #3E3E3E;
    line-height: 1.4;
    padding: 5px 5px;
    text-shadow:
            -1px -1px 0 #FFF,   /* 左上 */
            1px -1px 0 #FFF,   /* 右上 */
            -1px  1px 0 #FFF,   /* 左下 */
            1px  1px 0 #FFF;   /* 右下 */
}
.game-card p {
    display: flex;
    justify-content: right;
    font-size: 0.9rem;
    color: #3E3E3E;
    line-height: 2;
    font-weight: 500;
}

.game-card img {
    border-radius: 6px 6px 0 0;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 14px 30px; font-size: 0.9rem; color: #888; background: #fafbfc;
    border-bottom: 1px solid #eee;
}
.breadcrumb a { color: var(--primary-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: #ccc; }

/* ===== 主体布局 ===== */
.article-wrap {
    display: flex; gap: 32px; padding: 32px 30px;
}
.article-main { flex: 1; min-width: 0; }
.article-side { width: 300px; flex-shrink: 0; }

/* ===== 文章头部 ===== */
.article-cat {
    display: inline-block; padding: 4px 14px; border-radius: 4px;
    font-size: 0.82rem; font-weight: 700; color: white; margin-bottom: 12px;
    background: var(--nvidia-green);
}
.article-title { font-size: 1.9rem; line-height: 1.35; margin-bottom: 16px; color: #1a1a1a; }
.article-meta {
    display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.88rem; color: #999;
    padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 24px;
}
.article-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== 封面 ===== */
.article-cover {
    width: 100%; height: 360px; border-radius: 10px; margin-bottom: 28px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4a 100%);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.25); font-size: 4rem;
}

/* ===== 正文 ===== */
.article-body { font-size: 1.05rem; color: #444; }
.article-body p { margin-bottom: 18px; text-align: justify; }
.article-body h2 {
    font-size: 1.35rem; color: #1a1a1a; margin: 32px 0 14px;
    padding-left: 14px; border-left: 4px solid var(--primary-blue);
}
.article-body h3 { font-size: 1.15rem; color: #333; margin: 24px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 18px 20px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: #222; }

/* 引用块 */
.article-body blockquote {
    margin: 24px 0; padding: 18px 22px;
    background: #f0f7ff; border-left: 4px solid var(--primary-blue);
    border-radius: 0 8px 8px 0; color: #555; font-style: italic;
}
.article-body blockquote p { margin-bottom: 0; }

.article-body img {
    width: 100%;
}

    /* 参数表 */
.spec-table {
    width: 100%; border-collapse: collapse; margin: 18px 0 24px;
    font-size: 0.95rem;
}
.spec-table th, .spec-table td {
    padding: 11px 14px; border: 1px solid #e8e8e8; text-align: left;
}
.spec-table th { background: #f8f9fa; font-weight: 600; color: #555; width: 160px; }
.spec-table tr:nth-child(even) td { background: #fcfcfc; }

/* ===== 标签与分享 ===== */
.article-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px;
    padding-top: 20px; border-top: 1px solid #eee;
}
.article-tags a {
    padding: 5px 14px; background: #f0f2f5; border-radius: 20px;
    font-size: 0.85rem; color: #666; text-decoration: none; transition: all 0.2s;
}
.article-tags a:hover { background: var(--primary-blue); color: white; }
.share-row {
    display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 0.9rem; color: #888;
}
.share-btn {
    padding: 6px 14px; border: 1px solid #ddd; border-radius: 6px;
    background: white; cursor: pointer; font-size: 0.85rem; color: #555; transition: all 0.2s;
}
.share-btn:hover { border-color: var(--primary-blue); color: var(--primary-blue); }

/* ===== 上下篇 ===== */
.article-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-top: 32px;
}
.nav-card {
    padding: 18px 20px; border: 1px solid #eee; border-radius: 10px;
    text-decoration: none; color: inherit; transition: all 0.2s;
}
.nav-card:hover { border-color: var(--primary-blue); box-shadow: 0 4px 12px rgba(25,118,210,0.1); }
.nav-card .label { font-size: 0.82rem; color: #999; margin-bottom: 4px; }
.nav-card .title { font-size: 0.95rem; font-weight: 600; color: var(--primary-blue); }
.nav-card.disabled { opacity: 0.5; pointer-events: none; }

/* ===== 侧边栏 ===== */
.side-box {
    border: 1px solid #eee; border-radius: 10px; padding: 20px; margin-bottom: 20px;
}
.side-box h3 {
    font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue); color: #1a1a1a;
}
.side-list { list-style: none; }
.side-list li {
    padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.92rem;
}
.side-list li:last-child { border-bottom: none; }
.side-list a { color: #444; text-decoration: none; display: block; }
.side-list a:hover { color: var(--primary-blue); }
.side-list .date { font-size: 0.8rem; color: #aaa; margin-top: 2px; }
.side-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.side-tag-cloud a {
    padding: 5px 12px; background: #f0f2f5; border-radius: 16px;
    font-size: 0.82rem; color: #666; text-decoration: none; transition: all 0.2s;
}
.side-tag-cloud a:hover { background: var(--primary-blue); color: white; }

/* ===== 相关阅读 ===== */
.related-section { padding: 0 30px 32px; }
.related-section h2 {
    font-size: 1.2rem; margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue); display: inline-block;
}
.related-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.related-card {
    border: 1px solid #eee; border-radius: 10px; overflow: hidden;
    text-decoration: none; color: inherit; transition: all 0.2s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.related-thumb {
    height: 120px; background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
}
.related-card .body { padding: 14px; }
.related-card .body h4 { font-size: 0.95rem; margin-bottom: 6px; line-height: 1.4; }
.related-card .body p { font-size: 0.82rem; color: #999; }


.item { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 16px; margin-bottom: 12px; }
.item h3 { margin: 0 0 6px; font-size: 16px; }
.item h3 a { color: #222; text-decoration: none; }
.item h3 a:hover { color: #1677ff; }
.meta { color: #999; font-size: 12px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 12px 0; }
.pager button { min-width: 34px; height: 34px; border: 1px solid #ddd; background: #fff; border-radius: 4px; cursor: pointer; padding: 8px 8px;}
.pager button.active { background: #1677ff; color: #fff; border-color: #1677ff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.info { text-align: center; color: #999; font-size: 13px; margin: 12px; }
.desktop-menu {
    position: relative;
    right: 0;
}

/* 移动端适配 */
@media (max-width: 1280px) {
    body { padding: 15px; }
    h1 { font-size: 20px; }
    .header h1 {
        font-size: 24px;
    }
    th, td { padding: 12px 10px; font-size: 13px; }
    .control-group {
        display: flex;
        font-size: 14px;
    }
    .control-label {
        display: inline;
        margin-bottom: 0;
        font-weight: bold;
        color: #555;
        margin-top: 0;
    }
    input[type="text"], select {
        flex: 1;
        padding: 4px 12px 4px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        background-color: white;
        margin-left: 8px;
    }
    input[type="password"], select {
        flex: 1;
        padding: 4px 12px 4px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        background-color: white;
        margin-left: 8px;
    }
    .controls {
        gap: 10px;
        padding: 10px;
    }
    .tab-btn {
        font-size: 12px;
        padding: 4px;
    }
    .gpu-item {
        align-items: stretch;
        display: flex;
        padding: 0 16px 10px 2px;
        margin-top: 8px;
    }
    .info-cell, .perf-cell, .specs-cell {
        text-align: left;
    }

    .info-perf-cell {
        display: block;
        width: 100%;
        flex: 1;
    }
    .rank-cell {
        width: 30px;
        flex-shrink: 0;
        padding-top: 20px;
        font-size: 0.9em;
    }
    .info-cell {
        width: auto;
    }
    .perf-cell {
        width: 100%;
        min-width: auto;
    }
    .specs-cell {
        text-align: left;
    }
    .perf-bar-container {
        margin-top: 10px;
    }
    .header-card { align-items: flex-start; padding: 20px; }
    .header-info h1 { font-size: 20px; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .spec-card { padding: 15px; }
    .spec-value { font-size: 16px; }
    th, td { padding: 16px 0 16px 0; text-align: center; border-bottom: 1px solid var(--border-color); font-size: 14px; }
    .container {
        box-shadow: none;
    }
    .nav-wrapper { padding: 14px 20px; }
    .nav-tabs { display: none; }
    .nav-toggle { display: flex; }
    .nav-toggle-proj {
        display: flex;
        position: absolute;
        right: 40px;
        top: 160px;
    }
    .model-name {
        font-size: 1em;
    }
    .perf-bar-container {
        height: 20px;
    }
    .ladder-list {
        padding: 0 0 20px 0;
    }
    .tabs-list {
        display: none;
    }
    .gpu-icon {
        display: none;
    }
    .article-wrap { padding: 20px; flex-direction: column; }
    .article-title { font-size: 1.45rem; }
    .article-cover { height: 200px; }
    .article-body { font-size: 1rem; }
    .article-nav { grid-template-columns: 1fr; }
    .related-section { padding: 0 20px 24px; }
    .related-grid { grid-template-columns: 1fr; }
    .spec-table th { width: 110px; }
    .article-side {
        width: 100%;
    }
    .bm-card h1 {
        line-height: 2.0;
        font-size: 2.0rem;
    }
    .hub-grid {
        gap: 10px;
    }
}


@media (max-width: 320px) {
    .specs-grid { grid-template-columns: 1fr; }
}
