/* ==========================================================================
   HollowCamp · 样式表
   设计原则：苹果风（大留白 / 圆润 / 克制的色彩）、手机优先、
             触控目标 >= 48px、正文可读性优先。
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --bg-deep: #101b16;
  --text: #1d1d1f;
  --text-soft: #55555a;
  --text-muted: #86868b;
  --line: #e6e6e3;
  --line-soft: #f0f0ee;
  --accent: #1c6b4b;        /* 森林绿 —— 品牌主色 */
  --accent-dark: #14523a;
  --accent-wash: #eef6f1;
  --link: #0a66c2;          /* 蓝色只给交互元素 */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .06);
  --maxw: 1080px;
  --narrow: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          "Noto Sans", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1211;
    --bg-soft: #161a18;
    --bg-deep: #0a0d0c;
    --text: #f2f2f4;
    --text-soft: #b9b9be;
    --text-muted: #8a8a90;
    --line: #262b29;
    --line-soft: #1c211f;
    --accent: #4ec98d;
    --accent-dark: #7adbac;
    --accent-wash: #14231c;
    --link: #6cb2ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: var(--narrow); }

.muted { color: var(--text-muted); }
.small { font-size: 14px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--text-soft); text-decoration: none;
  padding: 12px 14px; min-height: 48px; display: inline-flex; align-items: center;
  border-radius: 10px; font-size: 15px;
}
.site-nav a:hover { color: var(--text); background: var(--bg-soft); }

/* ------------------------------------------------------------------ hero */

.hero { padding: 64px 0 40px; }
.eyebrow {
  margin: 0 0 10px; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.hero h1 {
  margin: 0 0 12px; font-size: clamp(38px, 7vw, 60px);
  line-height: 1.05; letter-spacing: -.03em; font-weight: 600;
}
.lead { margin: 0; font-size: clamp(18px, 2.4vw, 22px); color: var(--text-soft); }

.section { padding: 34px 0; }
.section-title {
  margin: 0 0 22px; font-size: 24px; font-weight: 600;
  letter-spacing: -.02em;
}

/* ----------------------------------------------------------------- cards */

.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.card-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--bg-soft); }
.card-img--empty { background: var(--bg-soft); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.card-desc { margin: 0; font-size: 15px; color: var(--text-soft); flex: 1; }
.card-meta { margin: 0; }

/* --------------------------------------------------------------- article */

.article { padding: 44px 0 10px; }
.article-hero { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; }
.article-head { margin-bottom: 30px; }
.article-head h1 {
  margin: 0 0 14px; font-size: clamp(30px, 5.2vw, 44px);
  line-height: 1.15; letter-spacing: -.025em; font-weight: 600;
}
.article-desc { margin: 0 0 12px; font-size: 19px; color: var(--text-soft); }

.prose { font-size: 18px; line-height: 1.75; }
/* ★ 段落间距统一由「相邻兄弟」控制。
   坑：这里【不能】再写 `.prose p { margin: 0 }` —— 它的特异性 (0,1,1)
   高于 `.prose > * + *` (0,1,0)，会把段落间距整个吃掉，正文挤成一坨。
   要清零就统一在 `.prose > *` 上做，让紧接着的 `* + *` 覆盖回来。 */
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.1em; font-size: 26px; font-weight: 600;
  letter-spacing: -.02em; scroll-margin-top: 80px;
}
.prose h3 { margin-top: 1.8em; font-size: 20px; font-weight: 600; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .45em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-soft); font-style: italic;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code {
  background: var(--bg-soft); padding: 2px 7px; border-radius: 6px;
  font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* 表格：窄屏可横向滚动，不撑破版心 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 300px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { font-weight: 600; color: var(--text); border-bottom: 2px solid var(--line-soft); }
.prose tbody tr:last-child td { border-bottom: 0; }

/* 站内 /go/ 链接：做成按钮观感，明确"这是要去看商品" */
.prose a.go-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin: .3em .3em .3em 0; padding: 12px 20px; min-height: 48px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.prose a.go-link:hover { background: var(--accent-dark); transform: translateY(-1px); text-decoration: none; }

/* ------------------------------------------------------------------ toc */

.toc {
  margin: 30px 0; padding: 20px 24px;
  background: var(--bg-soft); border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}
.toc-h { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* --------------------------------------------------------------- notice */

.notice {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; background: var(--bg-soft);
  font-size: 14px; color: var(--text-soft);
}
.notice strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.notice p { margin: 0; }
.notice--inline { margin: 20px 0 0; }

/* ------------------------------------------------------------------ /go/ */

.go-wrap { padding: 90px 22px 60px; text-align: center; }
.go-brand { font-size: 15px; font-weight: 600; color: var(--accent); margin: 0 0 26px; letter-spacing: .02em; }
.go-wrap h1 { margin: 0 0 18px; font-size: clamp(26px, 5vw, 36px); letter-spacing: -.02em; font-weight: 600; }
.go-card {
  margin: 26px auto 0; max-width: 480px; padding: 30px 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
.go-lead { margin: 0 0 20px; font-size: 17px; color: var(--text-soft); }
.go-lead strong { color: var(--text); }
.go-target {
  margin-top: 18px; word-break: break-all; font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-muted); opacity: .8;
}
.go-back { margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px; border-radius: 999px;
  font-size: 17px; font-weight: 600; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }

/* ------------------------------------------------------------- 根入口 */

.root-wrap { padding: 12vh 22px 80px; text-align: center; }
.root-brand { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 30px; color: var(--accent); }
.root-wrap h1 { margin: 0 0 34px; font-size: clamp(24px, 4.4vw, 32px); font-weight: 600; letter-spacing: -.02em; }
.lang-grid { display: grid; gap: 16px; max-width: 560px; margin: 0 auto; }
@media (min-width: 620px) { .lang-grid { grid-template-columns: 1fr 1fr; } }

.lang-card {
  display: flex; flex-direction: column; gap: 4px; padding: 24px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lang-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.lang-code { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
.lang-name { font-size: 22px; font-weight: 600; }
.lang-market { display: block; }
.lang-enter { margin-top: 10px; color: var(--link); font-weight: 600; }
.root-legal { margin-top: 44px; }

/* --------------------------------------------------------------- footer */

.site-footer {
  margin-top: 70px; padding: 46px 0 34px;
  border-top: 1px solid var(--line-soft); background: var(--bg-soft);
}
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.footer-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px; font-weight: 600; }
.site-footer a { display: block; color: var(--text-soft); text-decoration: none; padding: 5px 0; min-height: 32px; }
.site-footer a:hover { color: var(--accent); }
.site-footer a.is-current { color: var(--accent); font-weight: 600; }
.footer-base { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------- Checklisten (Packliste) */

.prose li.chk {
  list-style: none;
  position: relative;
  padding-left: 30px;
}
.prose li.chk::before {
  content: "";
  position: absolute;
  left: 0;
  top: .34em;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--text-muted);
  border-radius: 5px;
}
.prose li.chk--done { color: var(--text-muted); }
.prose li.chk--done::after {
  content: "";
  position: absolute;
  left: 5px;
  top: .5em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* --------------------------------------------- CTA / Newsletter-Blöcke */

.cta {
  margin: 42px 0;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.cta-title { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.cta-lead { margin: 0 0 20px; font-size: 15px; color: var(--text-soft); }
.cta-note { margin: 14px 0 0; font-size: 13px; color: var(--text-muted); }
.cta .btn { width: 100%; }
@media (min-width: 560px) { .cta .btn { width: auto; } }

.nl-form { display: grid; gap: 14px; }
.nl-field { display: grid; gap: 6px; }
.nl-label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.nl-form input[type="email"] {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.nl-form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.nl-consent {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
  font-size: 13px; line-height: 1.5; color: var(--text-soft);
}
.nl-consent input[type="checkbox"] { width: 26px; height: 26px; margin: 0; accent-color: var(--accent); }
.nl-consent a { color: var(--link); }

/* ------------------------------------------------------- Kontaktformular */
/* 说明：这是「一个框直接通知」的极简表单 —— 不落库、无收件箱。
   提交走 fetch，页面内出结果；禁用 JS 时退化为原生 POST（由中转端回结果页）。 */

.cf {
  display: grid;
  gap: 18px;
  margin: 32px 0;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.cf-grid { display: grid; gap: 16px; }
@media (min-width: 620px) { .cf-grid { grid-template-columns: 1fr 1fr; } }

.cf-field { display: grid; gap: 7px; }
.cf-label { font-size: 13px; font-weight: 600; color: var(--text-soft); }

.cf input[type="text"],
.cf input[type="email"],
.cf textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;              /* >=16px：iOS Safari 聚焦时不会自动放大 */
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.cf textarea { min-height: 160px; resize: vertical; }
.cf input:focus, .cf textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

/* 蜜罐：对真人不可见，但不用 display:none（部分机器人会跳过不可见字段） */
.cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-consent {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
  font-size: 13px; line-height: 1.5; color: var(--text-soft);
}
.cf-consent input[type="checkbox"] { width: 26px; height: 26px; margin: 0; accent-color: var(--accent); }
.cf-consent a { color: var(--link); }

.cf .cf-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
@media (min-width: 560px) { .cf .cf-submit { width: auto; justify-self: start; } }
.cf .cf-submit[disabled] { opacity: .6; cursor: progress; }

.cf-status { margin: 0; font-size: 15px; }
.cf-status--wait { color: var(--text-muted); }
.cf-status--ok { color: var(--accent); font-weight: 600; }
.cf-status--err { color: #b3261e; }
@media (prefers-color-scheme: dark) { .cf-status--err { color: #ff8a80; } }
.cf-note { margin: 0; font-size: 13px; color: var(--text-muted); }

/* ------------------------------------------------------------ Drucken */

@media print {
  :root {
    --bg: #fff; --bg-soft: #fff;
    --text: #000; --text-soft: #222; --text-muted: #444;
    --line: #999; --line-soft: #ccc;
  }
  .site-header, .site-footer, .skip, .toc, .cta,
  .notice, .article-hero, .card-grid, .section, .cf { display: none !important; }
  body { font-size: 11pt; line-height: 1.5; }
  .article, .wrap, .wrap-narrow { max-width: none; padding: 0; margin: 0; }
  .article-head { margin-bottom: 16pt; }
  .article-head::before {
    content: "HollowCamp · hollowcamp.com";
    display: block; font-size: 9pt; letter-spacing: .04em;
    color: #444; margin-bottom: 8pt;
  }
  .prose h2 { font-size: 13pt; margin: 15pt 0 5pt; break-after: avoid; page-break-after: avoid; }
  .prose li { break-inside: avoid; page-break-inside: avoid; }
  .prose li.chk::before { border: 1pt solid #000; border-radius: 3px; }
  a { color: #000; }
  @page { margin: 16mm 15mm; }
}
