/* 古滑 · 小红书笔记封面截图骨架（3:4）
   图上：搜索向标题 + 干货要点 + 互动 CTA
   图外 toolbar：标题 / 正文 / 话题（勿截进图） */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: #f5f0eb;
  color: #1a1a1a;
  min-height: 100vh;
  padding: 16px 12px 48px;
  -webkit-font-smoothing: antialiased;
}

.toolbar {
  max-width: 390px;
  margin: 0 auto 14px;
  font-size: 13px;
  color: #3d3d3d;
  line-height: 1.55;
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(60, 40, 20, 0.06);
}
.toolbar strong { color: #c45c4a; }
.toolbar a { color: #1e5aa8; }
.toolbar .hint {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}
.toolbar .block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e8e0d8;
}
.toolbar .label {
  font-size: 11px;
  font-weight: 800;
  color: #c45c4a;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.toolbar .copybox {
  font-size: 12px;
  color: #333;
  line-height: 1.55;
  background: #faf8f6;
  border-radius: 10px;
  padding: 10px 11px;
  white-space: pre-wrap;
  user-select: all;
  border: 1px solid #efe8e0;
}
.toolbar .actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.toolbar .actions a.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  background: #c45c4a;
  color: #fff;
}
.toolbar .actions a.btn.is-ghost {
  background: #f0ebe6;
  color: #5a4a42;
}

.poster-wrap {
  max-width: 390px;
  margin: 0 auto;
}

/* 3:4 笔记封面（小红书经典比例） */
.xhs-canvas {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(40, 30, 20, 0.18);
  color: #1a1a1a;
}
.xhs-safe {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 22px;
}

.xhs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.xhs-tags span {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.88);
  color: #5a4a42;
  border: 1px solid rgba(0,0,0,0.06);
}

.xhs-headline {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1a1208;
}
.xhs-sub {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #4a4038;
  opacity: 0.92;
}

.xhs-card {
  margin-top: 14px;
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.xhs-card h2 {
  font-size: 11px;
  font-weight: 800;
  color: #c45c4a;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.xhs-list {
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
  color: #3d3530;
}
.xhs-list li {
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}
.xhs-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #c45c4a;
  font-size: 9px;
  top: 6px;
}

.xhs-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}
.xhs-price {
  border-radius: 10px;
  padding: 9px 10px;
  background: #faf6f2;
  border: 1px solid #ece4dc;
}
.xhs-price.is-accent {
  background: linear-gradient(135deg, #fff5f0, #fff);
  border-color: #f0d4cc;
}
.xhs-price .name {
  font-size: 11px;
  font-weight: 800;
  color: #3d3530;
}
.xhs-price .num {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 900;
  color: #c0392b;
  line-height: 1;
}
.xhs-price .num small {
  font-size: 0.48em;
  font-weight: 700;
  color: #888;
}

.xhs-row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 8px;
}
.xhs-mini {
  text-align: center;
  padding: 8px 3px;
  border-radius: 8px;
  background: #faf6f2;
  border: 1px solid #ece4dc;
}
.xhs-mini b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #2a4a6a;
}
.xhs-mini span {
  display: block;
  font-size: 9px;
  color: #777;
  margin-top: 2px;
}

.xhs-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}
.xhs-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.xhs-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
  object-fit: contain;
}
.xhs-brand-text {
  font-size: 10px;
  font-weight: 700;
  color: #5a4a42;
  line-height: 1.28;
}
.xhs-brand-text .sub {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #888;
  margin-top: 1px;
}
.xhs-cta {
  text-align: right;
  font-size: 11px;
  font-weight: 800;
  color: #c45c4a;
  line-height: 1.3;
  flex-shrink: 0;
}
.xhs-cta b {
  display: block;
  font-weight: 800;
  line-height: 1.2;
}
.xhs-cta i {
  display: block;
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  color: #888;
  margin-top: 2px;
}

.xhs-legal {
  margin-top: 8px;
  font-size: 8px;
  text-align: center;
  color: rgba(0,0,0,0.4);
  line-height: 1.35;
}

/* 主题底图 */
.xhs-theme-camp {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255, 180, 140, 0.45), transparent 55%),
    linear-gradient(165deg, #ffe8dc 0%, #fff5ee 45%, #ffd4c4 100%);
}
.xhs-theme-venue {
  background:
    radial-gradient(70% 50% at 0% 100%, rgba(120, 200, 160, 0.35), transparent 50%),
    linear-gradient(165deg, #e0f5ea 0%, #f0faf4 50%, #c8ead8 100%);
}
.xhs-theme-elite {
  background:
    radial-gradient(70% 50% at 100% 100%, rgba(140, 180, 230, 0.35), transparent 50%),
    linear-gradient(165deg, #e8eef8 0%, #f4f7fc 50%, #d4e2f4 100%);
}

@media (max-width: 360px) {
  .xhs-headline { font-size: 24px; }
  .xhs-price .num { font-size: 18px; }
}

@media print {
  body { background: #fff; padding: 0; }
  .toolbar { display: none; }
  .poster-wrap { max-width: none; }
  .xhs-canvas {
    width: 1080px;
    height: 1440px;
    aspect-ratio: auto;
    border-radius: 0;
  }
  .xhs-safe { padding: 72px 64px 68px; }
  .xhs-tags span { font-size: 26px; padding: 10px 18px; border-radius: 12px; }
  .xhs-headline { font-size: 80px; }
  .xhs-sub { font-size: 36px; margin-top: 20px; }
  .xhs-card { margin-top: 36px; padding: 32px; border-radius: 28px; }
  .xhs-card h2 { font-size: 28px; margin-bottom: 20px; }
  .xhs-list { font-size: 30px; }
  .xhs-prices { gap: 16px; margin-top: 24px; }
  .xhs-price { padding: 24px; border-radius: 20px; }
  .xhs-price .name { font-size: 28px; }
  .xhs-price .num { font-size: 56px; margin-top: 12px; }
  .xhs-row3 { gap: 12px; margin-top: 20px; }
  .xhs-mini { padding: 20px 8px; border-radius: 16px; }
  .xhs-mini b { font-size: 32px; }
  .xhs-mini span { font-size: 22px; }
  .xhs-logo { width: 72px; height: 72px; }
  .xhs-brand-text { font-size: 26px; }
  .xhs-brand-text .sub { font-size: 22px; }
  .xhs-cta { font-size: 30px; }
  .xhs-cta b { line-height: 1.2; }
  .xhs-cta i { font-size: 24px; }
  .xhs-legal { font-size: 22px; margin-top: 16px; }
}
