﻿/*
 * Decor system: items, worship decor, grid, and related effects
 */

    /* 道具系统样式 */
    .items-section {
      background: rgba(255, 250, 245, 0.8);
      border-radius: 20px;
      padding: 1rem;
      margin: 1rem 0;
      border: 1px solid rgba(255, 240, 230, 0.8);
      box-shadow: 0 4px 16px rgba(140, 120, 110, 0.08);
    }
    
    /* 祭拜装饰区域样式 */
    .worship-decor-section {
      background: rgba(255, 250, 245, 0.8);
      border-radius: 20px;
      padding: 1rem;
      margin: 1rem 0;
      border: 1px solid rgba(255, 240, 230, 0.8);
      box-shadow: 0 4px 16px rgba(140, 120, 110, 0.08);
    }
    
    .worship-decor-content {
      width: 100%;
    }
    
    .decor-section {
      width: 100%;
    }
    .items-tabs {
      display: flex;
      gap: 0.8rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }
    .item-tab {
      background: rgba(200, 180, 165, 0.3);
      border: 1px solid rgba(180, 160, 145, 0.5);
      border-radius: 24px;
      padding: 0.6rem 1.5rem;
      font-size: 1rem;
      color: #5a4c42;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .item-tab:hover {
      background: rgba(180, 160, 145, 0.4);
      transform: translateY(-2px);
    }
    .item-tab.active {
      background: #ff69b4;
      color: white;
      border-color: #ff69b4;
      box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
    }
    .items-content {
      min-height: 200px;
    }
    .item-content {
      display: none;
    }
    .item-content.active {
      display: block;
    }
    .item-grid {
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      gap: 0.6rem;
    }
    .no-items {
      text-align: center;
      padding: 2rem;
      color: #8b7a6b;
      font-style: italic;
    }

    /* 按钮交互效果增强 */
    .user-area button,
    .create-pet-btn,
    .action-btn,
    .worship-button {
      position: relative; overflow: hidden;
    }
    .user-area button::before,
    .create-pet-btn::before,
    .action-btn::before,
    .worship-button::before {
      content: ''; position: absolute; top: 50%; left: 50%;
      width: 0; height: 0; border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }
    .user-area button:hover::before,
    .create-pet-btn:hover::before,
    .action-btn:hover::before,
    .worship-button:hover::before {
      width: 300px; height: 300px;
    }

    /* 隐藏不需要的装饰元素 */
    .cloud-decoration,
    .tree-decoration,
    .farm-grass-decoration,
    .farm-decorations {
      display: none !important;
    }
    
    /* 装扮网格样式 */
    .decoration-grid-container {
      background: linear-gradient(135deg, rgba(255, 250, 245, 0.9), rgba(245, 240, 230, 0.8));
      border-radius: 24px;
      padding: 1.5rem;
      margin: 1rem 0;
      border: 1px solid rgba(255, 240, 230, 0.8);
      box-shadow: 0 4px 16px rgba(140, 120, 110, 0.08);
    }
    .decoration-grid-title {
      font-size: 1.2rem;
      color: #5a4c42;
      margin-bottom: 1.5rem;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }
    .decoration-grid {
      display: grid;
      grid-template-columns: repeat(3, 100px);
      grid-template-rows: repeat(3, 100px);
      gap: 10px;
      justify-content: center;
      margin-bottom: 1rem;
    }
    .grid-cell {
      width: 100px;
      height: 100px;
      background: linear-gradient(135deg, #7cc243, #91c788);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }
    .grid-cell:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(124, 194, 67, 0.3);
    }
    .grid-cell::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
      background-size: 10px 10px;
      pointer-events: none;
    }
    .grid-cell.center {
      background: linear-gradient(135deg, #555, #333);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }
    .grid-cell.center:hover {
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    .tombstone-in-grid {
      text-align: center;
      color: white;
      font-size: 0.9rem;
      padding: 10px;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      position: relative;
      animation: tombstoneGlow 6s ease-in-out infinite;
    }
    .tombstone-in-grid.classic {
      background: linear-gradient(135deg, #555, #333);
    }
    .tombstone-in-grid.elegant {
      background: linear-gradient(135deg, #777, #555);
      border: 2px solid #fff;
    }
    .tombstone-in-grid.modern {
      background: linear-gradient(135deg, #999, #777);
      border-radius: 16px;
    }
    .tombstone-name {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 4px;
    }
    .tombstone-years {
      font-size: 0.8rem;
      opacity: 0.8;
    }
    .decoration-item {
      font-size: 2rem;
      position: relative;
      z-index: 1;
    }
    .candle-decoration {
      animation: candleFlicker 1.5s ease-in-out infinite;
    }
    .lawn-decoration {
      font-size: 1.5rem;
    }
    .fence-decoration {
      font-size: 1.8rem;
    }
    .selected-item {
      border: 3px solid #ffde59 !important;
      box-shadow: 0 0 15px rgba(255, 222, 89, 0.5) !important;
    }
    @keyframes tombstoneGlow {
      0%, 100% {
        box-shadow: 0 0 5px gold;
      }
      50% {
        box-shadow: 0 0 10px gold, 0 0 20px rgba(255, 215, 0, 0.3);
      }
    }
    @keyframes candleFlicker {
      0%, 100% {
        transform: scale(0.95);
        opacity: 0.8;
      }
      50% {
        transform: scale(1.05);
        opacity: 1;
      }
    }


/* ========================================= */
