/* F162.cn 榜单测评风 · 与blp2p站点完全不同的设计体系 */
:root {
  --bg: #faf6f0;
  --card: #ffffff;
  --ink: #241f18;
  --muted: #8a8172;
  --line: #ece4d7;
  --accent: #e8590c;
  --accent-dark: #d9480f;
  --dark: #1c1917;
  --dark2: #292524;
  --gold: #f08c00;
  --ok: #2f9e44;
  --bad: #c92a2a;
  --b-telecom: #4c6ef5;
  --b-mobile: #0c8a60;
  --b-unicom: #d6336c;
  --b-broadcast: #2f9e44;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* 顶栏：白底细线，区别于蓝底大顶栏 */
.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(6px);
}
.site-header .inner {
  max-width: 1120px; margin: 0 auto;
  padding: 10px 16px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
}
.logo { font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: .5px; }
.logo b { color: var(--accent); }
.logo small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.site-header nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 2px 6px; }
.site-header nav a {
  color: #5c5648; font-size: 14px; padding: 5px 10px; border-radius: 999px;
}
.site-header nav a:hover, .site-header nav a.on { background: #f3ede2; color: var(--accent-dark); text-decoration: none; }

.crumbs { max-width: 1120px; margin: 0 auto; padding: 12px 16px 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
main { max-width: 1120px; margin: 0 auto; padding: 14px 16px 70px; }

/* 首屏：炭黑渐变大横幅 */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 55%, #3d2b1f 100%);
  border-radius: 18px; color: #fff;
  padding: 40px 34px 34px; margin-bottom: 18px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 89, 12, .35), transparent 65%);
}
.hero .kicker {
  display: inline-block; background: rgba(232, 89, 12, .18); color: #ffb36b;
  border: 1px solid rgba(255, 179, 107, .35);
  font-size: 13px; padding: 3px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 { font-size: 27px; line-height: 1.35; letter-spacing: .5px; }
.hero h1 b { color: #ffa94d; }
.hero p.lead { color: #c9c2b6; margin: 12px 0 18px; font-size: 15px; max-width: 640px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; position: relative; z-index: 1; }
.hero .chips a {
  background: rgba(255, 255, 255, .1); color: #f3ede2; font-size: 13px;
  padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
}
.hero .chips a:hover { background: rgba(232, 89, 12, .3); text-decoration: none; }
.hero .btn { position: relative; z-index: 1; }

/* 按钮：橙色胶囊 */
.btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  font-size: 16px; font-weight: 700; padding: 12px 30px; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(232, 89, 12, .35);
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); text-decoration: none; }
.btn.small { font-size: 14px; padding: 8px 18px; border-radius: 10px; }

/* 信任背书条 */
.trustbar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; margin-bottom: 22px;
}
.trustbar div {
  background: var(--card); border: 1px dashed var(--line); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; color: #5c5648; text-align: center;
}
.trustbar div b { color: var(--ink); display: block; font-size: 15px; }

/* 区块 */
section.block {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px; margin-bottom: 22px;
  box-shadow: 0 1px 0 rgba(36, 31, 24, .03);
}
.sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.sec-head .bar { width: 8px; height: 22px; background: var(--accent); border-radius: 3px; align-self: center; }
.sec-head h2 { font-size: 21px; color: var(--ink); }
.sec-head .sub { font-size: 13px; color: var(--muted); }
section.block h3 { font-size: 16px; margin: 18px 0 8px; }
section.block p { margin-bottom: 10px; }
section.block ul, section.block ol { padding-left: 22px; margin-bottom: 10px; }
section.block li { margin-bottom: 7px; }
section.block li::marker { color: var(--accent); }

/* 榜单卡片 */
.rank-card {
  display: flex; gap: 16px; align-items: stretch;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin-bottom: 14px; background: #fff;
  transition: box-shadow .15s, border-color .15s;
  position: relative;
}
.rank-card:hover { box-shadow: 0 8px 24px rgba(36, 31, 24, .08); border-color: #f3d4b8; }
.rank-card .no {
  flex: 0 0 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(160deg, #f6b26b, var(--gold));
  color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  align-self: flex-start;
}
.rank-card.top .no { background: linear-gradient(160deg, #e8590c, #b53d09); }
.rank-card .info { flex: 1 1 auto; min-width: 0; }
.rank-card .name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.rank-card .name-row b.name { font-size: 17px; color: var(--ink); }
.badge {
  font-size: 12px; color: #fff; padding: 2px 9px; border-radius: 999px; font-weight: 600;
}
.badge.b-telecom { background: var(--b-telecom); }
.badge.b-mobile { background: var(--b-mobile); }
.badge.b-unicom { background: var(--b-unicom); }
.badge.b-broadcast { background: var(--b-broadcast); }
.tag {
  font-size: 12px; color: #8a5a2b; background: #fdf1e3;
  border: 1px solid #f5ddc0; padding: 1px 8px; border-radius: 999px;
}
.rank-card .flow { font-size: 14px; color: #5c5648; margin-bottom: 4px; }
.rank-card .flow b { color: var(--ink); }
.rank-card .score { font-size: 13px; color: var(--gold); }
.rank-card .score i { font-style: normal; color: var(--muted); margin-left: 6px; }
.rank-card .side {
  flex: 0 0 128px; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-end; gap: 8px; text-align: right;
}
.rank-card .price { font-size: 13px; color: var(--muted); }
.rank-card .price b { font-size: 26px; color: var(--accent-dark); font-family: Georgia, serif; }
.rank-card .price b small { font-size: 13px; color: var(--muted); font-family: inherit; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; background: #fff; min-width: 560px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
thead th { background: #f6efe4; color: #6b4f2a; font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #fdfaf4; }

/* 适合/不适合 双栏 */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fit-grid .fit, .fit-grid .nofit {
  border-radius: 12px; padding: 14px 16px; font-size: 14px;
}
.fit-grid .fit { background: #ebf7ee; border: 1px solid #cdebd4; }
.fit-grid .nofit { background: #fdeeee; border: 1px solid #f3d0d0; }
.fit-grid b { display: block; margin-bottom: 6px; }
.fit-grid .fit b { color: var(--ok); }
.fit-grid .nofit b { color: var(--bad); }
.fit-grid ul { margin: 0; padding-left: 20px; }
.fit-grid li { margin-bottom: 4px; }

/* 提示框 */
.note {
  background: #fff8ec; border: 1px solid #f2dfbe; border-radius: 12px;
  padding: 12px 16px; font-size: 14px; color: #93551c; margin: 12px 0;
}
.note b { color: #b3540a; }

/* FAQ 手风琴 */
details.faq {
  border: 1px solid var(--line); border-radius: 12px; background: #fdfaf4;
  margin-bottom: 10px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--ink);
  list-style: none; position: relative; padding-right: 40px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 20px; font-weight: 700;
}
details.faq[open] summary::after { content: "−"; }
details.faq .faq-a { padding: 0 16px 14px; font-size: 15px; color: #4c463c; }

/* 文章内链推荐 */
.reco { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.reco a {
  background: #fdfaf4; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; display: block; transition: border-color .15s;
}
.reco a:hover { border-color: #f3d4b8; text-decoration: none; }
.reco a b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.reco a span { font-size: 12px; color: var(--muted); }

/* 关键词内链行 */
.kw-links { font-size: 13px; color: var(--muted); line-height: 2; }
.kw-links a { color: #7c6a4d; margin-right: 4px; }
.kw-links a:hover { color: var(--accent-dark); }

/* 页脚 */
.site-footer {
  background: var(--dark); color: #a8a29e; padding: 30px 16px 90px;
  font-size: 13px; line-height: 2;
}
.site-footer .inner { max-width: 1120px; margin: 0 auto; }
.site-footer a { color: #d6d3d1; margin-right: 12px; }
.site-footer .kwrow { margin: 8px 0; }
.site-footer .disc { color: #78716c; margin-top: 8px; }

/* 移动端吸底CTA条 */
.m-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -4px 16px rgba(36, 31, 24, .12);
  padding: 9px 14px; align-items: center; gap: 12px;
}
.m-cta .t { flex: 1; font-size: 12px; color: var(--muted); line-height: 1.4; }
.m-cta .t b { display: block; font-size: 14px; color: var(--ink); }
.m-cta .btn { padding: 10px 22px; font-size: 15px; }

@media (max-width: 720px) {
  .hero { padding: 26px 20px; border-radius: 14px; }
  .hero h1 { font-size: 21px; }
  .rank-card { flex-wrap: wrap; }
  .rank-card .side { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .rank-card .no { flex: 0 0 38px; height: 38px; font-size: 17px; }
  .fit-grid { grid-template-columns: 1fr; }
  section.block { padding: 18px; }
  .btn { width: 100%; text-align: center; }
  .hero .btn { display: block; text-align: center; }
  .m-cta { display: flex; flex-wrap: nowrap; }
  .m-cta .btn { width: auto; flex: 0 0 auto; white-space: nowrap; padding: 10px 20px; }
  body { padding-bottom: 64px; }
  .site-footer { padding-bottom: 100px; }
}
