:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --ink: #16181d;
  --body: #3e4450;
  --muted: #8b919c;
  --line: #eceef2;
  --blue: #2f6fed;
  --blue-soft: #eef3fb;
  --featured: #f4f7fc;
  --chip: #e8eaee;
  --take: #2c3340;
  --shadow: 0 10px 28px rgba(22, 24, 29, 0.045);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

button, input { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.top {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 28px 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: -0.02em;
  flex: none;
}

.mark { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  position: relative;
  color: #5e6570;
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.refresh {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5160;
  flex: none;
}

.refresh:hover { background: rgba(22, 24, 29, 0.05); }

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 28px 72px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stamp {
  margin: 0 0 4px;
  color: #9aa1ab;
  font-size: 13px;
  white-space: nowrap;
}

.chips, .archive {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar, .archive::-webkit-scrollbar { display: none; }

.chips { margin-top: 22px; }

.chips button, .archive button, .segment button, .channels button {
  border: 0;
  background: transparent;
}

.chips button {
  flex: none;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--chip);
  color: #3a404a;
  font-size: 14px;
}

.chips button[aria-pressed="true"] {
  background: #1c1e22;
  color: #fff;
}

.archive {
  align-items: center;
  margin-top: 14px;
}

.archive-label {
  flex: none;
  color: var(--muted);
  font-size: 13px;
  margin-right: 4px;
}

.archive button {
  flex: none;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 8px;
  color: #5c6572;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.archive button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.06);
}

.banner {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: #44536b;
  font-size: 14px;
}

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(22, 24, 29, 0.04);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 22px 16px;
  min-width: 0;
}

.card.featured {
  grid-column: 1 / -1;
  background: var(--featured);
  box-shadow: none;
  padding: 26px 28px 18px;
}

.card-top, .card-foot, .person-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.tag-models { color: #3b6fd8; }
.tag-vision { color: #7c4dff; }
.tag-mac { color: #5c6572; }
.tag-nvidia { color: #1f8a4c; }
.tag-amd { color: #d35400; }

.when {
  margin: 0;
  color: #a0a6b0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card h2, .gpu-card h2, .person h2 {
  margin: 12px 0 8px;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.card.featured h2 { font-size: clamp(1.55rem, 2.4vw, 1.85rem); }

.summary, .takeaway, .context {
  margin: 0;
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.75;
}

.card-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px 32px;
  margin-top: 4px;
}

.card.featured .takeaway {
  margin-top: 12px;
  padding-left: 28px;
  border-left: 1px solid #e1e6f0;
  color: #3358c5;
}

.rule {
  margin: 16px 0 14px;
  border: 0;
  border-top: 1px solid var(--line);
}

.fold { margin-top: 12px; }

.fold summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #66707c;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}

.fold summary::-webkit-details-marker { display: none; }

.fold summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 10px;
}

.fold[open] summary::after { content: "▴"; }

.fold p {
  margin: 4px 0 0;
  color: #66707c;
  font-size: 13px;
  line-height: 1.7;
}

.card-foot { margin-top: 14px; align-items: flex-end; }

.source {
  color: var(--blue);
  font-size: 14px;
  text-decoration: none;
}

a.source:hover { text-decoration: underline; text-underline-offset: 3px; }

.source.muted { color: var(--muted); }

.arrow { font-size: 12px; }

.verify, .tags {
  margin: 0;
  color: #a0a6b0;
  font-size: 12px;
  text-align: right;
}

.segment {
  display: inline-flex;
  margin-top: 18px;
  padding: 3px;
  background: #e6e8ec;
  border-radius: 11px;
}

.segment button {
  min-height: 32px;
  padding: 4px 16px;
  border-radius: 8px;
  color: #3a404a;
  font-size: 14px;
}

.segment button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.08);
}

.channels {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  margin-top: 14px;
  scrollbar-width: none;
}

.channels::-webkit-scrollbar { display: none; }

.channels button {
  flex: none;
  padding: 4px 0 6px;
  color: var(--blue);
  font-size: 14px;
}

.channels button[aria-pressed="true"] {
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.gpu-card, .person {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 22px 16px;
  min-height: 280px;
}

.gpu-card h2 { margin-top: 14px; font-size: 1.7rem; }

.gpu-note {
  margin: 0;
  color: #8b919c;
  font-size: 13px;
}

.price {
  margin: 22px 0 0;
  font-size: 1.85rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.price small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.checked {
  margin: 8px 0 0;
  color: #9aa1ab;
  font-size: 12px;
}

.trend {
  flex: 1;
  display: grid;
  place-items: center;
  margin: 18px 0;
  color: #c0c4cb;
  font-size: 13px;
  text-align: center;
}

.brand-nvidia { color: #1f8a4c; }
.brand-amd { color: #d35400; }
.brand-cn { color: #b42318; }

.person { min-height: 0; }

.who { display: flex; align-items: center; gap: 10px; min-width: 0; }

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8eef8;
  color: #3b6fd8;
  font-size: 15px;
  font-weight: 700;
  flex: none;
}

.who strong { display: block; font-size: 14px; line-height: 1.3; }

.handle {
  display: block;
  color: #8b919c;
  font-size: 12px;
  font-weight: 450;
}

.person h2 { margin-top: 16px; }

.empty {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 28px 22px;
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.foot-note {
  margin: 28px 0 0;
  color: #a0a6b0;
  font-size: 12px;
}

@media (max-width: 800px) {
  .top { padding: 16px 16px 4px; gap: 12px; flex-wrap: wrap; }
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
    overflow-x: auto;
  }
  main { padding: 8px 16px 48px; }
  .board { grid-template-columns: 1fr; }
  .card-split { grid-template-columns: 1fr; }
  .card.featured .takeaway {
    margin-top: 8px;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid #e1e6f0;
  }
  .page-head { align-items: flex-start; flex-direction: column; }
  .stamp { margin: 0; }
  .card.featured h2, .gpu-card h2 { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
