/* 上门喂猫 — 全局补充样式（与 Tailwind CDN 配合，不用 @apply） */
:root {
  --pink-50: #fff5f7;
  --pink-100: #ffe4ec;
  --pink-200: #ffc9d9;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --text-main: #4a3540;
  --text-muted: #8b6b7a;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-main);
  background: linear-gradient(165deg, var(--pink-50) 0%, #fff 45%, var(--pink-100) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 可爱猫咪动画背景 */
.cat-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cat-element {
  position: absolute;
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}

.cat-element.cat-1 {
  font-size: 48px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.cat-element.cat-2 {
  font-size: 36px;
  top: 25%;
  right: 8%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.cat-element.cat-3 {
  font-size: 42px;
  top: 60%;
  left: 12%;
  animation-delay: 4s;
  animation-duration: 9s;
}

.cat-element.cat-4 {
  font-size: 32px;
  top: 75%;
  right: 15%;
  animation-delay: 1s;
  animation-duration: 11s;
}

.cat-element.cat-5 {
  font-size: 40px;
  top: 40%;
  left: 70%;
  animation-delay: 3s;
  animation-duration: 8s;
}

.cat-element.cat-6 {
  font-size: 28px;
  top: 85%;
  left: 45%;
  animation-delay: 5s;
  animation-duration: 13s;
}

/* 猫爪印装饰 */
.paw-print {
  position: absolute;
  opacity: 0.4;
  font-size: 24px;
  animation: bounce 4s ease-in-out infinite;
}

.paw-print.paw-1 {
  top: 15%;
  right: 25%;
  animation-delay: 0s;
}

.paw-print.paw-2 {
  top: 50%;
  left: 5%;
  animation-delay: 1s;
}

.paw-print.paw-3 {
  top: 80%;
  right: 35%;
  animation-delay: 2s;
}

.paw-print.paw-4 {
  top: 30%;
  left: 50%;
  animation-delay: 0.5s;
}

/* 毛线球装饰 */
.yarn-ball {
  position: absolute;
  opacity: 0.5;
  font-size: 32px;
  animation: spin 6s linear infinite;
}

.yarn-ball.yarn-1 {
  top: 20%;
  left: 85%;
  animation-delay: 0s;
}

.yarn-ball.yarn-2 {
  top: 65%;
  right: 5%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(0deg);
  }
  75% {
    transform: translateY(-25px) rotate(-5deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.1);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 波浪尾巴动画 */
@keyframes wave-tail {
  0%, 100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

.font-display {
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
}

main, footer {
  position: relative;
  z-index: 1;
}

.card-soft {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: 0 8px 32px rgba(219, 39, 119, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  color: #fff;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  border-radius: 1rem;
  border: 2px solid #fbcfe8;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #be185d;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-ghost:hover {
  background: #fdf2f8;
}

.input-field {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #fce7f3;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.75rem 1rem;
  color: #44403c;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-field:focus {
  border-color: #f9a8d4;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.25);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: rgba(28, 25, 23, 0.92);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: toast-in 0.25s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.paw-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23fbcfe8' fill-opacity='0.35'%3E%3Ccircle cx='28' cy='22' r='5'/%3E%3Ccircle cx='40' cy='18' r='5'/%3E%3Ccircle cx='52' cy='22' r='5'/%3E%3Ccircle cx='34' cy='32' r='4'/%3E%3Ccircle cx='46' cy='32' r='4'/%3E%3Cellipse cx='40' cy='44' rx='10' ry='8'/%3E%3C/g%3E%3C/svg%3E");
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
}

/* 日期多选标签 */
.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  background: #fce7f3;
  color: #9d174d;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.date-chip button {
  border: none;
  background: transparent;
  color: #be185d;
  cursor: pointer;
  padding: 0 0.15rem;
  line-height: 1;
  font-size: 1rem;
}

/* 工作简介导出卡片（固定画布，供 html2canvas 截取） */
#work-poster-canvas {
  width: 900px;
  min-height: 1200px;
  height: auto;
  box-sizing: border-box;
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(165deg, #fff5f7 0%, #ffffff 42%, #ffe4ec 100%);
  border: 1px solid #fbcfe8;
  border-radius: 24px;
  padding: 48px 44px;
  color: #4a3540;
  position: relative;
  overflow: hidden;
}

#work-poster-canvas .poster-deco {
  position: absolute;
  right: -20px;
  top: 80px;
  font-size: 120px;
  opacity: 0.12;
  pointer-events: none;
}

