/* BunnyCard 小红书图文卡片 · 3:4 · 1080x1440 */
:root {
  --bg: #0a0e16;
  --panel: #121826;
  --paper: #f4f7fb;
  --ink: #f5f8ff;
  --text: #142033;
  --muted: #6d7b93;
  --blue: #086bf7;
  --sky: #38bdf8;
  --mint: #4ade80;
  --line: rgba(8, 107, 247, 0.28);
  --gold: #93c5fd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #0d1320;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
}

.page-head {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 28px 24px 0;
  color: rgba(245, 248, 255, 0.88);
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.page-head p {
  margin: 0;
  color: rgba(147, 197, 253, 0.9);
  line-height: 1.6;
}

.page-head a { color: #93c5fd; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.actions button,
.actions a.button {
  appearance: none;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: rgba(8, 107, 247, 0.16);
  color: #eaf2ff;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.actions button.secondary,
.actions a.button.secondary {
  background: rgba(255,255,255,0.04);
}

.xhs-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.xhs-card {
  position: relative;
  width: 1080px;
  height: 1440px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  isolation: isolate;
}

.bg-mesh {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 14% 12%, rgba(8, 107, 247, 0.34), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(56, 189, 248, 0.18), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(8, 107, 247, 0.16), transparent 38%),
    linear-gradient(180deg, #0b1220, #081018 70%, #070b12);
}

.shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.08), rgba(8, 12, 20, 0.62) 58%, rgba(5, 8, 14, 0.9));
}

.topbar {
  position: absolute;
  top: 64px;
  left: 64px;
  right: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.topbar span,
.eyebrow,
.card-head p {
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cover-copy {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 210px;
}

h1, h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h1 { margin-top: 24px; font-size: 92px; }
h2 { font-size: 76px; }

.subtitle,
.body-copy {
  color: rgba(234, 242, 255, 0.82);
  font-size: 34px;
  font-weight: 750;
  line-height: 1.38;
}

.footer-row {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.footer-row span {
  min-height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(147, 197, 253, 0.34);
  border-radius: 999px;
  background: rgba(8, 16, 30, 0.55);
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
}

.light-card {
  background:
    linear-gradient(180deg, rgba(8, 107, 247, 0.10), transparent 30%),
    var(--paper);
  color: var(--text);
}

.dark-card,
.stat-card,
.join-card {
  background:
    radial-gradient(circle at 18% 12%, rgba(8, 107, 247, 0.22), transparent 35%),
    var(--bg);
}

.card-head {
  position: relative;
  z-index: 1;
  padding: 78px 64px 0;
}

.card-head.compact { padding-top: 70px; }
.card-head p { margin: 0 0 24px; }

.light-card .card-head p,
.light-card .eyebrow {
  color: var(--blue);
}

.light-card h2 { color: var(--text); }
.light-card .body-copy { color: rgba(20, 32, 51, 0.72); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding: 68px 64px 0;
}

.feature-grid article {
  min-height: 280px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(8, 107, 247, 0.12);
  box-shadow: 0 12px 30px rgba(20, 40, 80, 0.06);
}

.feature-grid span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 107, 247, 0.1);
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.feature-grid strong {
  display: block;
  margin: 22px 0 14px;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.feature-grid p {
  margin: 0;
  color: rgba(20, 32, 51, 0.68);
  font-size: 28px;
  line-height: 1.35;
  font-weight: 650;
}

.note-bar {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 72px;
  min-height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(8, 107, 247, 0.1);
  border: 1px solid rgba(8, 107, 247, 0.18);
  color: var(--blue);
  font-size: 30px;
  font-weight: 900;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 48px 64px 0;
}

.stat-grid article {
  min-height: 210px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(18, 24, 38, 0.88);
  border: 1px solid rgba(147, 197, 253, 0.16);
}

.stat-grid strong {
  display: block;
  font-size: 64px;
  letter-spacing: -0.04em;
  color: #7dd3fc;
}

.stat-grid span {
  display: block;
  margin-top: 10px;
  color: rgba(234, 242, 255, 0.72);
  font-size: 30px;
  font-weight: 750;
}

.hero-logo {
  position: absolute;
  top: 250px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(8, 107, 247, 0.35));
}

.fake-ui {
  position: absolute;
  left: 64px;
  right: 64px;
  top: 620px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.18);
  background: rgba(8, 12, 20, 0.62);
  backdrop-filter: blur(8px);
}

.fake-ui .row,
.fake-ui .head {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.2fr 0.55fr;
  gap: 10px;
  padding: 22px 24px;
  font-size: 24px;
  font-weight: 750;
}

.fake-ui .head {
  color: rgba(147, 197, 253, 0.8);
  border-bottom: 1px solid rgba(147, 197, 253, 0.12);
  background: rgba(255,255,255,0.02);
}

.fake-ui .row + .row {
  border-top: 1px solid rgba(147, 197, 253, 0.1);
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(8, 107, 247, 0.16);
  border: 1px solid rgba(8, 107, 247, 0.28);
  color: #93c5fd;
  font-size: 22px;
  white-space: nowrap;
}

.ok { color: #4ade80; }
.run { color: #60a5fa; }

.steps {
  display: grid;
  gap: 22px;
  padding: 56px 64px 0;
}

.step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 170px;
  padding: 24px 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(8, 107, 247, 0.1);
}

.step .num {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(8, 107, 247, 0.12);
  color: var(--blue);
  font-size: 34px;
  font-weight: 950;
}

.step strong {
  display: block;
  font-size: 36px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: rgba(20, 32, 51, 0.68);
  font-size: 28px;
  line-height: 1.35;
  font-weight: 650;
}

.rule-list {
  display: grid;
  gap: 18px;
  padding: 48px 64px 0;
}

.rule-list article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 130px;
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(18, 24, 38, 0.88);
  border: 1px solid rgba(147, 197, 253, 0.14);
}

.rule-list span {
  color: #7dd3fc;
  font-size: 30px;
  font-weight: 900;
}

.rule-list p {
  margin: 0;
  color: rgba(234, 242, 255, 0.78);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.code-panel {
  margin: 48px 64px 0;
  padding: 36px;
  border-radius: 28px;
  background: #070b12;
  border: 1px solid rgba(147, 197, 253, 0.16);
  color: #dbeafe;
  font-family: "Fira Code", "JetBrains Mono", ui-monospace, monospace;
  font-size: 28px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 28px 64px 0;
}

.pill-row span {
  border-radius: 999px;
  padding: 14px 20px;
  border: 1px solid rgba(147, 197, 253, 0.2);
  background: rgba(255,255,255,0.03);
  color: rgba(234, 242, 255, 0.82);
  font-size: 26px;
  font-weight: 800;
}

.light-card .pill-row span {
  background: rgba(8, 107, 247, 0.06);
  border-color: rgba(8, 107, 247, 0.12);
  color: rgba(20, 32, 51, 0.78);
}

.join-copy {
  position: absolute;
  left: 64px;
  right: 64px;
  top: 430px;
}

.join-copy .big {
  font-size: 88px;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 0 28px;
}

.join-copy p {
  margin: 0 0 18px;
  color: rgba(234, 242, 255, 0.8);
  font-size: 34px;
  font-weight: 750;
  line-height: 1.4;
}

.cta-box {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 90px;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(8, 107, 247, 0.22), rgba(8, 107, 247, 0.1));
  border: 1px solid rgba(147, 197, 253, 0.28);
}

.cta-box strong {
  display: block;
  font-size: 40px;
  margin-bottom: 10px;
}

.cta-box span {
  color: rgba(234, 242, 255, 0.78);
  font-size: 30px;
  font-weight: 700;
}

@media (max-width: 1160px) {
  .xhs-preview { padding: 16px; }
  .xhs-card {
    width: min(100%, 1080px);
    height: auto;
    aspect-ratio: 3 / 4;
    transform-origin: top center;
  }
}
