:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --ink: #23201c;
  --muted: #7a746b;
  --line: #e4ded3;
  --empty: #e9e4da;
  --live: #2fae6b;
  --building: #f2a52b;
  --planned: #8e9bb0;
  --marker: #4cc38a;
  --shadow: 0 1px 2px rgba(40, 30, 20, .04), 0 8px 24px rgba(40, 30, 20, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161513; --card: #211f1c; --ink: #f1ede6; --muted: #9c958a;
    --line: #34302b; --empty: #2a2723; --planned: #6c788c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161513; --card: #211f1c; --ink: #f1ede6; --muted: #9c958a;
  --line: #34302b; --empty: #2a2723; --planned: #6c788c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
main, .nav, footer { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* 导航 */
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { text-decoration: none; }
.logo-badge {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--ink); font: 800 11px/1.05 ui-rounded, -apple-system, sans-serif; text-align: center;
}
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--muted); }

/* 首屏 */
.hero { text-align: center; padding: 48px 0 40px; }
.hero h1 { font-size: clamp(40px, 8vw, 76px); line-height: 1.15; margin: 0 0 24px; font-weight: 800; letter-spacing: -.02em; }
.mark { position: relative; display: inline-block; z-index: 0; }
.mark svg { position: absolute; left: -6%; bottom: -.08em; width: 112%; height: .5em; z-index: -1; overflow: visible; }
.mark path { fill: none; stroke: var(--marker); stroke-width: 7; stroke-linecap: round; opacity: .85; }
.lead { margin: 0 auto; color: var(--muted); font-size: 17px; }
/* 中文断行：只在逗号、句号处换行，一个分句（.nb）内绝不拆开 */
.lead .line { display: block; }
.nb { display: inline-block; white-space: nowrap; }
p { text-wrap: pretty; }

/* 清单（进度并在标题里） */
#list { scroll-margin-top: 24px; }
.list-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 8px 0 24px; }
.tally { position: relative; margin: 0; padding-bottom: 10px; font-size: 15px; color: var(--muted); }
.tally b { font-size: 28px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.tally .of { font-weight: 700; color: var(--ink); margin-right: 6px; }
.tally .sep { margin: 0 8px; opacity: .5; }
.tally-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 99px; background: var(--empty); overflow: hidden; }
.tally-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: max(var(--w), 3px); background: var(--live); border-radius: 99px; }
h2 { font-size: 28px; margin: 0; font-weight: 800; }
.filters { display: flex; gap: 2px; }
.filters button {
  border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600;
  padding: 6px 12px; border-radius: 99px; cursor: pointer;
}
.filters button:hover { color: var(--ink); }
.filters button.on { background: var(--ink); color: var(--bg); }

.cards { display: flex; flex-direction: column; gap: 24px; }
.card {
  display: grid; grid-template-columns: 1fr 400px; align-items: center; gap: 40px;
  background: var(--card); border-radius: 40px; padding: 48px 48px 48px 64px; min-height: 360px;
}
.card[hidden] { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.card h3 { margin: 10px 0 12px; font-size: 34px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.desc { margin: 0; font-size: 17px; max-width: 30em; text-wrap: balance; }
.ph { display: inline-block; max-width: 100%; }
.orig { margin: 8px 0 28px; font-size: 14px; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform .15s;
}
a.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: none; color: var(--muted); border: 1.5px solid var(--line); }

.card-art {
  position: relative; height: 264px; border-radius: 28px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 12%, var(--card));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.card-art .icon {
  width: 104px; height: 104px; border-radius: 26px; background: var(--c); color: #fff;
  display: grid; place-items: center; font-size: 48px; font-weight: 800;
  box-shadow: 0 16px 32px color-mix(in srgb, var(--c) 30%, transparent);
}
.card-art .en { font-weight: 700; font-size: 15px; color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.card-art .no { position: absolute; top: 18px; left: 22px; font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: color-mix(in srgb, var(--c) 55%, var(--muted)); }
.card-art .meter { position: absolute; left: 22px; right: 22px; bottom: 20px; height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--c) 18%, transparent); overflow: hidden; }
.card-art .meter i { display: block; height: 100%; background: var(--c); border-radius: 99px; }

/* 关于 */
.about { margin: 80px 0 40px; max-width: 680px; }
.about p { color: var(--muted); }
.about code { background: var(--card); padding: 2px 6px; border-radius: 6px; font-size: 14px; }

/* 联系 */
.contact {
  display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: center;
  background: var(--card); border-radius: 40px; padding: 48px 48px 48px 64px; margin: 0 0 64px;
  scroll-margin-top: 24px;
}
.contact p { color: var(--muted); max-width: 30em; margin: 12px 0 0; }
.contact img { width: 100%; height: auto; border-radius: 20px; background: #fff; border: 1px solid var(--line); }

footer { display: flex; justify-content: space-between; padding-top: 32px; padding-bottom: 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer a { text-decoration: none; }

/* 截图：两台手机错开，底部被面板裁掉一截，学 100badideas */
.card h3 .mini { width: 34px; height: 34px; border-radius: 9px; vertical-align: -4px; margin-right: 12px; }
.card-art .icon img { width: 100%; height: 100%; border-radius: inherit; display: block; }
.card-art.has-shots { height: 400px; justify-content: flex-start; }
.phones { position: absolute; left: 0; right: 0; top: 48px; display: flex; justify-content: center; gap: 0; }
.phone {
  width: 168px; aspect-ratio: 1206 / 2622; border-radius: 30px; padding: 5px; background: #111;
  box-shadow: 0 24px 48px rgba(20, 15, 10, .18), 0 0 0 1px rgba(0, 0, 0, .06);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 25px; background: #fff; }
.phone:nth-child(1) { transform: rotate(-4deg); margin-right: -18px; z-index: 1; }
.phone:nth-child(2) { transform: translateY(36px) rotate(4deg); }
.phone:only-child { transform: none; margin: 0; width: 210px; }
.has-shots .meter { display: none; }

@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; padding: 32px; gap: 28px; border-radius: 32px; min-height: 0; }
  .card-art { order: -1; height: 200px; }
  .card-art.has-shots { height: 340px; }
}
@media (max-width: 720px) {
  main, .nav, footer { padding: 0 16px; }
  footer { padding-top: 24px; padding-bottom: 32px; }
  .nav { height: 72px; }
  .nav nav { gap: 18px; }
  .hero { padding: 24px 0 28px; }
  .lead { font-size: 15px; }
  .card { padding: 20px 20px 28px; border-radius: 28px; }
  .card-art { border-radius: 20px; height: 188px; gap: 10px; padding-bottom: 8px; }
  .contact { grid-template-columns: 1fr; padding: 28px 20px; border-radius: 28px; gap: 20px; }
  .contact img { max-width: 240px; justify-self: center; }
  .card-art .icon { width: 80px; height: 80px; border-radius: 20px; font-size: 36px; }
  .card-art.has-shots { height: 300px; }
  .phone { width: 132px; border-radius: 24px; padding: 4px; }
  .phone img { border-radius: 20px; }
  .phone:only-child { width: 150px; }
  .phones { top: 40px; }
  .card h3 { font-size: 28px; }
  .desc { font-size: 16px; }
}
