/* probably-stolen.app —— 复古票据 / 像素店招（设计方向：复古像素，只用语义色变量） */
:root {
  --bg: #fdf6e3;
  --surface: #fffdf6;
  --ink: #1f1d1a;
  --muted: #6e675c;
  --line: #e4d9bf;
  --primary: #e4572e;
  --primary-dark: #b8421f;
  --primary-deep: #8f3218;
  --accent: #17bebb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 29, 26, 0.08);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

/* 顶栏 */
.top { background: var(--surface); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 30; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark { font-family: "Press Start 2P", Inter, sans-serif; font-size: 13px; background: var(--ink); color: var(--bg); padding: 8px 7px; border-radius: 6px; letter-spacing: 0; }
.menu-btn { display: none; margin-left: auto; font: inherit; font-weight: 600; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; min-height: 44px; padding: 0 14px; }
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-top { display: inline-block; padding: 10px 11px; color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 8px; }
.nav-top:hover { background: var(--bg); color: var(--primary-dark); }
.dd-btn { font: inherit; background: none; border: 0; color: var(--muted); padding: 6px; cursor: pointer; min-height: 40px; }
.dd { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(31, 29, 26, 0.14); z-index: 40; }
.dd.open { display: block; }
.dd a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.dd a:hover { background: var(--bg); color: var(--primary-dark); }

/* 首屏 */
.hero { border-bottom: 2px solid var(--line); padding: 40px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.eyebrow { font-family: "Press Start 2P", Inter, sans-serif; font-size: 12px; letter-spacing: 0; color: var(--primary-dark); margin-bottom: 14px; }
h1 { font-family: "Press Start 2P", Inter, sans-serif; font-size: 30px; letter-spacing: -0.5px; margin-bottom: 18px; }
h1 { max-width: 18ch; }
.hero-lede { font-size: 18px; color: var(--ink); max-width: 60ch; }
.hero-lede a { font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; background: var(--primary-dark); color: var(--white); font-weight: 700; text-decoration: none; border-radius: var(--radius); border: 2px solid var(--primary-dark); transition: background 150ms ease, transform 150ms ease; }
.btn:hover { background: var(--primary-deep); color: var(--white); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: 14px; font-weight: 600; background: var(--surface); border: 1px dashed var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); }
.hero-shot { margin: 0; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.hero-shot img { border-radius: 6px; }
.hero-shot figcaption { font-size: 12px; color: var(--muted); padding: 8px 4px 0; }

/* 区块 */
.sec { padding: 44px 0 8px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 20px; border-bottom: 2px dashed var(--line); padding-bottom: 12px; }
.sec-head h2 { font-size: 26px; margin: 0; }
.sec-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* 速查卡 */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); transition: border-color 150ms ease, transform 150ms ease; }
.fact:hover { border-color: var(--primary); transform: translateY(-2px); }
.fact .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.fact .v { font-weight: 700; font-size: 18px; }

/* 卡片 */
.cgrid { display: flex; flex-wrap: wrap; gap: 16px; }
.cgrid > .card { flex: 1 1 240px; min-width: 0; }
.pillars > .card { flex-basis: 220px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31, 29, 26, 0.1); color: var(--ink); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.card-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.card-note { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* 截图墙 */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wall figure { margin: 0; background: var(--surface); border: 2px solid var(--line); border-radius: 8px; overflow: hidden; }
.wall img { aspect-ratio: 16 / 9; object-fit: cover; }

/* 内页 */
.page-head { padding: 32px 0 24px; border-bottom: 2px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }
.stamp { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.lede { font-size: 18px; max-width: 75ch; }
.page { padding: 32px 0 56px; }
.entry { max-width: none; }
.prose, .sources, .faq, .lede { max-width: 78ch; }
.sec-h { font-size: 24px; margin: 32px 0 16px; }
.grp-h { font-size: 18px; margin: 26px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.prose h2 { font-size: 26px; margin: 40px 0 14px; padding-top: 8px; border-top: 2px dashed var(--line); }
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 24px; }
.prose figure { margin: 24px 0; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 8px; }
.prose figure img { border-radius: 6px; }
.prose figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }
.prose { overflow-wrap: anywhere; }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 20px 0; font-size: 15px; background: var(--surface); }
.prose pre { max-width: 100%; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); }
.prose blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--surface); color: var(--muted); }
.prose code { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 0.92em; }

/* Sources / FAQ */
.sources, .faq { margin-top: 36px; }
.sources h2, .faq h2 { font-size: 22px; border-top: 2px dashed var(--line); padding-top: 18px; }
.sources ol { font-size: 15px; color: var(--muted); }
.qa { border-bottom: 1px solid var(--line); padding: 14px 0; }
.qa h3 { font-size: 17px; margin: 0 0 6px; }
.qa p { margin: 0; color: var(--ink); }

/* 侧栏票据 */
.home-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; padding-bottom: 56px; }
.receipt { background: var(--surface); border: 2px dashed var(--ink); border-radius: var(--radius); padding: 18px; font-size: 14px; }
.receipt-h { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; margin-bottom: 12px; }
.receipt p { margin: 0 0 8px; color: var(--muted); }
.receipt-src { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 12px; }

/* 相关页 */
.more { padding-bottom: 56px; }
.more .cgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 全部页面 */
.ap-label { display: block; font-weight: 700; margin: 24px 0 8px; }
.ap-search { width: 100%; max-width: 420px; min-height: 46px; font: inherit; padding: 0 14px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.ap-sec { margin: 28px 0; }
.ap-sec h2 { font-size: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.ap-n { font-size: 13px; color: var(--muted); font-weight: 400; }
.ap-sec ul { columns: 2; column-gap: 32px; list-style: none; padding: 0; }
.ap-sec li { break-inside: avoid; padding: 4px 0; }

/* 页脚 */
.foot { background: var(--surface); border-top: 2px solid var(--ink); padding: 36px 0 20px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand { font-weight: 700; font-size: 18px; }
.foot-brand a { color: var(--ink); text-decoration: none; }
.foot-note { font-size: 14px; color: var(--muted); max-width: 46ch; }
.foot-h { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; margin: 0 0 10px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot-col a:hover { color: var(--primary-dark); text-decoration: underline; }
.foot-copy { font-size: 13px; color: var(--muted); margin: 28px auto 0; }

/* 404 */
.lost { padding: 64px 20px 96px; }

/* 手机 */
@media (max-width: 900px) {
  .top-in { flex-wrap: wrap; min-height: 56px; }
  .menu-btn { display: inline-block; }
  .nav { display: none; width: 100%; margin: 0 0 10px; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-top: 1px solid var(--line); }
  .nav-top { display: block; padding: 14px 8px; }
  .dd { position: static; border: 0; box-shadow: none; padding: 0 0 8px 12px; background: transparent; min-width: 0; }
  .dd-btn { float: right; min-height: 46px; padding: 0 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cgrid > .card { flex-basis: 45%; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-body { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 24px 0; }
  h1 { font-size: 22px; max-width: none; }
  .hero-lede { font-size: 17px; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; min-height: 48px; }
  .facts, .wall, .more .cgrid { grid-template-columns: 1fr; }
  .cgrid > .card { flex-basis: 100%; }
  .ap-sec ul { columns: 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .prose table { font-size: 14px; }
  .sec { padding-top: 32px; }
  h2 { font-size: 22px; }
}