/* ===== 设计系统变量 ===== */
:root {
  /* 主色调 */
  --warm-orange: #FF8C42;
  --warm-orange-light: #FFA666;
  --warm-orange-dark: #E67635;
  --cream: #FFF5E6;
  --cream-dark: #F5E6D3;
  --deep-brown: #5D4037;
  --deep-brown-light: #795548;

  /* 背景色 */
  --night-blue: #1A237E;
  --night-blue-dark: #0D1440;
  --night-blue-light: #283593;

  /* 饺子锅色 */
  --pot-brown: #8D6E63;
  --pot-brown-dark: #6D4C41;
  --pot-brown-light: #A1887F;
  --water-blue: rgba(173, 216, 230, 0.3);
  --water-highlight: rgba(255, 255, 255, 0.15);

  /* 饺子色 */
  --dumpling-white: #FFF8F0;
  --dumpling-shadow: #E8DDD5;
  --dumpling-highlight: #FFFFFF;

  /* 动画时长 */
  --steam-rise-time: 10s;
  --float-time: 8s;
  --drop-time: 0.8s;

  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50%;
}

/* ===== 重置与基础样式 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif SC', 'ZCOOL XiaoWei', serif;
  background: linear-gradient(180deg, #1a2a4a 0%, #2d3a5a 50%, #3d4a6a 100%);
  min-height: 100vh;
  color: var(--cream);
  overflow-x: hidden;
  position: relative;
}

/* ===== 背景蒸汽 ===== */
.background-steam {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.steam-particle {
  position: absolute;
  bottom: 30%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: background-steam-rise 15s infinite ease-out;
}

.steam-particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.steam-particle:nth-child(2) {
  left: 30%;
  animation-delay: 3s;
}

.steam-particle:nth-child(3) {
  left: 50%;
  animation-delay: 1s;
}

.steam-particle:nth-child(4) {
  left: 70%;
  animation-delay: 4s;
}

.steam-particle:nth-child(5) {
  left: 90%;
  animation-delay: 2s;
}

@keyframes background-steam-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.1;
  }

  100% {
    transform: translateY(-100vh) scale(2);
    opacity: 0;
  }
}

/* ===== 雪花效果 ===== */
.snowflake {
  position: fixed;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  top: -20px;
  animation: fall linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
}

/* ===== 主容器 ===== */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 头部 ===== */
.header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  animation: fade-in 1s ease-out;
  margin-top: 80px;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--warm-orange);
  text-shadow: 0 2px 20px rgba(255, 140, 66, 0.4);
  margin-bottom: var(--spacing-xs);
  letter-spacing: 0.05em;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0.85;
  font-weight: 400;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 进度指示器 ===== */
.progress-indicator {
  position: fixed;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: right;
  z-index: 100;
  animation: slide-in-right 0.8s ease-out;
}

.progress-count {
  display: block;
  font-size: 0.9rem;
  color: var(--cream);
  margin-bottom: 4px;
}

.progress-count strong {
  color: var(--warm-orange);
  font-size: 1.2rem;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--cream);
  opacity: 0.7;
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== 饺子锅 ===== */
.pot-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto var(--spacing-xl);
  padding: 0 50px;
  animation: fade-in 1.2s ease-out 0.3s both;
}

/* 锅的整体 - 圆柱体设计 */
/* 锅的整体 - 圆柱体设计 */
.pot {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.75;
}

/* 锅身 - 圆柱体主体 */
.pot::before {
  content: '';
  position: absolute;
  top: 27%;
  left: 0;
  width: 100%;
  height: 73%;
  background:
    linear-gradient(90deg,
      #606060 0%,
      #909090 8%,
      #b8b8b8 20%,
      #d0d0d0 35%,
      #e0e0e0 50%,
      #d0d0d0 65%,
      #b8b8b8 80%,
      #909090 92%,
      #606060 100%);
  border-radius: 0 0 50% 50% / 0 0 25% 25%;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 -8px 20px rgba(0, 0, 0, 0.15);
}

/* 隐藏锅把手连接用的伪元素 */
.pot::after {
  display: none;
}

/* 锅把手 - 弧形连接到锅身 */
.pot-handle {
  position: absolute;
  top: 45%;
  width: 45px;
  height: 40px;
  z-index: 5;
}

.pot-handle::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  border: 8px solid #999;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8c8c8 0%, #888 50%, #a8a8a8 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.25);
}

.pot-handle-left {
  left: 5px;
}

.pot-handle-left::before {
  border-right: none;
  border-radius: 50% 0 0 50%;
}

.pot-handle-right {
  right: 5px;
}

.pot-handle-right::before {
  border-left: none;
  border-radius: 0 50% 50% 0;
}

/* 隐藏pot-rim */
.pot-rim {
  display: none;
}

/* 水面 - 增大高度，颜色加深 */
.water-surface {
  position: absolute;
  top: 0%;
  left: 0;
  width: 100%;
  height: 54%;
  background:
    radial-gradient(ellipse at 50% 50%,
      rgba(235, 230, 225, 1) 0%,
      rgba(215, 210, 205, 0.98) 50%,
      rgba(195, 190, 185, 0.95) 80%,
      rgba(165, 160, 155, 0.9) 100%);
  border-radius: 50%;
  animation: water-boil 2.5s ease-in-out infinite;
  z-index: 10;
}

/* 水面高光 */
.water-reflection {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 30%;
  height: 40%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.5) 0%,
      transparent 100%);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 11;
}

@keyframes water-boil {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.005);
  }
}

/* 饺子容器 */
.dumplings-container {
  position: absolute;
  top: 6%;
  left: 6%;
  width: 80%;
  height: 40%;
  z-index: 12;
}

/* 单个饺子 */
.dumpling {
  position: absolute;
  width: 50px;
  height: 35px;
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: dumpling-float var(--float-time) ease-in-out infinite;
}

.dumpling:hover {
  transform: scale(1.15);
  z-index: 20;
}

.dumpling-body {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      var(--dumpling-highlight) 0%,
      var(--dumpling-white) 40%,
      var(--dumpling-shadow) 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 -3px 6px rgba(0, 0, 0, 0.1),
    inset 0 3px 6px rgba(255, 255, 255, 0.8);
  transform: rotate(-10deg);
}

/* 饺子褶皱 */
.dumpling-body::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 80%;
  height: 30%;
  background: repeating-linear-gradient(90deg,
      transparent 0%,
      transparent 8%,
      rgba(0, 0, 0, 0.08) 8%,
      rgba(0, 0, 0, 0.08) 12%);
  border-radius: 50%;
}

/* 饺子高光 */
.dumpling-body::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 25%;
  height: 20%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  filter: blur(2px);
}

@keyframes dumpling-float {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  25% {
    transform: translateY(-5px) rotate(2deg);
  }

  50% {
    transform: translateY(-2px) rotate(-1deg);
  }

  75% {
    transform: translateY(-7px) rotate(1deg);
  }
}

/* 饺子入锅动画 */
.dumpling.dropping {
  animation: dumpling-drop var(--drop-time) ease-in forwards;
}

@keyframes dumpling-drop {
  0% {
    transform: translateY(-100px) scale(0.5);
    opacity: 0;
  }

  60% {
    transform: translateY(10px) scale(1.1);
    opacity: 1;
  }

  80% {
    transform: translateY(-5px) scale(0.95);
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* 水波纹 */
.ripple {
  position: absolute;
  width: 60px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: ripple-expand 1s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* 蒸汽层 */
.steam-layer {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 50%;
  pointer-events: none;
  z-index: 5;
}

.steam {
  position: absolute;
  bottom: 0;
  left: var(--x);
  width: 30px;
  height: 60px;
  background: radial-gradient(ellipse at center,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 100%);
  border-radius: 50%;
  animation: steam-rise var(--steam-rise-time) ease-out infinite;
  animation-delay: var(--delay);
  opacity: 0;
}

@keyframes steam-rise {
  0% {
    transform: translateY(0) scaleX(1);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.25;
    transform: translateY(-40px) scaleX(1.3);
  }

  100% {
    transform: translateY(-80px) scaleX(1.8);
    opacity: 0;
  }
}

/* 蒸汽减弱状态（输入时） */
.steam-layer.dimmed .steam {
  animation-play-state: paused;
  opacity: 0.15 !important;
}

/* ===== 输入区域 ===== */
.input-section {
  background: linear-gradient(145deg, rgba(60, 65, 85, 0.9) 0%, rgba(50, 55, 75, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px 25px 110px 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: fade-in 1s ease-out 0.6s both;
  position: relative;
  display: flex;
  flex-direction: column;
}

.input-section[hidden] {
  display: none;
}

.action-switch {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto var(--spacing-sm);
  width: 100%;
  max-width: 420px;
}

.action-switch[hidden] {
  display: none;
}

.action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1f2a4a;
  color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.action-btn.active {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

#actionWrap {
  background: linear-gradient(135deg, #ff9b52 0%, #ea580c 100%);
}

#actionRedeem {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.btn-emoji {
  font-size: 1.18em;
  line-height: 1;
}

.action-panel {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.delivery-switch {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto var(--spacing-sm);
  width: 100%;
  max-width: 420px;
}

.delivery-switch[hidden] {
  display: none;
}

.delivery-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #233055;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 720;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.delivery-btn.active {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

#deliveryPublic {
  background: linear-gradient(135deg, #ff9b52 0%, #ea580c 100%);
}

#deliverySecret {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.secret-fields {
  margin-top: 55px;
  display: grid;
  gap: 12px;
}

.input-wrapper.small .blessing-input {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 1rem;
}

.share-actions {
  display: grid;
  gap: 12px;
  justify-content: stretch;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--spacing-md);
  animation: fade-in 0.45s ease-out;
}

.share-actions[hidden] {
  display: none;
}

.share-btn {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0f172a;
  border: none;
  border-radius: 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 750;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.share-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.share-btn.link {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.share-btn.image {
  background: linear-gradient(135deg, #ff9b52 0%, #ea580c 100%);
}

.redeem-box {
  background: linear-gradient(145deg, rgba(60, 65, 85, 0.9) 0%, rgba(50, 55, 75, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.redeem-btn {
  margin-top: 12px;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, #e8a060 0%, #d08040 100%);
  border: none;
  border-radius: 18px;
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(208, 128, 64, 0.35);
}

.redeem-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-modal[hidden] {
  display: none;
}

.secret-fields[hidden] {
  display: none;
}

.action-panel[hidden] {
  display: none;
}

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 64, 0.86);
  backdrop-filter: blur(10px);
}

.share-modal-card {
  position: relative;
  width: min(520px, calc(100vw - 36px));
  background: linear-gradient(180deg, #212a52 0%, #151b35 100%);
  border: 1px solid #2f3a66;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.45);
}

.share-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 10px;
}

.share-modal-meta {
  padding: 12px 12px 14px 12px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0f172a 0%, #111b33 100%);
  border: 1px solid #2b365f;
}

.share-modal-subtitle {
  font-size: 0.98rem;
  font-weight: 760;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.share-modal-chip {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff9b52 0%, #ea580c 100%);
  color: #1f140a;
  font-weight: 900;
}

.share-modal-chip[hidden] {
  display: none;
}

.share-chip-label {
  opacity: 0.9;
}

.share-chip-value {
  letter-spacing: 0.08em;
}

.share-modal-note {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.share-modal-preview {
  width: 100%;
  border-radius: 18px;
  background: transparent;
  border: none;
  padding: 0;
  display: block;
  box-sizing: border-box;
  max-height: min(72vh, 760px);
  object-fit: contain;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.35);
}

.share-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 255;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.share-sheet[hidden] {
  display: none;
}

.share-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 64, 0.86);
  backdrop-filter: blur(10px);
}

.share-sheet-card {
  position: relative;
  width: min(520px, calc(100vw - 26px));
  margin: 0 0 14px 0;
  background: linear-gradient(180deg, #212a52 0%, #151b35 100%);
  border: 1px solid #2f3a66;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 22px 90px rgba(0, 0, 0, 0.45);
}

.share-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.share-sheet-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
}

.share-sheet-subtitle {
  margin-top: 6px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
}

.share-sheet-close {
  appearance: none;
  border: none;
  background: #ffffff;
  color: #0b1224;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  padding: 10px 12px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.share-sheet-actions {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.share-sheet-info {
  margin-top: 14px;
  padding: 14px 14px 12px;
  border-radius: 20px;
  border: none;
  background: #eee;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.share-sheet-info-title {
  font-size: 1.03rem;
  font-weight: 900;
  color: #4a3020;
}

.share-sheet-info-highlight {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(74, 48, 32, 0.12);
  color: #4a3020;
  font-weight: 900;
  word-break: break-word;
}

.share-sheet-info-note {
  margin-top: 10px;
  color: rgba(74, 48, 32, 0.8);
  font-weight: 650;
  line-height: 1.55;
  word-break: break-word;
}

.share-sheet-btn {
  appearance: none;
  border: none;
  border-radius: 18px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 850;
  cursor: pointer;
  background: #334155;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.share-sheet-btn.primary {
  background: linear-gradient(135deg, #ff9b52 0%, #ea580c 100%);
}

.share-modal-btn {
  flex: 1;
  appearance: none;
  border: none;
  background: #334155;
  border-radius: 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 750;
  padding: 11px 14px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.share-modal-btn.primary {
  background: linear-gradient(135deg, #ff9b52 0%, #ea580c 100%);
}

.share-modal-close {
  margin-top: 12px;
  width: 100%;
  border: none;
  background: #0b1224;
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 750;
  padding: 11px 12px;
  cursor: pointer;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.input-wrapper {
  position: relative;
  margin-bottom: 0;
}

.blessing-input {
  width: 100%;
  padding: 20px;
  background: #eee;
  border: none;
  border-radius: 15px;
  color: #4a3020;
  font-family: inherit;
  font-size: 1.1rem;
  resize: none;
  transition: box-shadow 0.3s;
  line-height: 1.6;
}

.blessing-input::placeholder {
  color: #a08060;
}

.blessing-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(232, 160, 96, 0.5);
  background: #fff;
}

.char-count {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 0.9rem;
  color: rgba(74, 48, 32, 0.65);
  font-weight: 650;
  pointer-events: none;
}

#blessingInput {
  padding-bottom: 52px;
}

/* 提交按钮 */
.submit-btn {
  position: absolute;
  bottom: 20px;
  right: 25px;
  width: auto;
  padding: 12px 30px;
  background: linear-gradient(135deg, #e8a060 0%, #d08040 100%);
  border: none;
  border-radius: 30px;
  color: white;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(208, 128, 64, 0.4);
  overflow: hidden;
}



.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 140, 66, 0.5);
}

.submit-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 10px rgba(255, 140, 66, 0.4);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
  transform: rotate(-15deg) scale(1.1);
}

/* ===== 成功提示 ===== */
.success-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-20px);
  background: linear-gradient(145deg, #fffef8 0%, #fff8e8 100%);
  color: #5D4037;
  padding: 20px 40px;
  border-radius: 30px;
  font-size: 1.2rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  z-index: 320;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  white-space: nowrap;
  pointer-events: none;
}

.success-toast.show {
  transform: translate(-50%, -50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ===== 祝福卡片弹窗 ===== */
.blessing-card {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 20, 64, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.blessing-card.show {
  opacity: 1;
  visibility: visible;
}

.card-content {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.blessing-card.show .card-content {
  transform: scale(1) translateY(0);
}

.card-dumpling {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  animation: card-dumpling-bounce 2s ease-in-out infinite;
}

@keyframes card-dumpling-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.card-text {
  color: var(--deep-brown);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.8;
  padding: 16px 14px;
  border-radius: 18px;
  border: 2px solid rgba(232, 160, 96, 0.55);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  margin-bottom: var(--spacing-lg);
  word-break: break-word;
}

.card-title {
  margin-top: -6px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #7a4b2a;
}

.card-title[hidden] {
  display: none !important;
}

.card-passcode {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(122, 75, 42, 0.16);
  color: #6b3f23;
  font-weight: 950;
  margin: 0 auto 14px;
  word-break: break-word;
}

.card-passcode[hidden] {
  display: none !important;
}

.card-note {
  margin-top: -8px;
  margin-bottom: var(--spacing-lg);
  color: rgba(93, 64, 55, 0.8);
  font-weight: 650;
  line-height: 1.6;
}

.card-note[hidden] {
  display: none !important;
}

.card-close {
  background: var(--deep-brown);
  color: var(--cream);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-close:hover {
  background: var(--deep-brown-light);
  transform: scale(1.05);
}

/* ===== 终局效果 ===== */
.finale-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 140, 66, 0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity 2s ease;
}

.finale-overlay.active {
  opacity: 1;
}

.finale-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  color: var(--warm-orange);
  text-shadow: 0 0 30px rgba(255, 140, 66, 0.6);
  white-space: nowrap;
  opacity: 0;
  animation: finale-text-appear 3s ease-out 1s forwards;
}

@keyframes finale-text-appear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ===== 页脚 ===== */
.footer {
  margin-top: 0;
  text-align: center;
  padding: var(--spacing-lg) 0;
  animation: fade-in 1s ease-out 0.9s both;
}

.footer-text {
  font-size: 1.125rem;
  color: rgba(253, 230, 138, 0.6);
}

/* ===== 暖色背景状态（终局） ===== */
body.warm-finale {
  background: linear-gradient(180deg, #2D1B4E 0%, #1A0F2E 100%);
}

body.warm-finale .pot {
  box-shadow:
    0 20px 60px rgba(255, 140, 66, 0.3),
    inset 0 -10px 30px rgba(0, 0, 0, 0.3),
    inset 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* ===== 响应式设计 ===== */
@media (max-width: 480px) {
  .container {
    padding: var(--spacing-md);
  }

  .header {
    margin-top: 60px;
    margin-bottom: var(--spacing-md);
  }

  .title {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .progress-indicator {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
  }

  .progress-count {
    font-size: 0.8rem;
  }

  .progress-count strong {
    font-size: 1rem;
  }

  .pot-container {
    max-width: 300px;
    padding: 0 30px;
  }

  .pot-handle {
    width: 35px;
    height: 26px;
    top: 42%;
  }

  .pot-handle::before {
    border-width: 6px;
  }

  .pot-handle-left {
    left: 3px;
  }

  .pot-handle-right {
    right: 3px;
  }

  .dumpling {
    width: 40px;
    height: 28px;
  }

  .input-section {
    padding: 20px 20px 85px 20px;
  }

  .blessing-input {
    padding: 15px;
    font-size: 1rem;
  }

  .char-count {
    bottom: -40px;
    left: 0;
    font-size: 0.8rem;
  }

  .submit-btn {
    bottom: 15px;
    right: 15px;
    padding: 10px 24px;
    font-size: 1rem;
  }

  .finale-text {
    font-size: 1.3rem;
    white-space: normal;
    text-align: center;
    width: 90%;
  }

  .footer-text {
    font-size: 1rem;
  }
}
