/* 硬盘性能对比站 - 橙色科技主题 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #2d3748; background: #f7f8fa; line-height: 1.6; }
a { color: #ea580c; text-decoration: none; }
a:hover { color: #c2410c; text-decoration: underline; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 12px; }

/* ===== 头部 (深色+橙) ===== */
.site-header { background: linear-gradient(135deg, #1a1a2e, #16213e 55%, #0f3460); color: #fff; border-bottom: 3px solid #f97316; }
.header-inner { display: flex; align-items: center; height: 58px; }
.logo { font-size: 22px; font-weight: 800; color: #fff; margin-right: 36px; letter-spacing: 1px; }
.logo span { color: #fb923c; }
.logo:hover { color: #fff; text-decoration: none; }
.main-nav { display: flex; gap: 6px; }
.main-nav a { color: #cbd5e1; padding: 7px 16px; border-radius: 20px; font-size: 14px; }
.main-nav a:hover { color: #fff; background: rgba(249,115,22,0.25); text-decoration: none; }
.main-nav a.active { color: #fff; background: #f97316; font-weight: 600; }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, #f97316, #fbbf24); color: #fff; border-radius: 10px; padding: 28px 24px; margin: 16px 0; text-align: center; }
.hero h1 { font-size: 28px; margin-bottom: 8px; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.hero p { font-size: 14px; opacity: 0.95; max-width: 720px; margin: 0 auto; }
.hero-stats { margin-top: 14px; display: flex; justify-content: center; gap: 28px; }
.hero-stats span { font-size: 14px; }
.hero-stats b { font-size: 20px; margin-right: 4px; }

/* ===== 布局 ===== */
.layout { display: flex; gap: 16px; margin-top: 16px; align-items: flex-start; }
.sidebar { width: 210px; flex-shrink: 0; }
.main { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== 盒子 ===== */
.box { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.box-title { font-size: 16px; font-weight: 700; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; background: linear-gradient(90deg, #fff7ed, #fff); color: #9a3412; }
.box-title .total-n { font-size: 12px; color: #94a3b8; font-weight: 400; margin-left: 8px; }

/* ===== 分类导航 ===== */
.socket-nav { list-style: none; padding: 6px 0; }
.socket-nav li { border-bottom: 1px solid #f1f5f9; }
.socket-nav li:last-child { border-bottom: none; }
.socket-nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; color: #475569; }
.socket-nav a:hover { background: #fff7ed; text-decoration: none; color: #ea580c; }
.socket-nav a.active { background: #ffedd5; color: #ea580c; font-weight: 600; }
.socket-nav .cnt { font-size: 12px; color: #94a3b8; }

.socket-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }
.socket-grid li { width: 170px; border: 1px solid #e2e8f0; border-radius: 8px; text-align: center; }
.socket-grid a { display: block; padding: 14px 8px; }
.socket-grid a:hover { background: #fff7ed; text-decoration: none; }
.socket-grid strong { display: block; font-size: 15px; color: #1e293b; }
.socket-grid .cnt { font-size: 12px; color: #94a3b8; }

/* ===== 排行表 ===== */
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th, .rank-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid #f1f5f9; }
.rank-table th { background: #fff7ed; font-size: 13px; color: #c2410c; font-weight: 600; }
.rank-table tbody tr:hover, .rank-table tr:hover { background: #fffdf8; }
.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: #f97316; }
.rank-num { color: #94a3b8; }
.add-cmp { color: #ea580c; font-size: 13px; }

/* ===== 面包屑 ===== */
.crumb { font-size: 13px; color: #94a3b8; margin: 14px 0 10px; }
.crumb a { color: #94a3b8; }
.crumb a:hover { color: #ea580c; }

/* ===== 详情页 ===== */
.cpu-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #e2e8f0; }
.cpu-title { font-size: 20px; font-weight: 700; }
.cpu-sub { font-size: 13px; color: #94a3b8; margin-top: 4px; }
.btn-add { display: inline-block; padding: 8px 20px; background: linear-gradient(135deg, #f97316, #f59e0b); color: #fff; border-radius: 20px; font-size: 14px; }
.btn-add:hover { background: linear-gradient(135deg, #ea580c, #d97706); 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 #f1f5f9; }
.param-table th { width: 120px; background: #f8fafc; color: #64748b; font-weight: 600; text-align: left; font-size: 13px; }
.param-table td.score { color: #f97316; font-weight: 700; }

/* 相关对比 */
.rel-list { list-style: none; padding: 12px 16px; }
.rel-list li { padding: 7px 0; border-bottom: 1px dashed #f1f5f9; }
.rel-list li:last-child { border-bottom: none; }
.rel-list a { color: #475569; }
.rel-list a:hover { color: #ea580c; }
.rel-more { padding: 0 16px 12px; text-align: right; }
.rel-more a { font-size: 13px; }

/* ===== 分页 ===== */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px; border-top: 1px solid #e2e8f0; align-items: center; }
.pagination a, .pagination span { display: inline-block; min-width: 30px; padding: 5px 9px; border: 1px solid #e2e8f0; border-radius: 6px; text-align: center; font-size: 13px; color: #475569; background: #fff; }
.pagination a:hover { background: #ffedd5; border-color: #f97316; color: #ea580c; text-decoration: none; }
.pagination .current { background: #f97316; border-color: #f97316; color: #fff; font-weight: 600; }
.pagination .disabled { color: #cbd5e1; background: #f8fafc; }
.pagination .dots { border: none; background: none; min-width: auto; }

/* ===== 对比页 ===== */
.cmp-bar { padding: 16px; background: #fff7ed; border-bottom: 1px solid #e2e8f0; }
.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: #ea580c; font-size: 16px; }
.bar-track { height: 14px; background: #e2e8f0; border-radius: 7px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #f97316, #fbbf24); border-radius: 7px; }
.bar-other { background: linear-gradient(90deg, #f59e0b, #facc15); }

.cmp-table th { width: 120px; background: #fff7ed; color: #c2410c; }
.cmp-table td { width: 38%; }

.page-desc { padding: 12px 16px; color: #64748b; font-size: 13px; }

/* ===== 对比选择页 ===== */
.pick-area { display: flex; align-items: center; gap: 12px; padding: 18px 16px; flex-wrap: wrap; }
.pick-area select { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; }
.pick-vs { font-weight: 800; color: #f97316; }
.btn-go-pick { padding: 9px 24px; background: #f97316; color: #fff; border: none; border-radius: 20px; font-size: 14px; cursor: pointer; }
.btn-go-pick:hover { background: #ea580c; }
.pick-list { padding: 6px 16px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pick-list a { font-size: 13px; background: #fff7ed; border: 1px solid #ffedd5; padding: 4px 10px; border-radius: 14px; }

/* ===== 对比浮动框 ===== */
.cmp-box { position: fixed; right: 16px; bottom: 16px; width: 280px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; 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 #e2e8f0; font-weight: 700; font-size: 14px; color: #9a3412; }
.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: #475569; font-size: 13px; }
.cmp-box-list .cmp-item .del { color: #ef4444; cursor: pointer; }
.cmp-box-list .tip { color: #94a3b8; font-size: 12px; }
.cmp-box-foot { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #e2e8f0; }
.cmp-box-foot .btn-go { flex: 1; text-align: center; padding: 7px 0; background: #f97316; color: #fff; border-radius: 6px; font-size: 13px; cursor: pointer; }
.cmp-box-foot .btn-go:hover { background: #ea580c; }
.cmp-box-foot .btn-clear { padding: 7px 12px; background: #f1f5f9; color: #64748b; border-radius: 6px; font-size: 13px; cursor: pointer; }

/* ===== 页脚 ===== */
.site-footer { background: linear-gradient(135deg, #1a1a2e, #16213e 55%, #0f3460); color: #94a3b8; margin-top: 24px; padding: 26px 0; border-top: 3px solid #f97316; }
.footer-inner { text-align: center; font-size: 13px; }
.footer-inner p { margin-bottom: 6px; }
.footer-inner a { color: #cbd5e1; }
.footer-inner a:hover { color: #fb923c; }

@media (max-width: 768px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .socket-grid li { width: 100%; }
    .grid-2 { grid-template-columns: 1fr; }
    .cmp-table th { width: 70px; }
}
