/* =============================================================
   电脑对比站 computer.cnguojiu.com.cn - 白色简洁风格
   ============================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    font-size: 14px;
    line-height: 1.65;
}
a { color: #2563eb; text-decoration: none; transition: color .2s; }
a:hover { color: #1d4ed8; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 14px; }

/* ===== 头部 ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; height: 62px; }
.logo {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 22px; font-weight: 800; color: #1e40af; margin-right: 34px; white-space: nowrap;
}
.logo:hover { color: #1e40af; }
.logo .logo-sub { font-size: 11px; color: #9ca3af; font-weight: 400; }
.main-nav { display: flex; gap: 4px; overflow-x: auto; }
.main-nav a {
    padding: 7px 16px; border-radius: 6px; color: #4b5563; font-size: 15px; white-space: nowrap;
}
.main-nav a:hover { color: #2563eb; background: #eff6ff; }
.main-nav a.active { color: #fff; background: #2563eb; font-weight: 600; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 40px 0 50px;
    border-bottom: 1px solid #e5e7eb;
}
.hero-inner { text-align: center; }
.hero h1 { font-size: 36px; color: #1e3a8a; font-weight: 800; letter-spacing: 1px; }
.hero h1 span {
    display: block; font-size: 14px; color: #3b82f6; font-weight: 500; margin-top: 8px;
    letter-spacing: 3px; text-transform: uppercase;
}
.hero-desc { margin: 14px auto 24px; color: #6b7280; font-size: 16px; max-width: 620px; }
.hero-stats { display: flex; justify-content: center; gap: 42px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 32px; color: #2563eb; font-weight: 800; }
.stat span { color: #6b7280; font-size: 13px; }

/* ===== 分类入口卡 ===== */
.cat-cards { display: flex; gap: 16px; margin: -28px 0 18px; position: relative; z-index: 5; flex-wrap: wrap; }
.cat-card {
    flex: 1; min-width: 200px; display: flex; align-items: center; gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 20px 22px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--c, #2563eb);
    box-shadow: 0 8px 24px rgba(37,99,235,.12);
}
.cat-ico { font-size: 36px; }
.cat-body h3 { color: #1f2937; font-size: 18px; margin-bottom: 4px; }
.cat-body p { color: #6b7280; font-size: 13px; margin-bottom: 8px; }
.cat-more { color: var(--c, #2563eb); font-size: 13px; font-weight: 600; }

/* ===== 布局 ===== */
.layout { display: flex; gap: 16px; padding: 4px 0 18px; }
.sidebar { width: 300px; flex-shrink: 0; }
.main { flex: 1; min-width: 0; }

/* ===== 盒子 ===== */
.box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px; margin-bottom: 16px; padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.box-title {
    font-size: 17px; font-weight: 700; color: #1f2937;
    padding-left: 10px; border-left: 3px solid #2563eb; margin-bottom: 14px;
}
.group-title {
    font-size: 15px; color: #2563eb; font-weight: 700;
    margin: 16px 0 8px; padding-top: 4px;
}
.group-title:first-of-type { margin-top: 0; }

/* ===== 导航列表 ===== */
.socket-nav { list-style: none; }
.socket-nav li { border-bottom: 1px dashed #e5e7eb; }
.socket-nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; color: #4b5563; }
.socket-nav a:hover { color: #2563eb; }
.socket-nav .cnt { font-size: 12px; color: #9ca3af; background: #f3f4f6; border-radius: 10px; padding: 1px 8px; }

/* ===== 排行表 ===== */
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th, .rank-table td { padding: 9px 10px; border-bottom: 1px solid #f3f4f6; text-align: left; }
.rank-table thead th { color: #6b7280; font-weight: 600; font-size: 13px; background: #f9fafb; }
.rank-table tr:hover td { background: #f8fafc; }
.w-rank { width: 56px; }
.w-score { width: 90px; }
.w-cmp { width: 90px; }
.rank-num { font-weight: 700; color: #9ca3af; }
.score { color: #059669; font-weight: 700; }
.muted { color: #9ca3af; font-size: 12px; margin-left: 8px; }

/* ===== 参数表 ===== */
.param-table { width: 100%; border-collapse: collapse; }
.param-table th, .param-table td { padding: 10px 12px; border: 1px solid #e5e7eb; }
.param-table th {
    width: 130px; color: #6b7280; font-weight: 600; text-align: right;
    background: #f9fafb;
}
.param-table td { color: #374151; }
.cmp-table td { width: 42%; }
.cmp-table td.diff { color: #b45309; background: #fffbeb; }

/* ===== 对比条 ===== */
.cmp-bar { margin: 16px 0; }
.cmp-name { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 13px; }
.cmp-name .lbl { color: #6b7280; }
.cmp-name .a-txt, .cmp-name .b-txt { color: #374151; }
.bar-track { height: 14px; background: #f3f4f6; border-radius: 7px; overflow: hidden; margin-bottom: 6px; }
.bar-track-r { transform: scaleX(-1); }
.bar-fill { height: 100%; border-radius: 7px; background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.bar-fill.win { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-other { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* ===== 品牌网格 ===== */
.brand-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.brand-grid li { flex: 0 0 calc(16.6% - 10px); min-width: 130px; }
.brand-grid a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: #f9fafb;
    border: 1px solid #e5e7eb; border-radius: 8px;
    color: #374151; font-size: 15px; transition: all .2s;
}
.brand-grid a:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.brand-grid .cnt { font-size: 12px; color: #9ca3af; }

/* ===== 相关列表 ===== */
.rel-list { list-style: none; }
.rel-list li {
    padding: 8px 4px; border-bottom: 1px dashed #e5e7eb;
    display: flex; justify-content: space-between; align-items: center;
}
.rel-list a { color: #374151; }
.rel-list a:hover { color: #2563eb; }

/* ===== 面包屑 ===== */
.crumb { margin: 16px 0 14px; color: #9ca3af; font-size: 13px; }
.crumb a { color: #6b7280; }
.crumb a:hover { color: #2563eb; }

/* ===== 详情页头部 ===== */
.detail-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px; padding: 22px 24px; margin-bottom: 16px;
}
.detail-title h1 { color: #1f2937; font-size: 24px; margin: 8px 0 6px; }
.detail-sub { color: #6b7280; font-size: 14px; }
.type-badge {
    display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 12px;
    background: #eff6ff; color: #2563eb; font-weight: 600;
}
.detail-action { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.btn-main {
    display: inline-block; padding: 10px 22px; border-radius: 8px;
    background: #2563eb; color: #fff;
    font-weight: 600; text-align: center;
}
.btn-main:hover { color: #fff; background: #1d4ed8; }
.btn-line {
    display: inline-block; padding: 9px 20px; border-radius: 8px;
    border: 1px solid #d1d5db; color: #4b5563; text-align: center;
}
.btn-line:hover { background: #f9fafb; color: #2563eb; border-color: #2563eb; }

/* ===== 核心参数卡 ===== */
.spec-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.spec-card {
    background: #fff;
    border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px;
}
.spec-key { display: block; font-size: 12px; color: #9ca3af; margin-bottom: 6px; }
.spec-val { display: block; font-size: 15px; color: #1f2937; font-weight: 600; line-height: 1.4; }

/* ===== 去哪买 ===== */
.buy-grid { display: flex; gap: 12px; margin-top: 12px; }
.buy-item { flex: 1; text-align: center; }
.buy-platform { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 10px; }
.buy-action a {
    display: block; padding: 9px 0; border-radius: 8px; font-weight: 600;
    background: #f59e0b; color: #fff;
}
.buy-action a:hover { filter: brightness(1.05); color: #fff; }
.buy-item:nth-child(2) .buy-action a { background: #ef4444; }
.buy-item:nth-child(3) .buy-action a { background: #dc2626; }
.tip-line { color: #6b7280; }

/* 分页 */
.pagination { margin: 20px 0; text-align: center; }
.page-btn { display: inline-block; padding: 8px 16px; margin: 0 5px; background: #f3f4f6; color: #374151; border-radius: 4px; text-decoration: none; }
.page-btn:hover { background: #e5e7eb; }
.page-info { display: inline-block; padding: 8px 16px; color: #6b7280; }

/* 参数内链样式 */
.param-link, .filter-link {
    font-size: 12px;
    color: #6b7280;
    margin-left: 6px;
    text-decoration: underline;
}
.param-link:hover, .filter-link:hover {
    color: #2563eb;
}

/* ===== 对比头部 ===== */
.vs-head {
    display: flex; align-items: center; justify-content: center; gap: 30px;
    background: #fff;
    border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 24px 20px; margin-bottom: 16px; text-align: center;
}
.vs-cell { flex: 1; max-width: 420px; }
.vs-cell h1 { font-size: 19px; color: #1f2937; margin-top: 8px; }
.vs-cell h1 a { color: #1f2937; }
.vs-cell h1 a:hover { color: #2563eb; }
.vs-mark {
    font-size: 28px; font-weight: 800; color: #f59e0b; flex-shrink: 0;
}

/* ===== 对比链接网格 ===== */
.cmp-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.cmp-link-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; background: #f9fafb;
    border: 1px solid #e5e7eb; border-radius: 8px;
    font-size: 13px; transition: all .2s;
}
.cmp-link-item:hover { border-color: #2563eb; background: #eff6ff; }
.cmp-link-item .left { flex: 1; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-link-item .right { flex: 1; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-link-item .vs { color: #f59e0b; font-weight: 800; }

/* ===== 列表页头部 ===== */
.list-head { margin: 4px 0 14px; }
.list-head h1 { color: #1f2937; font-size: 26px; margin-bottom: 6px; }

/* ===== 页签 ===== */
.tab-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab-bar a {
    padding: 7px 18px; border-radius: 6px; color: #4b5563;
    border: 1px solid #d1d5db;
}
.tab-bar a:hover { color: #2563eb; border-color: #2563eb; }
.tab-bar a.active {
    background: #2563eb; color: #fff; font-weight: 600; border-color: #2563eb;
}

/* ===== 分页 ===== */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.pagination a, .pagination span {
    min-width: 34px; padding: 5px 10px; border-radius: 6px; text-align: center; font-size: 13px;
    background: #fff; border: 1px solid #d1d5db; color: #4b5563;
}
.pagination a:hover { border-color: #2563eb; color: #2563eb; }
.pagination .current { background: #2563eb; color: #fff; border-color: #2563eb; font-weight: 600; }
.pagination .disabled { color: #d1d5db; background: #f9fafb; cursor: not-allowed; }

/* ===== 说明/更多 ===== */
.page-desc { margin-bottom: 12px; color: #6b7280; font-size: 13px; }
.rel-more { margin-top: 10px; text-align: right; font-size: 13px; }
.rel-more a { color: #2563eb; }
.rel-more a:hover { color: #1d4ed8; }
.rel-more a + a { margin-left: 16px; }

/* ===== 页脚 ===== */
.site-footer { border-top: 1px solid #e5e7eb; margin-top: 26px; padding: 26px 0; background: #fff; }
.footer-inner { text-align: center; color: #9ca3af; font-size: 13px; }
.footer-inner p { margin-bottom: 6px; }
.footer-inner a { color: #6b7280; margin: 0 4px; }
.footer-inner a:hover { color: #2563eb; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .brand-grid li { flex: 0 0 calc(33.3% - 10px); }
    .hero h1 { font-size: 28px; }
    .hero-stats { gap: 24px; }
    .cat-cards { flex-direction: column; }
    .detail-head { flex-direction: column; }
    .vs-head { flex-direction: column; gap: 12px; }
    .vs-mark { transform: rotate(90deg); }
}
