/* ============================================
   Mujoo 毛毡风格 UI 系统 - Felt Style System
   ============================================ */

/* ========== 全局毛毡纹理背景 ========== */
.felt-texture {
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,.1) 2px, rgba(255,255,255,.1) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.05) 2px, rgba(255,255,255,.05) 4px);
  pointer-events: none;
}

/* ========== 毛毡卡片基础样式 ========== */
.felt-card {
  background: rgba(255, 255, 255, 0.92);
  border: 3px dashed rgba(100, 200, 255, 0.35);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.felt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,.2) 2px, rgba(255,255,255,.2) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.15) 2px, rgba(255,255,255,.15) 4px);
  pointer-events: none;
  z-index: 1;
}

.felt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: rgba(100, 200, 255, 0.5);
}

.felt-card > * {
  position: relative;
  z-index: 2;
}

/* ========== 毛毡对话框 ========== */
.felt-dialog {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,248,255,0.92));
  border: 4px solid rgba(100, 200, 255, 0.3);
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.felt-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,.25) 2px, rgba(255,255,255,.25) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.2) 2px, rgba(255,255,255,.2) 4px);
  pointer-events: none;
}

.felt-dialog > * {
  position: relative;
  z-index: 2;
}

.felt-dialog h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 700;
}

.felt-dialog p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* ========== 毛毡按钮 ========== */
.felt-button {
  background: linear-gradient(135deg, #FFB6D9, #FF69B4);
  border: 2px solid rgba(255, 100, 150, 0.4);
  border-radius: 20px;
  padding: 12px 30px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 100, 150, 0.2);
  font-size: 1rem;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.felt-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 100, 150, 0.35);
  border-color: rgba(255, 100, 150, 0.6);
}

.felt-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(255, 100, 150, 0.2);
}

/* 蓝色毛毡按钮 */
.felt-button-blue {
  background: linear-gradient(135deg, #87CEEB, #00BFFF);
  border-color: rgba(0, 191, 255, 0.4);
  box-shadow: 0 4px 10px rgba(0, 191, 255, 0.2);
}

.felt-button-blue:hover {
  box-shadow: 0 6px 15px rgba(0, 191, 255, 0.35);
  border-color: rgba(0, 191, 255, 0.6);
}

/* 紫色毛毡按钮 */
.felt-button-purple {
  background: linear-gradient(135deg, #DDA0DD, #9370DB);
  border-color: rgba(147, 112, 219, 0.4);
  box-shadow: 0 4px 10px rgba(147, 112, 219, 0.2);
}

.felt-button-purple:hover {
  box-shadow: 0 6px 15px rgba(147, 112, 219, 0.35);
  border-color: rgba(147, 112, 219, 0.6);
}

/* ========== 毛毡标签 ========== */
.felt-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 15px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(255, 165, 0, 0.2);
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.felt-badge-pink {
  background: linear-gradient(135deg, #FFB6D9, #FF69B4);
  border-color: rgba(255, 100, 150, 0.3);
  box-shadow: 0 2px 5px rgba(255, 100, 150, 0.2);
}

.felt-badge-blue {
  background: linear-gradient(135deg, #87CEEB, #00BFFF);
  border-color: rgba(0, 191, 255, 0.3);
  box-shadow: 0 2px 5px rgba(0, 191, 255, 0.2);
}

.felt-badge-purple {
  background: linear-gradient(135deg, #DDA0DD, #9370DB);
  border-color: rgba(147, 112, 219, 0.3);
  box-shadow: 0 2px 5px rgba(147, 112, 219, 0.2);
}

.felt-badge-green {
  background: linear-gradient(135deg, #90EE90, #32CD32);
  border-color: rgba(50, 205, 50, 0.3);
  box-shadow: 0 2px 5px rgba(50, 205, 50, 0.2);
}

/* ========== 毛毡输入框 ========== */
.felt-input {
  background: rgba(255, 255, 255, 0.85);
  border: 2px dashed rgba(100, 200, 255, 0.3);
  border-radius: 15px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #333;
  transition: all 0.3s ease;
  font-family: inherit;
}

.felt-input:focus {
  outline: none;
  border-color: rgba(100, 200, 255, 0.6);
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.felt-input::placeholder {
  color: rgba(100, 100, 100, 0.5);
}

/* ========== 毛毡文本区域 ========== */
.felt-textarea {
  background: rgba(255, 255, 255, 0.85);
  border: 2px dashed rgba(100, 200, 255, 0.3);
  border-radius: 15px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #333;
  transition: all 0.3s ease;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

.felt-textarea:focus {
  outline: none;
  border-color: rgba(100, 200, 255, 0.6);
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

/* ========== 毛毡标题 ========== */
.felt-title {
  color: #2c3e50;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.felt-title-large {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.felt-title-medium {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.felt-title-small {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* ========== 毛毡分割线 ========== */
.felt-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.3), transparent);
  margin: 20px 0;
  border: none;
}

/* ========== 毛毡网格布局 ========== */
.felt-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.felt-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.felt-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ========== 毛毡列表 ========== */
.felt-list {
  list-style: none;
}

.felt-list li {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(100, 200, 255, 0.2);
  color: #555;
  line-height: 1.6;
}

.felt-list li:last-child {
  border-bottom: none;
}

.felt-list li::before {
  content: '✦ ';
  color: #FF69B4;
  font-weight: bold;
  margin-right: 8px;
}

/* ========== 毛毡图标容器 ========== */
.felt-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(255, 182, 217, 0.3), rgba(135, 206, 235, 0.3));
  border-radius: 15px;
  border: 2px solid rgba(100, 200, 255, 0.2);
  margin-bottom: 15px;
}

.felt-icon-box img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* ========== 毛毡卡片组合 ========== */
.felt-card-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.felt-card-item {
  flex: 1;
  min-width: 150px;
}

/* ========== 毛毡阴影效果 ========== */
.felt-shadow-soft {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.felt-shadow-medium {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.felt-shadow-strong {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ========== 毛毡背景颜色 ========== */
.felt-bg-light {
  background: rgba(255, 255, 255, 0.9);
}

.felt-bg-cream {
  background: rgba(255, 250, 240, 0.9);
}

.felt-bg-pink {
  background: rgba(255, 240, 245, 0.9);
}

.felt-bg-blue {
  background: rgba(240, 248, 255, 0.9);
}

.felt-bg-purple {
  background: rgba(245, 240, 255, 0.9);
}

.felt-bg-green {
  background: rgba(240, 255, 240, 0.9);
}

/* ========== 毛毡边框颜色 ========== */
.felt-border-pink {
  border-color: rgba(255, 100, 150, 0.3) !important;
}

.felt-border-blue {
  border-color: rgba(100, 200, 255, 0.3) !important;
}

.felt-border-purple {
  border-color: rgba(147, 112, 219, 0.3) !important;
}

.felt-border-green {
  border-color: rgba(50, 205, 50, 0.3) !important;
}

/* ========== 毛毡动画 ========== */
@keyframes felt-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes felt-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes felt-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.5);
  }
}

.felt-bounce {
  animation: felt-bounce 0.6s ease-in-out infinite;
}

.felt-pulse {
  animation: felt-pulse 2s ease-in-out infinite;
}

.felt-glow {
  animation: felt-glow 2s ease-in-out infinite;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .felt-card {
    padding: 15px;
    border-radius: 15px;
  }

  .felt-dialog {
    padding: 20px;
    border-radius: 20px;
  }

  .felt-title-large {
    font-size: 1.8rem;
  }

  .felt-title-medium {
    font-size: 1.4rem;
  }

  .felt-grid {
    grid-template-columns: 1fr;
  }

  .felt-grid-2 {
    grid-template-columns: 1fr;
  }

  .felt-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .felt-card {
    padding: 12px;
    border-radius: 12px;
  }

  .felt-dialog {
    padding: 15px;
    border-radius: 15px;
  }

  .felt-title-large {
    font-size: 1.5rem;
  }

  .felt-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .felt-grid-3 {
    grid-template-columns: 1fr;
  }
}
