:root {

  --bg-sunrise-1: #fff2e6;

  --bg-sunrise-2: #ffd7c2;

  --bg-sunrise-3: #ffe8d5;

  --ink: #3b1b12;

  --ink-soft: rgba(59, 27, 18, 0.7);

  --card: #fffaf4;

  --card-strong: #fff3e6;

  --border: rgba(59, 27, 18, 0.12);

  --shadow-soft: 0 18px 40px rgba(59, 27, 18, 0.12);

  --shadow-strong: 0 24px 60px rgba(59, 27, 18, 0.16);

  --accent-pink: #ff6b9d;

  --accent-orange: #ffb366;

  --accent-teal: #4ecdc4;

  --accent-ink: #3b1b12;

  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;

  --font-body: "LXGW WenKai", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

}



* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}



html,

body {

  min-height: 100%;

}



body {

  font-family: var(--font-body);

  background: linear-gradient(135deg, var(--bg-sunrise-1) 0%, var(--bg-sunrise-2) 45%, var(--bg-sunrise-3) 100%);

  color: var(--ink);

  line-height: 1.6;

  position: relative;

  overflow-x: hidden;

}



body::before,

body::after {

  content: "";

  position: fixed;

  width: 420px;

  height: 420px;

  border-radius: 50%;

  filter: blur(0);

  opacity: 0.45;

  z-index: -1;

}



body::before {

  background: radial-gradient(circle, rgba(255, 179, 102, 0.45), transparent 65%);

  top: -120px;

  left: -80px;

}



body::after {

  background: radial-gradient(circle, rgba(78, 205, 196, 0.3), transparent 70%);

  bottom: -120px;

  right: -40px;

}



/* 主题：默认（保留现有配色） */

body.theme-default {

  background: linear-gradient(135deg, var(--bg-sunrise-1) 0%, var(--bg-sunrise-2) 45%, var(--bg-sunrise-3) 100%);

}



body.theme-default::before {

  background: radial-gradient(circle, rgba(255, 179, 102, 0.45), transparent 65%);

}



body.theme-default::after {

  background: radial-gradient(circle, rgba(78, 205, 196, 0.3), transparent 70%);

}



/* 主题：春节 */

body.theme-spring {
  background:
    radial-gradient(160% 140% at 50% -10%, rgba(255, 214, 160, 0.28), transparent 60%),
    radial-gradient(120% 120% at 50% 110%, rgba(255, 180, 140, 0.2), transparent 60%),
    linear-gradient(135deg, #8b0f12 0%, #b61b1c 35%, #d42824 60%, #8f0d12 100%);
  color: #ffe7b8;
  --ink: #3f120b;
  --ink-soft: rgba(63, 18, 11, 0.85);
  --accent-pink: #f7c66a;
  --accent-orange: #f2ac47;
  --accent-teal: #f2d08f;
}


body.theme-spring::before,

body.theme-spring::after {

  opacity: 0.5;

}



body.theme-spring::before {

  background: radial-gradient(circle, rgba(255, 214, 170, 0.4), transparent 65%);

  top: -140px;

  left: -100px;

}



body.theme-spring::after {

  background: radial-gradient(circle, rgba(255, 228, 190, 0.28), transparent 70%);

  bottom: -120px;

  right: -60px;

}



body.theme-spring {

  --card: rgba(255, 245, 226, 0.95);

  --card-strong: rgba(255, 235, 210, 0.96);

  --border: rgba(255, 214, 160, 0.4);

  --shadow-soft: 0 18px 40px rgba(80, 8, 10, 0.4);

  --shadow-strong: 0 26px 60px rgba(80, 8, 10, 0.5);

}



body.theme-spring .create-card,

body.theme-spring .card-block,

body.theme-spring .preview-card,

body.theme-spring .processing-panel {

  background: rgba(255, 248, 238, 0.96);

  border-color: rgba(183, 54, 45, 0.16);

  box-shadow: 0 18px 42px rgba(183, 54, 45, 0.18);

}



body.theme-spring .preview-textarea,

body.theme-spring .candidate,

body.theme-spring .music-inline,

body.theme-spring .voice-picker {

  border-color: rgba(183, 54, 45, 0.25);

  background: rgba(255, 250, 243, 0.95);

}



body.theme-spring .btn-primary {

  background: linear-gradient(135deg, #c21616 0%, #e03024 52%, #f5c56a 100%);

  color: #fff4dc;

  border-color: rgba(255, 210, 150, 0.7);

  box-shadow: 0 16px 32px rgba(90, 10, 12, 0.32);

}



body.theme-spring .btn-ghost,
body.theme-spring .pill-btn {
  background: rgba(255, 242, 220, 0.96);
  border-color: rgba(191, 44, 35, 0.3);
  color: #6b1b12;
  box-shadow: 0 10px 18px rgba(90, 10, 12, 0.18);
}

body.theme-spring .gift-btn {
  background: linear-gradient(90deg, #fff6e3 0%, #ffe7c6 100%);
  border-color: #fff2dc;
  color: #6b1b12;
  box-shadow: 0 12px 22px rgba(120, 20, 16, 0.12);
}

body.theme-spring .gift-btn:hover {
  border-color: #fff2dc;
  box-shadow: 0 14px 26px rgba(120, 20, 16, 0.18);
}

body.theme-spring .pill-btn:hover,
body.theme-spring .btn-ghost:hover {
  border-color: rgba(255, 204, 140, 0.7);
  box-shadow: 0 12px 22px rgba(90, 10, 12, 0.2);
}


body.theme-spring .assist-note,
body.theme-spring .section-subtitle,
body.theme-spring .processing-status,
body.theme-spring .processing-quote {
  color: rgba(63, 18, 11, 0.85);
}

body.theme-spring .music-inline,
body.theme-spring .music-title,
body.theme-spring .voice-label {
  color: var(--ink);
}

body.theme-spring #side-music .side-header span {
  color: var(--ink);
}

body.theme-spring #side-music .music-search input {
  border-color: #fff;
}

body.theme-spring .processing-fill {
  background: linear-gradient(90deg, #d31c1c, #f4c465);

}



body.theme-spring .hero-title,

body.theme-spring .hero-subtitle,

body.theme-spring .hero-badge {

  color: #fff2cf;

}



body.theme-spring .hero-badge {

  background: rgba(255, 220, 180, 0.18);

  border-color: rgba(255, 210, 160, 0.45);

}



body.theme-spring .theme-toggle {

  background: rgba(255, 232, 200, 0.95);

  border-color: rgba(191, 44, 35, 0.35);

  color: #6b1b12;

  box-shadow: 0 12px 24px rgba(90, 10, 12, 0.22);

}



body.theme-spring .theme-menu {

  background: rgba(255, 236, 206, 0.96);

  border-color: rgba(191, 44, 35, 0.35);

  box-shadow: 0 12px 28px rgba(90, 10, 12, 0.22);

}



body.theme-spring .theme-menu button {

  background: rgba(255, 244, 220, 0.96);

  border-color: rgba(191, 44, 35, 0.3);

  color: #6b1b12;

}



body.theme-spring .theme-menu button:hover {
  border-color: rgba(255, 204, 140, 0.7);
  box-shadow: 0 6px 12px rgba(90, 10, 12, 0.18);
}

/* 基础文本与控件样式 */
h1,
h2,
h3,
.hero-title {
  font-family: var(--font-display);
  color: var(--ink);
}

p,
button,
input,
select,
textarea {
  color: var(--ink);
  font-family: var(--font-body);
}

button,
input,
select,
textarea {
  border: none;
  background: none;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

/* Core layout */
.page {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 32px 0 120px;
  position: relative;
  z-index: 1;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.hero {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  max-width: 20ch;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 40ch;
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  cursor: pointer;
  z-index: 20;
}

.theme-menu {
  position: fixed;
  top: 62px;
  right: 16px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  z-index: 20;
}

.theme-menu button {
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.theme-menu button:hover {
  border-color: rgba(255, 107, 157, 0.4);
}

/* 春节纹样背景层 */
.bg-lantern-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
  opacity: 0.6;
  display: none;
}

body.theme-spring .bg-lantern-layer::before,
body.theme-spring .bg-lantern-layer::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 72px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 72'><path d='M18,36 Q32,12 56,22 Q76,2 98,20 Q120,12 138,30 Q150,48 130,50 Q108,66 84,50 Q62,64 44,50 Q26,58 18,36' fill='%23f7d58e' stroke='%23fae6bc' stroke-width='2'/></svg>") no-repeat center/contain;
  opacity: 0.6;
  animation: springCloudDrift 12s linear infinite;
}

body.theme-spring .bg-lantern-layer::before {
  top: 22%;
  left: 6%;
  animation-duration: 14s;
}

body.theme-spring .bg-lantern-layer::after {
  top: 58%;
  right: 8%;
  animation-duration: 16s;
  animation-direction: reverse;
}

@keyframes springCloudDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(120px); }
}

body.theme-spring .bg-lantern-layer {
  display: block;
  opacity: 0.9;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%23f7d58e' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'><rect x='40' y='60' width='70' height='120' rx='18'/><line x1='75' y1='60' x2='75' y2='28'/><path d='M75 28l12-14'/></g><g fill='none' stroke='%23c89234' stroke-width='4' opacity='0.8'><path d='M120 30l16-10M120 30l-16-10M120 30l0 18'/></g></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%23f7d58e' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'><rect x='40' y='60' width='70' height='120' rx='18'/><line x1='75' y1='60' x2='75' y2='28'/><path d='M75 28l12-14'/></g><g fill='none' stroke='%23c89234' stroke-width='4' opacity='0.8'><path d='M120 30l16-10M120 30l-16-10M120 30l0 18'/></g></svg>"),
    radial-gradient(160% 140% at 50% 0%, rgba(255, 224, 180, 0.25), transparent 65%),
    radial-gradient(160% 140% at 50% 0%, rgba(255, 224, 180, 0.25), transparent 65%),
    radial-gradient(120% 120% at 50% 100%, rgba(255, 190, 150, 0.18), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'><rect x='18' y='18' width='1164' height='764' rx='42' ry='42' fill='none' stroke='%23f7d58e' stroke-width='24'/><rect x='60' y='60' width='1080' height='680' rx='36' ry='36' fill='none' stroke='%23c89234' stroke-width='8'/><rect x='82' y='82' width='1036' height='636' rx='30' ry='30' fill='none' stroke='%23fae6bc' stroke-width='4' opacity='0.8'/><text x='50%25' y='52%25' text-anchor='middle' dominant-baseline='middle' font-size='360' font-family='KaiTi,STKaiti,Songti%20SC,serif' fill='%23f7d58e' stroke='%23c89234' stroke-width='8' paint-order='stroke fill'>福</text></svg>");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 130px 130px, 130px 130px, auto, auto, auto, cover;
  background-position: right 8% top 14%, left 8% bottom 18%, center, center, center, center;
  mix-blend-mode: normal;
}








