/* =============================================================
   手机对比站 phone.maogo1.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.6;
}
a { color: #1677ff; text-decoration: none; }
a:hover { color: #e67300; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* ===== 头部 ===== */
.site-header { background: #fff; border-bottom: 2px solid #1677ff; }
.header-inner { display: flex; align-items: center; height: 60px; }
.logo { font-size: 22px; font-weight: 700; color: #1677ff; margin-right: 32px; }
.logo:hover { color: #1677ff; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
    padding: 6px 16px; border-radius: 4px; color: #555; font-size: 15px;
}
.main-nav a:hover { color: #1677ff; background: #e8f2ff; }
.main-nav a.active { color: #fff; background: #1677ff; }

/* ===== 布局 ===== */
.layout { display: flex; gap: 16px; padding: 16px 0; }
.sidebar { width: 240px; flex-shrink: 0; }
.main { flex: 1; min-width: 0; }
.main.full { flex: 1; }

/* ===== 盒子 ===== */
.box { background: #fff; border-radius: 8px; margin-bottom: 16px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.box-title {
    font-size: 17px; font-weight: 700; color: #222;
    padding-left: 10px; border-left: 4px solid #1677ff; margin-bottom: 14px;
}

/* ===== 侧栏导航 ===== */
.socket-nav { list-style: none; }
.socket-nav li { border-bottom: 1px dashed #eee; }
.socket-nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; color: #444; }
.socket-nav a:hover { color: #1677ff; }
.socket-nav .cnt { font-size: 12px; color: #999; background: #f0f2f5; border-radius: 10px; padding: 0 8px; }

/* ===== 排行表 ===== */
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th, .rank-table td { padding: 8px 10px; border-bottom: 1px solid #f0f2f5; text-align: left; }
.rank-table thead th { background: #f8fafc; color: #666; font-weight: 600; }
.rank-table tr:hover td { background: #fafcff; }
.w-rank { width: 60px; }
.w-score { width: 110px; }
.w-cmp { width: 90px; }
.rank-num { font-weight: 700; color: #999; }
.score { color: #e67300; font-weight: 700; }
.muted { color: #999; font-size: 12px; margin-left: 6px; }

/* ===== 参数表 ===== */
.param-table { width: 100%; border-collapse: collapse; }
.param-table th, .param-table td { padding: 10px 12px; border: 1px solid #eef1f5; }
.param-table th { background: #f8fafc; width: 140px; color: #666; font-weight: 600; text-align: right; }
.param-table td { background: #fff; }
.cmp-table td { width: 50%; }

/* ===== 对比条 ===== */
.cmp-bar { margin: 14px 0; }
.cmp-row { margin-bottom: 14px; }
.cmp-name { display: flex; justify-content: space-between; margin-bottom: 6px; }
.cmp-name a { font-weight: 600; }
.cmp-name .pct { color: #1677ff; font-weight: 700; }
.bar-track { height: 14px; background: #f0f2f5; border-radius: 7px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #1677ff, #38a0ff); border-radius: 7px; }
.bar-other { background: linear-gradient(90deg, #f5a623, #ffc53d); }

/* ===== 品牌网格 ===== */
.brand-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.brand-grid li { flex: 0 0 calc(20% - 10px); min-width: 120px; }
.brand-grid a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; background: #f8fafc; border-radius: 6px; border: 1px solid #eef1f5;
    color: #444; font-size: 15px;
}
.brand-grid a:hover { border-color: #1677ff; color: #1677ff; }
.brand-grid .cnt { font-size: 12px; color: #999; }

/* ===== 相关列表 ===== */
.rel-list { list-style: none; }
.rel-list li { padding: 7px 4px; border-bottom: 1px dashed #f0f2f5; display: flex; justify-content: space-between; align-items: center; }
.rel-list a { color: #444; }
.rel-list a:hover { color: #1677ff; }
.rel-list .add-cmp { font-size: 12px; color: #1677ff; }
.rel-list .add-cmp:hover { color: #e67300; }

/* ===== 面包屑 ===== */
.crumb { margin-bottom: 12px; color: #999; font-size: 13px; }

/* ===== 去哪买 ===== */
.buy-grid { display: flex; gap: 12px; margin-bottom: 6px; }
.buy-item {
    flex: 1; text-align: center; border: 1px solid #eef1f5; border-radius: 8px;
    padding: 14px; background: #fafcff;
}
.buy-platform { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 10px; }
.buy-action a {
    display: block; padding: 8px 0; background: #ff3d00; color: #fff; border-radius: 6px; font-weight: 600;
}
.buy-action a:hover { background: #e63600; color: #fff; }
.tip-line { margin-top: 6px; }

/* ===== 对比悬浮栏 ===== */
.cmp-box {
    position: fixed; right: 20px; bottom: 20px; width: 260px; background: #fff;
    border: 1px solid #e0e6ec; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 12px; display: none; z-index: 99;
}
.cmp-box.show { display: block; }
.cmp-box-head { font-weight: 700; color: #1677ff; margin-bottom: 8px; }
.cmp-item { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed #f0f2f5; }
.cmp-item .del { color: #999; cursor: pointer; }
.cmp-item .del:hover { color: #e67300; }
.cmp-box .tip { font-size: 12px; color: #999; }
.cmp-box-foot { display: flex; gap: 8px; margin-top: 10px; }
.btn-go, .btn-clear { flex: 1; text-align: center; padding: 7px 0; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-go { background: #1677ff; color: #fff; }
.btn-go:hover { background: #0f66e0; }
.btn-clear { background: #f0f2f5; color: #666; }
.btn-clear:hover { background: #e2e6ea; }

/* ===== 分页 ===== */
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.pager a, .pager span {
    padding: 5px 12px; background: #f8fafc; border: 1px solid #eef1f5; border-radius: 4px; color: #555;
}
.pager a:hover { border-color: #1677ff; color: #1677ff; }
.pager .cur { background: #1677ff; color: #fff; border-color: #1677ff; }

/* ===== 对比列表页分页 ===== */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.pagination a, .pagination span {
    min-width: 34px; padding: 5px 10px; background: #f8fafc; border: 1px solid #eef1f5;
    border-radius: 4px; color: #555; text-align: center; font-size: 13px;
}
.pagination a:hover { border-color: #1677ff; color: #1677ff; }
.pagination .current { background: #1677ff; color: #fff; border-color: #1677ff; }
.pagination .disabled { color: #c0c4cc; background: #f5f6f7; cursor: not-allowed; }
.pagination .dots { border: none; background: none; min-width: auto; color: #999; }

/* ===== 列表页说明 ===== */
.page-desc { margin-bottom: 12px; color: #999; font-size: 13px; }

/* ===== 更多入口 ===== */
.rel-more { margin-top: 10px; text-align: right; font-size: 13px; }
.rel-more a { color: #1677ff; }
.rel-more a:hover { color: #e67300; }
.rel-more a + a { margin-left: 16px; }

/* ===== 页脚 ===== */
.site-footer { background: #fff; border-top: 1px solid #eef1f5; margin-top: 24px; padding: 24px 0; }
.footer-inner { text-align: center; color: #999; font-size: 13px; }
.footer-inner p { margin-bottom: 6px; }
.footer-inner a { color: #666; margin: 0 4px; }
.footer-inner a:hover { color: #1677ff; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .brand-grid li { flex: 0 0 calc(33.3% - 10px); }
}
