:root {
  --paper: #F3F5F2;
  --sheet: #FFFFFF;
  --ink: #17242B;
  --muted: #5B686D;
  --line: #D6DCD7;
  --lit: #0E9F6E;
  --lit-soft: #D3EFE3;
  --gold: #B7791F;
  --gold-soft: #F6E7CB;
  --link: #1F4FD1;
  --off: #E3E8E4;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1619;
    --sheet: #162126;
    --ink: #E4EBE7;
    --muted: #93A2A7;
    --line: #2A383E;
    --lit: #2BC48A;
    --lit-soft: #123A2C;
    --gold: #E0A94A;
    --gold-soft: #3A2C12;
    --link: #8DA9FF;
    --off: #22303A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--font);
  font-variant-numeric: tabular-nums;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }

.top, main, .foot { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.top {
  display: flex; align-items: center; gap: 16px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; margin-right: auto; }
.day-nav { display: flex; align-items: center; gap: 4px; }
.day-nav select, .step, .lang {
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--sheet); border: 1px solid var(--line); border-radius: 6px;
  height: 34px; padding: 0 10px; cursor: pointer;
}
.step { width: 34px; padding: 0; font-size: 18px; line-height: 1; }
.step:disabled { opacity: .35; cursor: default; }
.lang { font-weight: 500; }

/* 首屏：日期 + 一句话 + 世界条 */
.hero { padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
.hero h1 { margin: 0; font-size: clamp(34px, 6vw, 52px); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.hero-line { margin: 14px 0 26px; font-size: 18px; color: var(--muted); max-width: 40em; }
.hero-line strong { color: var(--ink); font-weight: 500; }

/* 世界条：30 个国家按地区分组，亮的格子 = 这个国家今天有信号。这是网站最有辨识度的东西 */
.world { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.region { display: flex; flex-direction: column; gap: 6px; }
.region-name { font-size: 12px; color: var(--muted); }
.cells { display: flex; gap: 3px; }
.cell {
  display: inline-block; width: 26px; height: 34px; border-radius: 3px;
  background: var(--off); position: relative;
}
.cell b {
  position: absolute; left: 0; right: 0; bottom: 3px;
  font-size: 10px; font-weight: 500; text-align: center; color: var(--muted); text-transform: uppercase;
}
.cell.lit { background: var(--lit); }
.cell.gold { background: var(--gold); }
.cell.lit b { color: #fff; }
.world .cell { height: calc(14px + var(--h, 0) * 26px); min-height: 34px; align-self: flex-end; }
.cells { align-items: flex-end; min-height: 40px; }
.strip-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.strip-key .cell { width: 12px; height: 12px; min-height: 0; }
.strip-key .cell.gold { margin-left: 12px; }
.list-key { margin: 0 0 4px; }
.list-key .cell.gold { margin-left: 0; }
.key-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; margin-right: 14px; }
.list-key > span:first-child { width: 100%; }

h2 { font-size: 22px; font-weight: 700; margin: 52px 0 6px; }
.section-note { margin: 0 0 22px; color: var(--muted); font-size: 15px; max-width: 42em; }

/* 单品卡：不是一排相同的圆角卡片，而是一条条记录，左边是判断，右边是内容 */
.card {
  display: grid; grid-template-columns: 112px 1fr; gap: 0 24px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.card:last-child { border-bottom: 1px solid var(--line); }
.verdict { font-weight: 700; font-size: 15px; }
.verdict.build { color: var(--lit); }
.verdict.watch { color: var(--gold); }
.verdict.skip { color: var(--muted); }
.pips { display: flex; gap: 3px; margin-top: 8px; }
.pips i { width: 14px; height: 6px; border-radius: 1px; background: var(--off); }
.pips i.on { background: currentColor; }
.pips-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.maker { font-size: 13px; color: var(--muted); margin-top: 2px; }
.one-liner { margin: 10px 0 12px; font-size: 17px; }
.signals { margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.signals li { padding-left: 14px; position: relative; }
.signals li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 1px; background: var(--lit); }
.card .cells { min-height: 0; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.mini-region { display: inline-flex; gap: 3px; }
.card .cell { width: 18px; height: 18px; }
.card .cell b { display: none; }
details { border-top: 1px dashed var(--line); padding-top: 10px; }
summary { cursor: pointer; color: var(--link); font-size: 14px; font-weight: 500; }
.detail { display: grid; grid-template-columns: 140px 1fr; gap: 8px 18px; margin: 14px 0 4px; font-size: 15px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; }
.sources { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.sources a { margin-right: 10px; }

/* 图标 */
.icon { width: 44px; height: 44px; border-radius: 10px; flex: none; object-fit: cover; background: var(--off); box-shadow: inset 0 0 0 1px var(--line); }
.icon-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: #fff;
  background: hsl(var(--hue) 35% 45%); box-shadow: none;
}
.card-head { display: flex; gap: 14px; align-items: center; }
.card-head .icon { width: 56px; height: 56px; border-radius: 13px; }

/* App 列表：一行一个 App，图标 + 名字 | 关键数字 | 国家条 */
.app-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.app-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 6px 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.app-main { display: flex; gap: 12px; align-items: center; min-width: 0; color: var(--ink); text-decoration: none; }
.app-main:hover .app-name { text-decoration: underline; }
.app-text { display: flex; flex-direction: column; min-width: 0; }
.app-name { font-weight: 500; font-size: 15px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-text .dev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.age { margin-left: 4px; }
.age.fresh { color: var(--lit); font-weight: 500; }
.app-stat { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.app-stat b { font-weight: 500; }
.app-strip { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; max-width: 280px; }
.reach { font-size: 14px; line-height: 1.4; }
.reach b { font-weight: 700; }
.reach.earning b { color: var(--gold); }
.app-strip .cells { gap: 5px; min-height: 0; }
.app-strip .mini-region { gap: 2px; }
.app-strip .cell { width: 7px; height: 14px; border-radius: 1px; }
.app-strip .cell b { display: none; }
.app-count { font-size: 12px; color: var(--muted); }

.more-btn {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--link); background: none;
  border: 0; padding: 12px 0; cursor: pointer;
}
.more-btn:hover { text-decoration: underline; }

/* 筛选 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; align-items: center; }
.chip {
  font: inherit; font-size: 13px; color: var(--ink); background: var(--sheet);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.dot-gold { width: 8px; height: 8px; border-radius: 1px; background: var(--gold); display: inline-block; }

/* 榜单表格 */
.list { margin-top: 30px; }
.list h3 { font-size: 17px; font-weight: 700; margin: 0 0 2px; }
.list p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--sheet); }
th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num { text-align: right; white-space: nowrap; }
th.num { text-align: right; }
.gain { color: var(--lit); font-weight: 500; }
.tag-gold { display: inline-block; font-size: 12px; padding: 0 6px; border-radius: 3px; background: var(--gold-soft); color: var(--gold); white-space: nowrap; }
.dev { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }

.foot { padding-top: 48px; padding-bottom: 48px; font-size: 13px; color: var(--muted); }
.foot p { margin: 0 0 6px; max-width: 46em; }

.notice { padding: 40px 0; color: var(--muted); }

@media (max-width: 640px) {
  .top { flex-wrap: wrap; }
  .brand { width: 100%; }
  .day-nav { margin-right: auto; }
  .card { grid-template-columns: 1fr; gap: 10px; }
  .card .side { display: flex; align-items: center; gap: 12px; }
  .pips { margin-top: 0; }
  .detail { grid-template-columns: 1fr; gap: 2px; }
  .detail dd { margin-bottom: 10px; }
  .cell { width: 20px; }
  .card .cell { width: 14px; height: 14px; }
  .hide-sm { display: none; }
  .app-row { grid-template-columns: 1fr; gap: 6px; }
  .app-stat { flex-direction: row; flex-wrap: wrap; gap: 0 8px; align-items: baseline; padding-left: 56px; }
  .app-strip { align-items: flex-start; text-align: left; max-width: none; padding-left: 56px; }
  .app-strip .cells { gap: 3px; }
  .app-strip .cell { width: 5px; height: 12px; }
  td, th { padding: 8px 6px; }
}
