.waifu-container {
  position: relative;
  width: 100px;
  height: 140px;
  cursor: pointer;
  margin: 10px auto;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.waifu-container:hover {
  transform: scale(1.15);
}

.waifu-body {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  transform-origin: bottom center;
}

/* 皇冠 */
.crown {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 20px;
  z-index: 10;
}

.crown-point {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 18px solid #FFD700;
}

.crown-point:nth-child(1) { left: 0; }
.crown-point:nth-child(2) { left: 50%; transform: translateX(-50%); }
.crown-point:nth-child(3) { right: 0; }

.crown-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 8px;
  background: #FFD700;
  border-radius: 3px;
}

.crown-jewel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #FF6B6B;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 107, 107, 0.6);
}

/* 头发 */
.shinchan-hair {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 35px;
}

.hair-main {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 30px;
  background: #1A1A1A;
  border-radius: 50% 50% 30% 30%;
}

.hair-spike {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 25px solid #1A1A1A;
}

.hair-spike:nth-child(2) { top: -5px; left: 5px; transform: rotate(-20deg); }
.hair-spike:nth-child(3) { top: -8px; left: 50%; transform: translateX(-50%); }
.hair-spike:nth-child(4) { top: -5px; right: 5px; transform: rotate(20deg); }

/* 脸 */
.shinchan-face {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 55px;
  background: linear-gradient(135deg, #FFE4B5 0%, #FFDAB9 50%, #FFD4A8 100%);
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 眼睛 */
.shinchan-eye {
  position: absolute;
  top: 15px;
  width: 18px;
  height: 20px;
  background: #1A1A1A;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.shinchan-eye-left { left: 12px; }
.shinchan-eye-right { right: 12px; }

.shinchan-pupil {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  background: #FFF;
  border-radius: 50%;
  transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.shinchan-pupil::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 4px;
  height: 4px;
  background: #1A1A1A;
  border-radius: 50%;
}

.shinchan-eye.blink {
  animation: blink 0.15s ease;
}

@keyframes blink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); }
}

/* 眉毛 */
.shinchan-eyebrow {
  position: absolute;
  top: 5px;
  width: 22px;
  height: 4px;
  background: #1A1A1A;
  border-radius: 2px;
}

.shinchan-eyebrow-left {
  left: 8px;
  transform: rotate(-15deg);
}

.shinchan-eyebrow-right {
  right: 8px;
  transform: rotate(15deg);
}

/* 嘴巴 */
.shinchan-mouth {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 15px;
  background: #E53E3E;
  border-radius: 40% 40% 50% 50%;
  box-shadow: 0 2px 6px rgba(229, 62, 62, 0.4);
}

.shinchan-mouth::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 8px;
  background: #C53030;
  border-radius: 0 0 6px 6px;
}

/* 舌头 */
.shinchan-tongue {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 8px;
  background: #FFB3C1;
  border-radius: 0 0 6px 6px;
  animation: tongueWave 1s ease-in-out infinite;
}

@keyframes tongueWave {
  0%, 100% { transform: translateX(-50%) scaleY(1); }
  50% { transform: translateX(-50%) scaleY(1.1); }
}

/* 腮红 */
.shinchan-cheek {
  position: absolute;
  top: 30px;
  width: 18px;
  height: 12px;
  background: radial-gradient(circle, #FFB3C1 0%, #FF8FA3 50%, transparent 70%);
  border-radius: 50%;
  animation: blush 2s ease-in-out infinite;
}

.shinchan-cheek-left { left: 2px; }
.shinchan-cheek-right { right: 2px; }

@keyframes blush {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* 衣领 */
.shinchan-collar {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 20px;
}

.collar-ruffle {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 15px;
  background: #FFF;
  border-radius: 50% 50% 0 0;
}

.collar-ruffle::before,
.collar-ruffle::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 30px;
  height: 15px;
  background: #FFF;
  border-radius: 50% 50% 0 0;
}

.collar-ruffle::before { left: -8px; }
.collar-ruffle::after { right: -8px; }

/* 上衣 */
.shinchan-shirt {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 30px;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.shirt-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.button {
  width: 10px;
  height: 10px;
  background: #FFD700;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
}

/* 披风 */
.shinchan-cape {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 35px;
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 50%, #5B21B6 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  z-index: -1;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* 裤子 */
.shinchan-pants {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 22px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 6px 6px 0 0;
}

/* 袜子 */
.shinchan-socks {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 10px;
  display: flex;
  justify-content: space-between;
}

.sock {
  width: 14px;
  height: 10px;
  background: #FFF;
  border-radius: 4px 4px 0 0;
}

/* 鞋子 */
.shinchan-shoes {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 8px;
  display: flex;
  justify-content: space-between;
}

.shoe {
  width: 18px;
  height: 8px;
  background: linear-gradient(180deg, #1E3A8A 0%, #1E40AF 100%);
  border-radius: 3px 3px 0 0;
}

/* 身体固定不动 */
.waifu-body {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 手臂 */
.shinchan-arm {
  position: absolute;
  bottom: 28px;
  width: 20px;
  height: 15px;
  background: linear-gradient(135deg, #FFE4B5 0%, #FFDAB9 100%);
  border-radius: 10px;
}

.shinchan-arm-right {
  right: 8px;
  transform: rotate(30deg);
}

.shinchan-arm-right::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #FFE4B5 0%, #FFDAB9 100%);
  border-radius: 50%;
}

/* 冰淇淋容器 */
.ice-cream-container {
  position: absolute;
  bottom: 25px;
  right: -15px;
  width: 35px;
  height: 50px;
}

.ice-cream {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: bottom center;
  transition: transform 0.1s ease;
}

/* 冰淇淋蛋筒 */
.ice-cream-cone {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 25px solid #D4A574;
}

.ice-cream-cone::before {
  content: '';
  position: absolute;
  top: -25px;
  left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 20px solid #C4956A;
}

/* 冰淇淋球 */
.ice-cream-scoop {
  position: absolute;
  border-radius: 50%;
}

.ice-cream-scoop-1 {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
}

.ice-cream-scoop-2 {
  bottom: 28px;
  left: 30%;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #FFE66D 0%, #FFD93D 100%);
  box-shadow: 0 2px 6px rgba(255, 230, 109, 0.4);
}

.ice-cream-scoop-3 {
  bottom: 28px;
  right: 30%;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #6BCB77 0%, #4CAF50 100%);
  box-shadow: 0 2px 6px rgba(107, 203, 119, 0.4);
}

/* 巧克力酱 */
.ice-cream-chocolate {
  position: absolute;
  bottom: 25px;
  left: 45%;
  width: 12px;
  height: 3px;
  background: #5D4037;
  border-radius: 2px;
  transform: rotate(-30deg);
}

/* 樱桃 */
.ice-cream-cherry {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #FF6B6B 0%, #C44569 100%);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(255, 107, 107, 0.5);
}

.ice-cream-cherry::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 5px;
  background: #4CAF50;
  border-radius: 1px;
}

/* 对话气泡 - 云朵样式 */
.waifu-tips {
  position: absolute;
  left: 50%;
  top: -70px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F4FF 50%, #E0E8FF 100%);
  color: #2D3748;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 100;
  max-width: 220px;
  border: 3px solid #B7C5FF;
  border-radius: 40px 40px 40px 10px;
  box-shadow: 
    0 10px 30px rgba(183, 197, 255, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(183, 197, 255, 0.3);
  animation: cloudFloat 3s ease-in-out infinite;
}

/* 云朵装饰 */
.waifu-tips::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 20px;
  width: 20px;
  height: 20px;
  background: inherit;
  border-radius: 50%;
  border: 3px solid #B7C5FF;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.waifu-tips::after {
  content: '';
  position: absolute;
  top: -8px;
  right: 30px;
  width: 15px;
  height: 15px;
  background: inherit;
  border-radius: 50%;
  border: 3px solid #B7C5FF;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* 底部小尾巴 */
.waifu-tips .tail {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #E0E8FF;
}

.waifu-tips .tail::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -18px;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 18px solid #B7C5FF;
}

@keyframes cloudFloat {
  0%, 100% { 
    transform: translateX(-50%) translateY(0) rotate(0deg); 
    box-shadow: 0 10px 30px rgba(183, 197, 255, 0.5), 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  25% { 
    transform: translateX(-48%) translateY(-5px) rotate(1deg); 
    box-shadow: 0 12px 35px rgba(183, 197, 255, 0.6), 0 6px 18px rgba(0, 0, 0, 0.12);
  }
  50% { 
    transform: translateX(-50%) translateY(-3px) rotate(0deg); 
    box-shadow: 0 10px 30px rgba(183, 197, 255, 0.5), 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  75% { 
    transform: translateX(-52%) translateY(-5px) rotate(-1deg); 
    box-shadow: 0 12px 35px rgba(183, 197, 255, 0.6), 0 6px 18px rgba(0, 0, 0, 0.12);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (max-width: 768px) {
  .waifu-container {
    display: none;
  }
}

.waifu-container {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.waifu-container:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.4));
}

.waifu-container:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.waifu-tips {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #f8fafc;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 13px;
  white-space: nowrap;
  max-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(139, 92, 246, 0.2);
  z-index: 100;
}

.waifu-tips .tail {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(30, 41, 59, 0.9);
  border-right: 1px solid rgba(167, 139, 250, 0.3);
  border-bottom: 1px solid rgba(167, 139, 250, 0.3);
  transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 768px) {
  .waifu-container {
    transform: scale(0.85);
  }
  
  .waifu-container:hover {
    transform: scale(0.92);
  }
  
  .waifu-tips {
    font-size: 12px;
    padding: 8px 12px;
    max-width: 180px;
  }
}