/* 古滑 · 抖音图文单页截图骨架（9:16）
   图上：钩子 + 最少信息 + 私信关键词
   图外 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: #1a1a1e;
  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: #e8eaed;
  line-height: 1.55;
  background: #2a2a30;
  border: 1px solid #3d3d45;
  border-radius: 12px;
  padding: 12px 14px;
}
.toolbar strong { color: #f5b43c; }
.toolbar a { color: #7eb8ff; }
.toolbar .hint {
  font-size: 12px;
  color: #9aa0a8;
  margin-bottom: 10px;
}
.toolbar .block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #444;
}
.toolbar .label {
  font-size: 11px;
  font-weight: 800;
  color: #f5b43c;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.toolbar .copybox {
  font-size: 12px;
  color: #d0d4da;
  line-height: 1.5;
  background: #1e1e24;
  border-radius: 8px;
  padding: 10px 11px;
  white-space: pre-wrap;
  user-select: all;
}
.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;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  background: #f5b43c;
  color: #1a1208;
}
.toolbar .actions a.btn.is-ghost {
  background: #3d3d45;
  color: #e8eaed;
}

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

/* 9:16 安全区：上下留白防抖音 UI 遮挡 */
.dy-canvas {
  width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 520px;
  max-height: 90vh;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  color: #fff;
}
.dy-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.25;
  pointer-events: none;
}
.dy-safe {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 32px;
  padding-top: max(28px, env(safe-area-inset-top, 0px));
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
}

.dy-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: auto;
}
.dy-brand-mark {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dy-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255,255,255,0.94);
  padding: 3px;
  object-fit: contain;
}
.dy-brand-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.9;
}
.dy-loc {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.15);
  white-space: nowrap;
}

.dy-hero {
  margin-top: 8px;
  margin-bottom: 16px;
}
.dy-headline {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.dy-subline {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0.92;
}

.dy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.dy-pills span {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
}

.dy-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.dy-price-card {
  border-radius: 12px;
  padding: 12px 11px;
  background: rgba(255,255,255,0.95);
  color: #1a1a1a;
}
.dy-price-card.is-dark {
  background: rgba(10, 18, 32, 0.88);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.dy-price-card .name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.dy-price-card .meta {
  font-size: 10px;
  opacity: 0.72;
  margin-top: 3px;
  line-height: 1.3;
}
.dy-price-card .num {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
  color: #c0392b;
  line-height: 1;
}
.dy-price-card.is-dark .num { color: #f5b43c; }
.dy-price-card .num small {
  font-size: 0.45em;
  font-weight: 700;
  opacity: 0.75;
}

.dy-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.dy-mini {
  text-align: center;
  border-radius: 10px;
  padding: 10px 4px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
}
.dy-mini b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}
.dy-mini span {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  opacity: 0.82;
  line-height: 1.25;
}

.dy-dm {
  margin-top: auto;
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--dy-cta, #f5b43c);
  color: #1a1208;
  text-align: center;
}
.dy-dm b {
  display: block;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.dy-dm i {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.85;
}

.dy-legal {
  margin-top: 10px;
  font-size: 9px;
  text-align: center;
  opacity: 0.55;
  line-height: 1.35;
}

/* 主题色 */
.dy-theme-camp {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(255, 200, 100, 0.35), transparent 55%),
    linear-gradient(168deg, #2a1406 0%, #8a4a0a 45%, #e8a020 100%);
  --dy-cta: #ffe08a;
}
.dy-theme-venue {
  background:
    radial-gradient(90% 70% at 0% 100%, rgba(46, 204, 113, 0.25), transparent 50%),
    linear-gradient(168deg, #0a2818 0%, #145a32 50%, #2ecc71 100%);
  --dy-cta: #b8f5d0;
}
.dy-theme-elite {
  background:
    radial-gradient(80% 50% at 0% 0%, rgba(100, 160, 255, 0.22), transparent 55%),
    linear-gradient(168deg, #050a12 0%, #0f2848 48%, #1e5aa8 100%);
  --dy-cta: #a8c8ff;
}

@media (max-width: 360px) {
  .dy-headline { font-size: 30px; }
  .dy-price-card .num { font-size: 22px; }
}

@media print {
  body { background: #fff; padding: 0; }
  .toolbar { display: none; }
  .poster-wrap { max-width: none; }
  .dy-canvas {
    width: 1080px;
    height: 1920px;
    aspect-ratio: auto;
    max-height: none;
    border-radius: 0;
  }
  .dy-safe { padding: 80px 72px 96px; }
  .dy-logo { width: 88px; height: 88px; border-radius: 18px; }
  .dy-brand-text { font-size: 32px; }
  .dy-loc { font-size: 28px; padding: 12px 24px; }
  .dy-headline { font-size: 96px; }
  .dy-subline { font-size: 42px; margin-top: 24px; }
  .dy-pills span { font-size: 28px; padding: 16px 22px; }
  .dy-prices { gap: 20px; margin-bottom: 28px; }
  .dy-price-card { padding: 32px 28px; border-radius: 24px; }
  .dy-price-card .name { font-size: 36px; }
  .dy-price-card .meta { font-size: 26px; }
  .dy-price-card .num { font-size: 72px; margin-top: 20px; }
  .dy-row-3 { gap: 16px; }
  .dy-mini { padding: 24px 8px; border-radius: 20px; }
  .dy-mini b { font-size: 40px; }
  .dy-mini span { font-size: 24px; }
  .dy-dm { padding: 36px; border-radius: 28px; }
  .dy-dm b { font-size: 48px; }
  .dy-dm i { font-size: 28px; }
  .dy-legal { font-size: 24px; margin-top: 24px; }
}
