:root {
  --bg: #faf9f7;
  --card: #ffffff;
  --ink: #1a1a1e;
  --ink-soft: #5c5c66;
  --ink-faint: #8e8e99;
  --line: #e8e6e2;
  --accent: #c8432b;
  --accent-soft: #fbece8;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.hero { display: block; }

.cover {
  border-radius: var(--radius);
  overflow: hidden;
  background: #efece8;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}

.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-body { padding: 18px 2px 4px; }

.eyebrow { margin: 0 0 6px; font-size: 13px; color: var(--ink-faint); }

.link {
  border: 0; background: none; padding: 0; margin: 0;
  color: var(--ink-soft); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link:hover { color: var(--accent); }

h1 { font-size: 26px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.2px; }

.summary { margin: 0; color: var(--ink-soft); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #f2d6cf;
}

.badge.muted { background: #f3f2ef; color: var(--ink-soft); border-color: var(--line); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 6px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.btn {
  appearance: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  padding: 9px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #b03a24; }
.btn.primary:disabled { background: #ddd9d4; color: #9a9a9a; cursor: default; }
.btn.small { padding: 7px 14px; font-size: 14px; }

.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink-soft); }
.btn.ghost:hover { border-color: #d5d2cc; color: var(--ink); }
.btn.ghost.on { background: var(--accent-soft); border-color: #f2d6cf; color: var(--accent); }

.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.btn.ghost.on .dot { opacity: 1; }

.block { margin-top: 26px; }

.h2 { font-size: 15px; margin: 0 0 12px; color: var(--ink); font-weight: 600; }
.count { color: var(--ink-faint); font-weight: 400; }

.disclosure {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.disclosure .chev { color: var(--ink-faint); }
.usage { padding: 14px 16px 0; color: var(--ink-soft); }
.usage p { margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #efece8;
  display: block;
}
.gallery .empty { color: var(--ink-faint); font-size: 14px; }

.comments { list-style: none; margin: 0 0 14px; padding: 0; }
.comments li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.comments li:last-child { border-bottom: 0; }
.comments .who { font-size: 13px; color: var(--ink-faint); margin-bottom: 2px; }
.comments .what { white-space: pre-wrap; word-break: break-word; }
.comments .empty { color: var(--ink-faint); font-size: 14px; }

.compose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.compose textarea {
  width: 100%;
  border: 0;
  resize: vertical;
  font: inherit;
  color: var(--ink);
  background: transparent;
  outline: none;
  min-height: 54px;
}
.compose-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hint { font-size: 13px; color: var(--ink-faint); }

.foot { margin-top: 34px; text-align: center; font-size: 13px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: #24242a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  max-width: 88%;
  text-align: center;
  z-index: 20;
}

@media (max-width: 520px) {
  .wrap { padding: 20px 16px 64px; }
  h1 { font-size: 23px; }
  .actions { padding: 12px; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .btn.primary { flex: 1 1 100%; }
  .gallery { grid-template-columns: 1fr; }
}
