@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070b14;
  --surface: #0d1526;
  --surface-2: #111c30;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e6edf7;
  --muted: #94a3b8;
  --accent: #ff3b8d;
  --teal: #2dd4bf;
  --sky: #38bdf8;
  --amber: #fbbf24;
  --font-text: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-display: 'Barlow Condensed', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 18% -8%, #16233c 0%, transparent 62%),
    radial-gradient(800px 420px at 92% 4%, rgba(255, 59, 141, 0.08) 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--sky);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.84);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--amber), var(--teal));
}

.brand-cn {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}

.nav .nav-cta {
  padding: 6px 12px;
  border: 1px solid rgba(255, 59, 141, 0.5);
  border-radius: 8px;
  color: #ff9cc4;
  background: rgba(255, 59, 141, 0.1);
}

.nav .nav-cta:hover {
  color: #fff;
  background: rgba(255, 59, 141, 0.2);
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 20px 84px;
}

.container.wide {
  max-width: 980px;
}

.hero {
  padding: 8px 0 12px;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  margin: 44px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 24px;
  line-height: 1.3;
}

h3 {
  margin: 26px 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
}

.meta {
  font-size: 13px;
  color: var(--muted);
}

.meta strong {
  color: var(--text);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 28, 48, 0.92), rgba(13, 21, 38, 0.92));
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 59, 141, 0.5);
  text-decoration: none;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card .card-kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.callout {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 59, 141, 0.07);
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.callout strong {
  color: var(--text);
}

.callout.warn {
  border-color: var(--amber);
  background: rgba(251, 191, 36, 0.07);
}

.callout.info {
  border-color: var(--sky);
  background: rgba(56, 189, 248, 0.07);
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.progress-wrap {
  margin: 20px 0 10px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--muted);
}

.progress-head strong {
  color: var(--text);
  font-size: 15px;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--amber), var(--teal));
  transition: width 0.25s ease;
}

.checklist {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(13, 21, 38, 0.66);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.check-row:last-child {
  border-bottom: 0;
}

.check-row.done {
  background: rgba(45, 212, 191, 0.06);
}

.check-row input[type='checkbox'] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.check-row input[type='number'] {
  flex: 0 0 auto;
  width: 92px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.check-row input:focus-visible,
.btn:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 12px;
  line-height: 1.5;
}

.check-main {
  flex: 1;
  min-width: 0;
}

.check-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.check-sub {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.check-count {
  flex: 0 0 auto;
  min-width: 64px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--sky);
  font-size: 10px;
  font-weight: 600;
  vertical-align: 1px;
  white-space: nowrap;
}

.badge.hard {
  border-color: rgba(255, 59, 141, 0.3);
  background: rgba(255, 59, 141, 0.12);
  color: #ff8ab8;
}

details.chapter {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 21, 38, 0.6);
  overflow: hidden;
}

details.chapter > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

details.chapter > summary::after {
  content: '+';
  color: var(--muted);
  font-weight: 400;
  font-size: 18px;
}

details.chapter[open] > summary::after {
  content: '−';
}

details.chapter[open] > summary {
  border-bottom: 1px solid var(--line);
}

details.chapter .check-row {
  padding-left: 16px;
  padding-right: 16px;
}

.toc {
  margin: 24px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 21, 38, 0.5);
  font-size: 14px;
}

.toc strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc a {
  display: inline-block;
  margin: 3px 14px 3px 0;
  color: var(--muted);
}

.toc a:hover {
  color: var(--text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.btn:hover {
  background: #e42f7d;
  text-decoration: none;
}

.btn.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.btn.secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.btn.ghost {
  padding: 8px 12px;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.btn.ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 20px 42px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sources {
  margin: 18px 0 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted);
}

.sources li {
  margin: 4px 0;
}

.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.kv-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 21, 38, 0.55);
}

.kv-item .k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.kv-item .v {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.kv-item .u {
  font-family: var(--font-text);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .brand-cn {
    display: none;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .nav .nav-cta {
    padding: 5px 9px;
  }

  .container {
    padding: 30px 16px 64px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    margin-top: 36px;
    font-size: 21px;
  }

  .lead {
    font-size: 16px;
  }

  th,
  td {
    padding: 8px 7px;
  }

  .check-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
  }

  .check-main {
    min-width: 0;
  }

  .check-row input[type='number'] {
    width: 68px;
    padding: 5px 6px;
    font-size: 13px;
  }

  .check-count {
    min-width: 0;
    margin-left: 0;
    font-size: 11px;
  }

  th {
    white-space: normal;
  }

  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .site-footer,
  .btn-row,
  .toc,
  .progress-wrap {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  a {
    color: #111;
  }

  .card,
  .checklist,
  details.chapter,
  .table-wrap {
    border-color: #ddd;
    background: #fff;
  }

  .callout {
    border-color: #999;
    background: #f5f5f5;
    color: #111;
  }
}

/* -------------------------------------------------------------------------- */
/* Zine layer：第一章生存包 / 地下手册                                          */
/* -------------------------------------------------------------------------- */

html[data-spoiler='clean'] .spoiler-light,
html[data-spoiler='clean'] .spoiler-heavy,
html[data-spoiler='street'] .spoiler-heavy {
  display: none !important;
}

.zine-hero {
  position: relative;
}

.marquee {
  margin: 0 0 28px;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  padding: 8px 0;
  transform: rotate(-0.6deg) scale(1.01);
}

.marquee-track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: zine-marquee 26s linear infinite;
}

@keyframes zine-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.spoiler-switch {
  display: inline-flex;
  gap: 4px;
  margin: 14px 0 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
}

.spoiler-switch button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.spoiler-switch button span {
  font-family: var(--font-text);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.7;
}

.spoiler-switch button[aria-pressed='true'] {
  background: var(--accent);
  color: #fff;
}

.spoiler-switch button:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.stamp {
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid currentColor;
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  transform: rotate(-3deg);
  white-space: nowrap;
}

.stamp.verified {
  color: var(--teal);
}

.stamp.rumor {
  color: var(--amber);
}

.stamp.avoid {
  color: #fb7185;
}

.stamp.big {
  padding: 4px 12px;
  font-size: 15px;
}

.big-quote {
  margin: 30px 0;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(24px, 4.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-transform: uppercase;
}

.big-quote small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.survival-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.survival-card {
  position: relative;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  background: rgba(13, 21, 38, 0.72);
}

.survival-card .num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 0.9;
  color: var(--accent);
}

.survival-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 16px;
}

.survival-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.poster {
  position: relative;
  margin: 26px 0;
  padding: 20px 20px 18px;
  border: 2px solid var(--text);
  background: #090909;
  box-shadow: 8px 8px 0 rgba(255, 59, 141, 0.28);
  transform: rotate(-0.8deg);
  clip-path: polygon(0 1%, 100% 0, 99.4% 98.5%, 0.6% 100%);
}

.poster::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 18px;
  width: 70px;
  height: 20px;
  background: rgba(251, 191, 36, 0.8);
  transform: rotate(-4deg);
}

.poster .skull {
  display: block;
  margin-bottom: 4px;
  font-size: 36px;
  line-height: 1;
}

.poster h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.poster p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 14px;
}

.zine-note {
  display: inline;
  background: linear-gradient(180deg, transparent 55%, rgba(255, 59, 141, 0.28) 55%);
  padding: 0 2px;
}

.zine-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 26px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 59, 141, 0.45);
  background:
    linear-gradient(100deg, rgba(255, 59, 141, 0.16), rgba(255, 59, 141, 0.02) 60%),
    rgba(13, 21, 38, 0.8);
  color: var(--text);
}

.zine-banner:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.zine-banner strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.zine-banner .zine-banner-copy {
  flex: 1;
  min-width: 180px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.zine-banner .arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.zine-table td:first-child {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.zine-table td:nth-child(3) {
  white-space: nowrap;
}

.zine-check .check-row {
  border-bottom-style: dashed;
}

@media (max-width: 640px) {
  .marquee {
    font-size: 11px;
    padding: 7px 0;
  }

  .spoiler-switch {
    width: 100%;
  }

  .spoiler-switch button {
    flex: 1;
    padding: 6px 4px;
  }

  .survival-grid {
    grid-template-columns: 1fr;
  }

  .zine-banner strong {
    font-size: 19px;
  }

  .zine-table td:nth-child(3) {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}
