/* GPUArk 品牌显卡性能站 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #333; background: #f5f6f8; line-height: 1.6; }
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; text-decoration: underline; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 12px; }

/* ===== 头部 ===== */
.site-header { background: linear-gradient(90deg, #111827, #1e1b4b); color: #fff; }
.header-inner { display: flex; align-items: center; height: 56px; }
.logo { font-size: 20px; font-weight: 700; color: #fff; margin-right: 36px; }
.logo:hover { color: #fff; text-decoration: none; }
.main-nav { display: flex; gap: 6px; }
.main-nav a { color: #cbd5e1; padding: 6px 14px; border-radius: 4px; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.12); text-decoration: none; }
.main-nav a.active { color: #fff; background: #7c3aed; }

/* ===== 布局 ===== */
.layout { display: flex; gap: 16px; margin-top: 16px; align-items: flex-start; }
.sidebar { width: 210px; flex-shrink: 0; }
.main { flex: 1; min-width: 0; }

/* ===== 盒子 ===== */
.box { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 16px; overflow: hidden; }
.box-title { font-size: 16px; font-weight: 700; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; background: #fafbfc; }

/* ===== 分类导航 ===== */
.socket-nav { list-style: none; padding: 6px 0; }
.socket-nav li { border-bottom: 1px solid #f3f4f6; }
.socket-nav li:last-child { border-bottom: none; }
.socket-nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; color: #374151; }
.socket-nav a:hover { background: #f3f4f6; text-decoration: none; color: #2563eb; }
.socket-nav a.active { background: #eef2ff; color: #2563eb; font-weight: 600; }
.socket-nav .cnt { font-size: 12px; color: #9ca3af; }

.socket-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }
.socket-grid li { width: 170px; border: 1px solid #e5e7eb; border-radius: 6px; text-align: center; }
.socket-grid a { display: block; padding: 14px 8px; }
.socket-grid a:hover { background: #f8fafc; text-decoration: none; }
.socket-grid strong { display: block; font-size: 15px; color: #1e293b; }
.socket-grid .cnt { font-size: 12px; color: #9ca3af; }

/* ===== 排行表 ===== */
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th, .rank-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid #f1f2f4; }
.rank-table th { background: #fafbfc; font-size: 13px; color: #6b7280; font-weight: 600; }
.rank-table tbody tr:hover { background: #f8fafc; }
.rank-table .w-rank { width: 64px; }
.rank-table .w-score { width: 120px; text-align: right; }
.rank-table .w-cmp { width: 90px; text-align: center; }
.rank-table td.score { text-align: right; font-weight: 700; color: #7c3aed; }
.rank-num { color: #6b7280; }
.add-cmp { color: #2563eb; font-size: 13px; }

/* ===== 面包屑 ===== */
.crumb { font-size: 13px; color: #6b7280; margin-bottom: 10px; }
.crumb a { color: #6b7280; }
.crumb a:hover { color: #2563eb; }

/* ===== 详情页 ===== */
.cpu-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #e5e7eb; }
.cpu-title { font-size: 20px; font-weight: 700; }
.btn-add { display: inline-block; padding: 7px 18px; background: #7c3aed; color: #fff; border-radius: 4px; font-size: 13px; }
.btn-add:hover { background: #6d28d9; color: #fff; text-decoration: none; }

.param-table { width: 100%; border-collapse: collapse; }
.param-table th, .param-table td { padding: 10px 16px; border-bottom: 1px solid #f1f2f4; }
.param-table th { width: 150px; background: #fafbfc; color: #6b7280; font-weight: 600; text-align: left; font-size: 13px; }
.param-table td.score { color: #7c3aed; font-weight: 700; }

/* 相关对比 */
.rel-list { list-style: none; padding: 12px 16px; }
.rel-list li { padding: 7px 0; border-bottom: 1px dashed #f1f2f4; }
.rel-list li:last-child { border-bottom: none; }
.rel-list a { color: #374151; }
.rel-list a:hover { color: #2563eb; }
.rel-more { padding: 0 16px 12px; text-align: right; }
.rel-more a { margin-left: 14px; font-size: 13px; }

/* ===== 分页 ===== */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px; border-top: 1px solid #e5e7eb; align-items: center; }
.pagination a, .pagination span { display: inline-block; min-width: 30px; padding: 5px 9px; border: 1px solid #e5e7eb; border-radius: 4px; text-align: center; font-size: 13px; color: #374151; background: #fff; }
.pagination a:hover { background: #eef2ff; border-color: #7c3aed; color: #7c3aed; text-decoration: none; }
.pagination .current { background: #7c3aed; border-color: #7c3aed; color: #fff; font-weight: 600; }
.pagination .disabled { color: #c0c4cc; background: #f9fafb; }
.pagination .dots { border: none; background: none; min-width: auto; }

/* ===== 对比页 ===== */
.cmp-bar { padding: 16px; background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.cmp-row { margin-bottom: 14px; }
.cmp-row:last-child { margin-bottom: 0; }
.cmp-name { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 600; }
.cmp-name .pct { color: #7c3aed; font-size: 16px; }
.bar-track { height: 14px; background: #e5e7eb; border-radius: 7px; overflow: hidden; }
.bar-fill { height: 100%; background: #7c3aed; border-radius: 7px; }
.bar-other { background: #f59e0b; }

.cmp-table th { width: 110px; }
.cmp-table td { width: 38%; }

.page-desc { padding: 12px 16px; color: #6b7280; font-size: 13px; }

/* ===== 对比选择页 ===== */
.pick-form { display: flex; align-items: center; gap: 10px; padding: 16px; flex-wrap: wrap; }
.pick-sel { flex: 1; min-width: 200px; max-width: 340px; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 14px; color: #333; background: #fff; }
.pick-vs { font-weight: 700; color: #7c3aed; font-size: 16px; }
.btn-go-pick { padding: 9px 22px; background: #7c3aed; color: #fff; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; }
.btn-go-pick:hover { background: #6d28d9; }
.pick-tip { padding: 0 16px 14px; color: #9ca3af; font-size: 12px; }
.pick-list { list-style: none; padding: 12px 16px; }
.pick-list li { padding: 8px 0; border-bottom: 1px dashed #f1f2f4; }
.pick-list li:last-child { border-bottom: none; }
.pick-list a { color: #374151; }
.pick-list a:hover { color: #2563eb; }

/* ===== 对比浮动框 ===== */
.cmp-box { position: fixed; right: 16px; bottom: 16px; width: 280px; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,0.12); display: none; z-index: 999; }
.cmp-box.show { display: block; }
.cmp-box-head { padding: 10px 14px; border-bottom: 1px solid #e5e7eb; font-weight: 700; font-size: 14px; }
.cmp-box-list { padding: 8px 14px; min-height: 30px; }
.cmp-box-list .cmp-item { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; color: #374151; font-size: 13px; }
.cmp-box-list .cmp-item .del { color: #ef4444; cursor: pointer; }
.cmp-box-list .tip { color: #9ca3af; font-size: 12px; }
.cmp-box-foot { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #e5e7eb; }
.cmp-box-foot .btn-go { flex: 1; text-align: center; padding: 7px 0; background: #7c3aed; color: #fff; border-radius: 4px; font-size: 13px; cursor: pointer; }
.cmp-box-foot .btn-go:hover { background: #6d28d9; }
.cmp-box-foot .btn-clear { padding: 7px 12px; background: #f3f4f6; color: #6b7280; border-radius: 4px; font-size: 13px; cursor: pointer; }

/* ===== 页脚 ===== */
.site-footer { background: linear-gradient(90deg, #111827, #1e1b4b); color: #9ca3af; margin-top: 24px; padding: 24px 0; }
.footer-inner { text-align: center; font-size: 13px; }
.footer-inner p { margin-bottom: 6px; }
.footer-inner a { color: #cbd5e1; }
.footer-inner a:hover { color: #fff; }

@media (max-width: 768px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .socket-grid li { width: 100%; }
    .cmp-table th { width: 70px; }
}
