:root {
  --fox-ink: #4a2b16;
  --fox-deep: #9b5319;
  --fox-main: #ffb53d;
  --fox-main-2: #ffcf67;
  --fox-soft: #fff4dc;
  --fox-soft-2: #fffaf0;
  --fox-card: rgba(255, 255, 255, 0.78);
  --fox-line: rgba(159, 89, 28, 0.18);
  --shadow: 0 24px 60px rgba(155, 83, 25, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fox-ink);
  font-family: ui-rounded, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 9% 8%, rgba(255, 209, 102, 0.42), transparent 28rem),
    radial-gradient(circle at 94% 16%, rgba(255, 160, 122, 0.28), transparent 24rem),
    radial-gradient(circle at 50% 95%, rgba(255, 181, 61, 0.16), transparent 24rem),
    linear-gradient(180deg, #fff7e7 0%, #fffaf3 45%, #fff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.bg-decor, .bg-heart {
  position: fixed;
  pointer-events: none;
  z-index: -1;
}
.bg-decor {
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.55;
}
.bg-decor-a {
  width: 240px;
  height: 240px;
  left: -80px;
  top: 160px;
  background: rgba(255, 181, 61, 0.24);
}
.bg-decor-b {
  width: 320px;
  height: 320px;
  right: -140px;
  bottom: 120px;
  background: rgba(255, 139, 118, 0.18);
}
.bg-heart {
  color: rgba(255, 139, 118, 0.18);
  font-size: 5rem;
  transform: rotate(-12deg);
}
.heart-a { left: 5vw; top: 38vh; }
.heart-b { right: 6vw; top: 64vh; color: rgba(255, 181, 61, 0.22); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 240, 0.76);
  border-bottom: 1px solid rgba(159, 89, 28, 0.1);
}
.nav-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 2px solid rgba(255, 181, 61, 0.45);
  box-shadow: 0 10px 22px rgba(155, 83, 25, 0.12);
}
.nav-download {
  border: 0;
  cursor: pointer;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff9f1c, #ffbe4d);
  box-shadow: 0 12px 24px rgba(255, 159, 28, 0.24);
}
.section-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: 72px 0 38px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--fox-deep);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
h1, h2, h3 { margin: 0; line-height: 1.06; }
h1 {
  max-width: 680px;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  letter-spacing: -0.06em;
}
h2 {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  letter-spacing: -0.04em;
}
h3 { font-size: 1.45rem; }
.hero-text, .section-desc {
  color: rgba(74, 43, 22, 0.72);
  line-height: 1.82;
}
.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}
.section-desc { margin: 10px 0 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 950;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  color: white;
  background: linear-gradient(135deg, #ff9f1c, #ffbd45);
  box-shadow: 0 18px 32px rgba(255, 159, 28, 0.26);
}
.btn.secondary {
  color: #8b4814;
  background: white;
  border: 1px solid rgba(159, 89, 28, 0.12);
  box-shadow: 0 16px 34px rgba(155, 83, 25, 0.12);
}
.btn.ghost {
  color: #8b4814;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(159, 89, 28, 0.12);
}
.btn.small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.92rem;
  background: var(--fox-soft);
  color: #8b4814;
}
.mini-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.mini-tips span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #8b4814;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(159, 89, 28, 0.12);
  font-size: 0.92rem;
  font-weight: 900;
}
.hero-card {
  position: relative;
  justify-self: center;
  width: min(420px, 86vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255, 244, 220, 0.72));
  border: 1px solid rgba(159, 89, 28, 0.14);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 32px;
  border: 2px dashed rgba(255, 181, 61, 0.36);
}
.hero-card img {
  width: 78%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(155, 83, 25, 0.13));
  position: relative;
  z-index: 2;
}
.fox-ear {
  position: absolute;
  top: -28px;
  width: 96px;
  height: 110px;
  background: linear-gradient(135deg, #ffcc72, #ff9f1c);
  border: 6px solid #fff6e7;
  border-radius: 20px 80px 24px 80px;
  z-index: 0;
}
.fox-ear.left { left: 58px; transform: rotate(-28deg); }
.fox-ear.right { right: 58px; transform: rotate(68deg); }
.bubble {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 10px 24px rgba(155, 83, 25, 0.12);
  color: #ff8b76;
  font-weight: 950;
}
.b1 { left: -12px; top: 82px; }
.b2 { right: 22px; top: 48px; color: #ffbd45; }
.b3 { right: -10px; bottom: 86px; }
.notice {
  margin-top: 8px;
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(159, 89, 28, 0.12);
  color: rgba(74, 43, 22, 0.72);
  line-height: 1.65;
}
.notice strong { color: #7c3f10; }
.sticker-section { padding: 66px 0 36px; }
.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(159, 89, 28, 0.12);
  box-shadow: 0 12px 26px rgba(155, 83, 25, 0.08);
}
.search-box span { color: #8b4814; font-weight: 950; margin-right: 10px; }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fox-ink);
}
.batch-status {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(159, 89, 28, 0.12);
  color: rgba(74, 43, 22, 0.76);
  font-weight: 900;
}
.batch-status[hidden] { display: none; }
.batch-status progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 181, 61, 0.18);
}
.batch-status progress::-webkit-progress-bar {
  background: rgba(255, 181, 61, 0.18);
  border-radius: 999px;
}
.batch-status progress::-webkit-progress-value {
  background: linear-gradient(135deg, #ff9f1c, #ffbd45);
  border-radius: 999px;
}
.batch-status progress::-moz-progress-bar {
  background: linear-gradient(135deg, #ff9f1c, #ffbd45);
  border-radius: 999px;
}
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.sticker-card {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--fox-card);
  border: 1px solid rgba(159, 89, 28, 0.12);
  box-shadow: 0 16px 34px rgba(155, 83, 25, 0.1);
  overflow: hidden;
}
.sticker-card::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -46px;
  top: -48px;
  border-radius: 50%;
  background: rgba(255, 181, 61, 0.16);
}
.sticker-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 20px;
  cursor: zoom-in;
  background:
    linear-gradient(45deg, rgba(255, 181, 61, 0.10) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 181, 61, 0.10) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 181, 61, 0.10) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 181, 61, 0.10) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sticker-preview img {
  width: 94%;
  height: 94%;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.sticker-preview:hover img { transform: scale(1.04) rotate(-1deg); }
.sticker-meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.sticker-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}
.download-one {
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--fox-soft);
  color: #8b4814;
  font-weight: 950;
  font-size: 0.9rem;
}
.download-one:hover { background: #ffe8b2; }
.empty-state {
  padding: 22px;
  border-radius: 22px;
  text-align: center;
  color: rgba(74, 43, 22, 0.72);
  background: rgba(255, 255, 255, 0.72);
}
.owner-card {
  margin-top: 32px;
  margin-bottom: 56px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255, 244, 220, 0.82));
  border: 1px solid rgba(159, 89, 28, 0.12);
  box-shadow: var(--shadow);
}
.owner-card p:not(.eyebrow) { color: rgba(74, 43, 22, 0.72); line-height: 1.8; }
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(74, 43, 22, 0.55);
  font-size: 0.92rem;
}
.preview-dialog, .help-dialog {
  width: min(520px, calc(100% - 28px));
  border: 0;
  border-radius: 30px;
  padding: 22px;
  background: rgba(255, 250, 240, 0.96);
  color: var(--fox-ink);
  box-shadow: 0 28px 80px rgba(74, 43, 22, 0.28);
}
.preview-dialog::backdrop, .help-dialog::backdrop {
  background: rgba(74, 43, 22, 0.42);
  backdrop-filter: blur(8px);
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: white;
  color: #8b4814;
  font-size: 1.45rem;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(155, 83, 25, 0.12);
}
.preview-dialog img {
  display: block;
  width: 100%;
  max-height: 56vh;
  object-fit: contain;
  margin-top: 18px;
  border-radius: 22px;
  background: white;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.dialog-actions .btn { flex: 1; }
.dialog-tip, .help-dialog p { color: rgba(74, 43, 22, 0.72); line-height: 1.7; }
.muted { font-size: 0.92rem; }
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-card { order: -1; width: min(330px, 82vw); }
  .sticker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav-wrap, .section-shell, .site-footer { width: min(100% - 24px, 1120px); }
  .brand span { font-size: 0.96rem; }
  .brand img { width: 38px; height: 38px; }
  .nav-download { padding: 10px 14px; font-size: 0.9rem; }
  .hero { padding-top: 30px; }
  h1 { font-size: clamp(2.3rem, 13vw, 3.5rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .mini-tips { gap: 8px; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .section-actions { width: 100%; flex-direction: column; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .sticker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sticker-card { padding: 10px; border-radius: 20px; }
  .sticker-preview { border-radius: 16px; }
  .sticker-meta { align-items: stretch; flex-direction: column; gap: 8px; }
  .download-one { text-align: center; }
  .site-footer { flex-direction: column; }
  .dialog-actions { flex-direction: column; }
}
