:root {
  --bg: #faf6f0;
  --panel: #ffffff;
  --ink: #2a2622;
  --ink-soft: #4a443e;
  --muted: #7c7369;
  --line: #eae1d6;
  --accent: #bc6238;
  --accent-deep: #8e4526;
  --accent-soft: #f5e8de;
  --slate: #5c6b7a;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* ---------- 顶栏 ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 17px;
  flex: none;
  overflow: hidden;
}

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

.author-text { display: flex; flex-direction: column; line-height: 1.35; }
.author-line { font-size: 15px; color: var(--ink-soft); }
.author-line strong { color: var(--ink); font-weight: 600; }
.author-meta { font-size: 13px; color: var(--muted); }

.topnav { display: flex; gap: 4px; }

.linkbtn {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.linkbtn:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- 首屏 ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 48px 0 8px;
}

.hero-art { margin: 0; }
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -32px rgba(42, 38, 34, 0.5);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 14px;
  font-family: "Iowan Old Style", Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.summary {
  margin: 0 0 20px;
  font-size: 17px;
  color: var(--ink-soft);
}

.statrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.statrow:empty { display: none; }

.pill {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  line-height: 1.4;
}

.pill.quiet { background: #f2efe9; color: var(--muted); }

.cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn {
  font: inherit;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
}

.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn.primary.small { padding: 10px 18px; font-size: 15px; }

.btn.ghost {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft);
  padding: 13px 18px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.ghost:hover { border-color: #dccfc0; }

.btn[disabled] { opacity: 0.55; cursor: default; }
.btn:active { transform: translateY(1px); }

.heart { color: #d9c9bb; font-size: 15px; line-height: 1; }
.btn.ghost[aria-pressed="true"] .heart { color: var(--accent); }
.btn.ghost[aria-pressed="true"] { border-color: #e6c9b6; }

.hint { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.hint.warn { color: var(--accent-deep); }

/* ---------- 内容块 ---------- */

.block {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.count { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: 15px; }

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.features li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}

.features li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.features strong { color: var(--ink); margin-right: 6px; }

.art-full { margin: 26px 0 0; }
.art-full img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.usage {
  margin: 0 0 18px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
}

.steps { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.steps li { margin-bottom: 6px; }

/* ---------- 评论 ---------- */

.comment-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 22px;
}

.comment-form textarea {
  width: 100%;
  border: 0;
  outline: none;
  resize: vertical;
  font: inherit;
  color: var(--ink);
  background: transparent;
  min-height: 66px;
}

.comment-form textarea::placeholder { color: #b3a99d; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.form-msg { font-size: 14px; color: var(--muted); }
.form-msg.warn { color: var(--accent-deep); }

.comments { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }

.comment { display: flex; gap: 12px; }

.comment .avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
  background: #f2efe9;
  color: var(--slate);
}

.comment-body { min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.comment-name { font-weight: 600; font-size: 15px; }
.comment-time { font-size: 13px; color: var(--muted); }
.comment-text { margin: 2px 0 0; color: var(--ink-soft); white-space: pre-wrap; word-break: break-word; }

.empty { color: var(--muted); font-size: 15px; }

/* ---------- 页脚 ---------- */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot-links { display: flex; gap: 4px; }

/* ---------- 窄屏 ---------- */

@media (max-width: 860px) {
  .page { padding: 0 18px 44px; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .hero-art { order: -1; }
  h1 { font-size: 30px; }
  .cta { width: 100%; }
  .cta .btn.primary { flex: 1 1 auto; }
  .block { margin-top: 34px; padding-top: 26px; }
}
