/* ============ OC2 地图管理器 · 宣传页 ============ */
:root {
  --paper: #FFF4E3;
  --panel: #FFFDF6;
  --ink: #3A2A1E;
  --red: #E14434;
  --gold: #F6B93B;
  --dark: #2E2119;
  --darker: #20150E;
  --muted: #7A6552;
  --shadow: rgba(58, 42, 30, 0.16);
  --display: "Arial Black", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --body: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  background: rgba(246, 185, 59, 0.28);
  border: 1px solid rgba(58, 42, 30, 0.18);
  border-radius: 5px;
  padding: 1px 6px;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 244, 227, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 17px; }
.brand img { border-radius: 8px; border: 2px solid var(--ink); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-weight: 700; font-size: 14px; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 3px; background: var(--red); border-radius: 2px;
  transition: right 0.25s ease;
}
.nav-links a:hover::after { right: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 16px;
  color: var(--panel);
  background: var(--red);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 12px 30px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-ghost { background: var(--gold); color: var(--ink); }
.btn-sm { font-size: 13px; padding: 8px 20px; margin-left: 4px; }

/* ---------- 贴纸标题 ---------- */
.sticker {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--red);
  text-shadow:
    2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink),
    2px 2px var(--ink), -2px 2px var(--ink), 2px -2px var(--ink), -2px -2px var(--ink),
    6px 7px 0 rgba(58, 42, 30, 0.18);
}
.sticker-sm { font-size: clamp(26px, 4vw, 34px); text-align: center; }
.sticker-light {
  color: var(--paper);
  text-shadow:
    2px 0 var(--red), -2px 0 var(--red), 0 2px var(--red), 0 -2px var(--red),
    2px 2px var(--red), -2px 2px var(--red), 2px -2px var(--red), -2px -2px var(--red),
    6px 7px 0 rgba(0, 0, 0, 0.35);
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.badge {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 16px;
  transform: rotate(-1.5deg);
  box-shadow: 3px 3px 0 var(--shadow);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(42px, 6vw, 60px); margin-bottom: 22px; }
.lead { font-size: 17px; max-width: 30em; color: #55402E; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 13px; color: var(--muted); }

/* 拍立得叠放 */
.hero-art { position: relative; height: 430px; }
.polaroid {
  position: absolute;
  background: #fff;
  border: 2px solid var(--ink);
  padding: 8px 8px 26px;
  border-radius: 4px;
  box-shadow: 8px 10px 0 var(--shadow);
}
.polaroid img { width: 100%; height: auto; border-radius: 2px; filter: saturate(1.05); }
.polaroid.p1 { width: 74%; left: 4%; top: 10px; transform: rotate(-4.5deg); z-index: 3; }
.polaroid.p2 { width: 52%; right: -2%; top: 0; transform: rotate(5.5deg); z-index: 2; }
.polaroid.p3 { width: 58%; right: 2%; bottom: -6px; transform: rotate(2.5deg); z-index: 4; }

/* ---------- 红白格子分隔 ---------- */
.gingham {
  height: 24px;
  background:
    repeating-linear-gradient(45deg, rgba(225, 68, 52, 0.30) 0 9px, transparent 9px 18px),
    repeating-linear-gradient(-45deg, rgba(225, 68, 52, 0.30) 0 9px, transparent 9px 18px),
    var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

/* ---------- 统计条 ---------- */
.stats { background: var(--panel); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 44px;
  color: var(--red);
  line-height: 1.1;
}
.stat b i { font-style: normal; font-size: 22px; color: var(--ink); }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- 区块 ---------- */
.section { padding: 76px 0; }
.section-sub { text-align: center; color: var(--muted); margin: 14px 0 44px; }

/* ---------- 功能卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--panel);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  padding: 26px 24px 24px;
  box-shadow: 5px 6px 0 var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 5px 12px 0 var(--shadow); }
.card h3 { font-size: 17.5px; margin: 14px 0 8px; color: var(--ink); }
.card p { font-size: 14px; color: #5C4736; }
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--gold);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  transform: rotate(-3deg);
}
.ico svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--ink);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 地图墙 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shot {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 5px 6px 0 var(--shadow);
  transition: transform 0.18s ease;
}
.shot:hover { transform: translateY(-5px) rotate(-0.6deg); }
.shot img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; border-bottom: 2.5px solid var(--ink); }
.shot figcaption {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; padding: 12px 16px;
}
.shot b { font-size: 15.5px; }
.shot span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------- 使用步骤 ---------- */
.steps { list-style: none; max-width: 780px; margin: 0 auto; display: grid; gap: 28px; }
.step {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--panel);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 5px 6px 0 var(--shadow);
}
.step .num {
  flex: none;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 26px;
  color: var(--panel);
  background: var(--red);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}
.step:nth-child(2) .num { background: var(--gold); color: var(--ink); }
.step:nth-child(3) .num { background: var(--dark); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: #5C4736; }

/* ---------- CLI 深色区 ---------- */
.section-dark {
  background: var(--dark);
  color: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.section-dark .section-sub.light { color: #C9B6A2; }
.roadmap {
  text-align: center;
  margin-top: 34px;
  font-size: 14px;
  color: var(--gold);
}

/* ---------- 页脚 ---------- */
.footer { background: var(--panel); padding: 40px 0 46px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer b { font-family: var(--display); font-size: 17px; }
.footer p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.footer-meta { text-align: right; }
.footer .path {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: #9C8A76;
  word-break: break-all;
}

/* ---------- 入场动画（仅在启用 JS 时隐藏） ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 340px; width: 100%; max-width: 560px; margin: 10px auto 0; }
  .cards, .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .cards, .gallery { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-art { height: 260px; }
  .polaroid.p2, .polaroid.p3 { display: none; }
  .polaroid.p1 { width: 92%; left: 4%; }
  .step { flex-direction: column; gap: 14px; padding: 22px; }
  .footer-meta { text-align: left; }
}
