﻿/*
 * Grave scene and decorations
 */

    /* 墓地展示区域样式 */
    .grave-display-area {
      background: linear-gradient(135deg, rgba(255,250,240,0.6), rgba(245,240,230,0.4));
      backdrop-filter: blur(8px);
      border-radius: 40px;
      padding: 1.5rem 2rem;
      margin: 1.2rem 0;
      border: 1px solid rgba(255,255,255,0.8);
      box-shadow: 0 4px 16px rgba(140,120,110,0.08);
    }
    .grave-scene {
      position: relative;
      width: 100%;
      max-width: 800px;
      min-height: 500px;
      margin: 0 auto;
      border-radius: 16px;
      overflow: hidden;
      height: 100%;
      box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
      background: #f5f0e8;
    }
    /* 隐藏不需要的默认装饰元素，保留装扮功能 */
    .cloud-decoration,
    .tree-decoration,
    .grass-blade {
      display: none !important;
    }
    /* 确保装扮元素正确显示 */
    .farm-decoration {
      position: absolute;
      z-index: 2;
    }
    /* 全新墓地场景样式 */
    /* 墓地场景样式 - 统一管理 */
.new-grave-scene {
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #f5f0e8;
}

/* 墓碑样式 - 统一管理 */
.new-grave-scene .tombstone {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}
    
    /* 天空部分 */
    
    
    @keyframes skyShift {
      0%, 100% {
        background: linear-gradient(to bottom, #87CEEB, #B0E0E6);
      }
      50% {
        background: linear-gradient(to bottom, #87CEEB, #A9D1E5);
      }
    }
    
    .sky-gradient {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3), transparent 50%),
                  radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.2), transparent 40%);
    }
    
    .sky-sun {
      position: absolute;
      top: 20px;
      right: 40px;
      width: 60px;
      height: 60px;
      background: radial-gradient(circle, #FFD700, #FFA500);
      border-radius: 50%;
      box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
      animation: sunGlow 3s ease-in-out infinite alternate;
    }
    
    @keyframes sunGlow {
      0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
        transform: scale(1);
      }
      100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 1);
        transform: scale(1.05);
      }
    }
    
    .sky-cloud {
      position: absolute;
      opacity: 0.8;
    }
    
    @keyframes cloudFloat {
      0% {
        transform: translateX(-100%);
      }
      100% {
        transform: translateX(100vw);
      }
    }
    
    .sky-bird {
      position: absolute;
      left: -50px;
    }
    
    @keyframes birdFly {
      0% {
        transform: translateX(-50px) translateY(0);
      }
      25% {
        transform: translateX(25vw) translateY(-20px);
      }
      50% {
        transform: translateX(50vw) translateY(0);
      }
      75% {
        transform: translateX(75vw) translateY(-15px);
      }
      100% {
        transform: translateX(100vw) translateY(0);
      }
    }
    
    /* 土地部分 */
    , #8B4513, #A0522D);
      overflow: hidden;
    }
    
    .land-background {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at 50% 50%, rgba(160, 82, 45, 0.8), rgba(139, 69, 19, 0.9));
    }
    
    .land-grass {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 60%;
    }
    
    @keyframes grassSway {
      0%, 100% {
        transform: rotate(0deg);
      }
      50% {
        transform: rotate(10deg);
      }
    }
    
    /* 墓碑 */
    .grave-tombstone {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 3;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .tombstone-base {
      width: 80px;
      height: 12px;
      background: linear-gradient(135deg, #696969, #808080);
      border-radius: 6px 6px 0 0;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .tombstone-main {
      width: 70px;
      height: 100px;
      background: linear-gradient(135deg, #D3D3D3, #C0C0C0);
      border-radius: 8px 8px 0 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 10px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
      position: relative;
    }
    
    .tombstone-elegant {
      background: linear-gradient(135deg, #A9A9A9, #808080);
    }
    
    .tombstone-modern {
      background: linear-gradient(135deg, #4A4A4A, #333333);
      color: white;
    }
    
    .tombstone-bow {
      position: absolute;
      top: -8px;
      left: 50%;
      transform: translateX(-50%);
      width: 40px;
      height: 16px;
      background: linear-gradient(135deg, #FF69B4, #FF1493);
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(255, 105, 180, 0.5);
    }
    
    .tombstone-bow::before,
    .tombstone-bow::after {
      content: '';
      position: absolute;
      top: 50%;
      width: 12px;
      height: 12px;
      background: linear-gradient(135deg, #FF69B4, #FF1493);
      border-radius: 50%;
      transform: translateY(-50%);
    }
    
    .tombstone-bow::before {
      left: -6px;
    }
    
    .tombstone-bow::after {
      right: -6px;
    }
    
    .tombstone-paw {
      font-size: 1.2rem;
      margin-bottom: 5px;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .tombstone-name {
      font-size: 0.9rem;
      font-weight: bold;
      text-align: center;
      margin-bottom: 3px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .tombstone-years {
      font-size: 0.7rem;
      text-align: center;
      margin-bottom: 5px;
      opacity: 0.8;
    }
    
    .tombstone-epitaph {
      font-size: 0.6rem;
      text-align: center;
      font-style: normal;
      font-family: 'Noto Serif SC', '楷体', 'KaiTi', serif;
      opacity: 0.9;
      line-height: 1.2;
    }
    
    /* 装饰道具 */
    .grave-decoration {
      position: absolute;
    }
    
    .lawn-decoration {
      background: linear-gradient(135deg, #90EE90, #32CD32);
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 128, 0, 0.3);
    }
    
    .fence-decoration {
      background: linear-gradient(135deg, #8B4513, #A0522D);
      border-radius: 4px;
      box-shadow: 0 1px 4px rgba(139, 69, 19, 0.4);
    }
    
    .candle-decoration {
      position: relative;
      width: 20px;
      height: 30px;
    }
    
    .candle-body {
      width: 20px;
      height: 26px;
      background: linear-gradient(135deg, #FFF5E6, #FFE4C4);
      border-radius: 2px 2px 0 0;
      position: relative;
    }
    
    .candle-wick {
      position: absolute;
      top: -4px;
      left: 9px;
      width: 2px;
      height: 6px;
      background: #8B4513;
      z-index: 1;
    }
    
    .candle-flame {
      position: absolute;
      top: -10px;
      left: 7px;
      width: 6px;
      height: 8px;
      background: linear-gradient(135deg, #FFD700, #FFA500);
      border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
      box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
      animation: candleFlicker 1s ease-in-out infinite alternate;
      z-index: 2;
    }
    
    @keyframes candleFlicker {
      0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
      }
      100% {
        transform: scale(1.1) rotate(2deg);
        opacity: 1;
      }
    }
    
    /* 花朵 */
    .flower {
      position: relative;
      width: 20px;
      height: 20px;
    }
    
    .flower-petal {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 10px;
      height: 10px;
      background: linear-gradient(135deg, #FF69B4, #FF1493);
      border-radius: 50% 0;
      transform-origin: center;
    }
    
    .flower-petal:nth-child(1) {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    
    .flower-petal:nth-child(2) {
      transform: translate(-50%, -50%) rotate(90deg);
    }
    
    .flower-petal:nth-child(3) {
      transform: translate(-50%, -50%) rotate(180deg);
    }
    
    .flower-petal:nth-child(4) {
      transform: translate(-50%, -50%) rotate(270deg);
    }
    
    .flower-center {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 8px;
      height: 8px;
      background: linear-gradient(135deg, #FFD700, #FFA500);
      border-radius: 50%;
    }
    
    @keyframes flowerFloat {
      0%, 100% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(-5px);
      }
    }
    
    /* 小植物 */
    .small-plant {
      width: 12px;
      height: 16px;
      position: relative;
    }
    
    .small-plant::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 5px;
      width: 2px;
      height: 12px;
      background: linear-gradient(to top, #228B22, #32CD32);
    }
    
    .small-plant::after {
      content: '';
      position: absolute;
      top: 0;
      left: 2px;
      width: 8px;
      height: 6px;
      background: radial-gradient(circle, #90EE90, #32CD32);
      border-radius: 50%;
    }
    
    /* 装饰容器 */
    .grave-decorations {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }
    
    .grave-decoration {
      pointer-events: auto;
    }
    .grave-main {
      position: relative;
      height: 100%;
    }
    

    .new-grave-scene .tombstone:hover { transform: translateY(-8px); background: rgba(255,252,245,0.9); }
    .tomb-visibility-badge {
      position: absolute;
      top: 0.9rem;
      right: 0.9rem;
      z-index: 3;
      padding: 0.28rem 0.65rem;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      box-shadow: 0 8px 18px rgba(120, 100, 90, 0.12);
    }
    .tomb-visibility-badge--public {
      background: rgba(237, 249, 239, 0.96);
      color: #4d7a55;
      border: 1px solid rgba(153, 199, 163, 0.9);
    }
    .tomb-visibility-badge--private {
      background: rgba(252, 243, 234, 0.96);
      color: #9c6b4b;
      border: 1px solid rgba(225, 188, 163, 0.92);
    }

    .photo-frame {
      width: 140px; height: 140px; border-radius: 50%; padding: 6px;
      background: linear-gradient(145deg, #ffdfd0, #ffe0d8);
      box-shadow: 0 8px 18px rgba(200,150,130,0.2); margin-bottom: 1rem;
    }
    .pet-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; background-color: #f8f9fa; }
    .pet-name {
      font-size: 1.8rem; font-weight: 500; color: #ff69b4; text-align: center;
      text-shadow: 1px 1px 5px rgba(255, 182, 193, 0.6);
    }
    .years {
      font-size: 1.1rem; background: rgba(235,225,215,0.5);
      padding: 0.2rem 1.2rem; border-radius: 40px; margin: 0.5rem 0;
    }

    .epitaph {
      font-size: 1rem; font-style: italic; color: #6b5e55;
      background: rgba(250,245,240,0.6); padding: 0.6rem 0.8rem;
      border-radius: 40px 12px 40px 12px;
      border-left: 3px solid #dfc9bc; border-right: 3px solid #dfc9bc;
      width: 100%; text-align: center;
      display: -webkit-box;
      display: box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.5;
      min-height: 3em;
      flex: 1 0 auto;
    }

    .worship-count-home {
      margin-top: 0.8rem; font-size: 1.1rem; color: #b3a18b;
      display: flex; align-items: center; gap: 6px;
      flex-shrink: 0;
    }
    .worship-count-home i { color: #d4b7a5; }

    .dashboard-header {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 2rem; flex-wrap: wrap;
      background: rgba(255,250,240,0.4); padding: 1.5rem; border-radius: 60px;
    }
    .dashboard-header h2 { font-size: 2rem; color: #5d6d5e; font-weight: 400; }
    .create-pet-btn {
      background: rgba(195,210,192,0.6); border: 1px solid #a6b9a2;
      border-radius: 60px; padding: 0.8rem 2rem; font-size: 1.2rem;
      cursor: pointer; transition: 0.2s; backdrop-filter: blur(2px);
    }
    .create-pet-btn:hover { background: #b3ccb0; transform: scale(1.02); }

