/* Survival Log Guide — hoarding survival theme (v2, 对标站结构版 2026-08-16) */
:root {
  --bg: hsl(90, 20%, 8%);
  --bg-soft: hsl(90, 17%, 11%);
  --card: hsl(90, 15%, 14%);
  --line: hsl(85, 14%, 20%);
  --text: hsl(50, 22%, 80%);
  --muted: hsl(70, 10%, 58%);
  --accent: hsl(38, 53%, 54%);
  --accent-2: hsl(90, 30%, 47%);
  --alert: hsl(22, 67%, 55%);
  --dark: hsl(90, 25%, 5%);
  --text-strong: hsl(48, 30%, 92%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,15,10,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 58px;
}
.logo { font-weight: 800; font-size: 18px; color: var(--text-strong); letter-spacing: .3px; }
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.nav a { color: var(--muted); padding: 4px 0; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a.active { color: var(--accent); }

/* layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 20px 60px; }
main { min-height: 60vh; }

/* ===== hero (对标站：更新标签→hero→统计条) ===== */
.hero {
  position: relative;
  border-radius: 10px; overflow: hidden;
  margin-bottom: 0; border: 1px solid var(--line);
}
.hero img { width: 100%; display: block; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,15,10,.10) 0%, rgba(12,15,10,.92) 90%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.hero-eyebrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(12,15,10,.72); border: 1px solid var(--line);
  color: var(--accent); font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; letter-spacing: .4px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.hero h1 {
  color: var(--text-strong); font-size: clamp(28px, 4.5vw, 44px);
  text-shadow: 0 2px 14px rgba(0,0,0,.9); max-width: 780px; line-height: 1.18;
}
.hero-desc { color: var(--text); max-width: 660px; margin-top: 10px; font-size: 16px; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-block; background: var(--accent); color: #1c1a10; font-weight: 700;
  padding: 10px 18px; border-radius: 6px; font-size: 14px;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.ghost { background: rgba(12,15,10,.55); color: var(--text); border: 1px solid var(--line); }

/* ===== 大数字统计条（对标 gamblewithyourfriends / farevergame） ===== */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: var(--card); border: 1px solid var(--line); border-radius: 0 0 10px 10px;
  margin-bottom: 30px; overflow: hidden;
}
.stat { padding: 16px 14px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .value { font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.15; }
.stat .label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 更新标签条 */
.update-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); margin: 0 0 18px;
}
.update-strip .pill {
  background: var(--card); border: 1px solid var(--line); color: var(--accent);
  padding: 4px 12px; border-radius: 20px; font-weight: 600;
}

/* ===== 简介 + 特征标签 ===== */
.intro-block { margin-bottom: 28px; }
.tag-row { margin-top: 12px; }
.tag {
  display: inline-block; background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--accent); border-radius: 20px; padding: 3px 11px; font-size: 12px; margin: 0 6px 6px 0;
}

/* headings */
h2 { color: var(--accent); font-size: 24px; margin: 34px 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
h3 { color: var(--accent-2); font-size: 18px; margin: 22px 0 8px; }
h4 { color: var(--text); font-size: 15px; margin: 16px 0 6px; }
p { margin-bottom: 12px; }
ul, ol { margin: 0 0 14px 22px; }
li { margin-bottom: 6px; }
strong { color: var(--text-strong); }
em { color: var(--muted); }
code { background: var(--card); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px; transition: border-color .15s;
}
.card:hover { border-color: var(--accent-2); }
.card h3 { margin-top: 0; }
.card p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.card .meta { font-size: 12px; color: var(--muted); }
.card-img { width: 100%; border-radius: 6px; margin-bottom: 10px; display: block; }

/* timeline (新闻/补丁) */
.timeline { margin: 16px 0 24px; border-left: 2px solid var(--line); padding-left: 18px; }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2);
  border: 2px solid var(--bg);
}
.tl-date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.tl-title { font-weight: 700; color: var(--text-strong); margin: 2px 0 4px; }
.tl-summary { font-size: 14px; color: var(--muted); }

/* tables */
table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--card); color: var(--accent); white-space: nowrap; }
tr:nth-child(even) td { background: rgba(255,255,255,.02); }

/* callout */
.note {
  background: var(--card); border-left: 4px solid var(--alert);
  padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 16px 0; font-size: 15px;
}
.info-box {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 16px 0;
}
.cta-box {
  background: linear-gradient(180deg, var(--bg-soft), var(--card));
  border: 1px solid var(--line); border-radius: 10px;
  text-align: center; padding: 30px 20px; margin: 30px 0 10px;
}
.cta-box h2 { border: none; margin-top: 0; }

/* FAQ */
.faq-item { margin-bottom: 16px; }
.faq-item details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.faq-item summary { font-weight: 700; color: var(--text-strong); cursor: pointer; }
.faq-item summary::-webkit-details-marker { color: var(--accent); }
.faq-item p { margin: 10px 0 0; font-size: 14px; }

/* breadcrumb */
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--dark);
  padding: 26px 20px;
  font-size: 13px; color: var(--muted);
}
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--accent); }

/* responsive */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; padding: 10px 14px; }
  .nav { justify-content: center; }
  .hero-overlay { padding: 16px; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  table { font-size: 12.5px; max-width: 100%; }
  th { white-space: normal; }
  th, td { padding: 6px 8px; overflow-wrap: anywhere; }
}

/* page banner image */
.page-hero {
  width: 100%; max-height: 340px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); margin-bottom: 18px;
}
