/* ============================================
   Mujoo Tiffany Blue + Felt Theme Override
   ============================================ */

/* ---- 导航栏 - 淡 Tiffany 蓝 ---- */
nav.fixed {
  background: linear-gradient(135deg, rgba(129, 216, 208, 0.95) 0%, rgba(100, 200, 195, 0.92) 100%) !important;
  border-bottom: 3px dashed rgba(80, 180, 175, 0.35) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 20px rgba(0, 128, 128, 0.15) !important;
}
nav.fixed a { color: #1a5c58 !important; }
nav.fixed a:hover { color: #0d3d3a !important; }
nav.fixed .font-display { color: #0d3d3a !important; }
nav.fixed .text-xs { color: #2a7a75 !important; }
nav.fixed button { color: #1a5c58 !important; }
nav.fixed [style*="border-style: dashed"] {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(80, 180, 175, 0.5) !important;
}

/* ---- 导航栏间距修复：Logo 与菜单之间增加间距 ---- */
nav.fixed .container {
  gap: 2rem !important;
}
nav.fixed .container > a:first-child {
  margin-right: 1.5rem;
  margin-left: -1rem;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  nav.fixed .container {
    gap: 2.5rem !important;
  }
  nav.fixed .container > a:first-child {
    margin-left: -1.5rem;
  }
}

/* ---- Footer - 深 Tiffany 蓝 ---- */
footer.relative {
  background: linear-gradient(180deg, rgba(15, 60, 58, 0.97) 0%, rgba(8, 40, 38, 0.99) 100%) !important;
}
footer.relative h3 { color: rgba(129, 216, 208, 0.9) !important; }
footer.relative a { color: rgba(129, 216, 208, 0.65) !important; }
footer.relative a:hover { color: rgba(129, 216, 208, 1) !important; }
footer.relative p { color: rgba(129, 216, 208, 0.5) !important; }
footer.relative .border-t { border-color: rgba(129, 216, 208, 0.15) !important; }
footer.relative .border-t p { color: rgba(129, 216, 208, 0.4) !important; }
footer.relative .border-t a { color: rgba(129, 216, 208, 0.5) !important; }
footer.relative .border-t a:hover { color: rgba(129, 216, 208, 0.9) !important; }

/* ============================================
   毛毡风格 - 全局卡片样式
   ============================================ */

/* 所有产品卡片 */
.group.relative.overflow-hidden.rounded-2xl,
.group.relative.overflow-hidden.rounded-xl,
a[class*="rounded-2xl"][class*="overflow-hidden"],
a[class*="rounded-xl"][class*="overflow-hidden"] {
  border: 3px dashed rgba(129, 216, 208, 0.4) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 15px rgba(0, 128, 128, 0.1), inset 0 0 30px rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s ease !important;
}
.group.relative.overflow-hidden.rounded-2xl:hover,
.group.relative.overflow-hidden.rounded-xl:hover {
  border-color: rgba(129, 216, 208, 0.7) !important;
  box-shadow: 0 8px 30px rgba(0, 128, 128, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-3px) !important;
}

/* ============================================
   毛毡风格 - 搜索框和输入框
   ============================================ */
input[type="text"],
input[type="search"],
input[placeholder] {
  border: 2px dashed rgba(129, 216, 208, 0.5) !important;
  border-radius: 25px !important;
  background: rgba(255, 255, 255, 0.85) !important;
  padding: 10px 20px !important;
  font-family: 'Quicksand', sans-serif !important;
  transition: all 0.3s ease !important;
}
input[type="text"]:focus,
input[type="search"]:focus,
input[placeholder]:focus {
  border-color: rgba(129, 216, 208, 0.8) !important;
  box-shadow: 0 0 15px rgba(129, 216, 208, 0.3) !important;
  outline: none !important;
}

/* ============================================
   毛毡风格 - 筛选按钮和标签
   ============================================ */
button[class*="rounded-full"],
button[class*="rounded-lg"] {
  border: 2px dashed rgba(129, 216, 208, 0.3) !important;
  border-radius: 20px !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}
button[class*="rounded-full"]:hover,
button[class*="rounded-lg"]:hover {
  border-color: rgba(129, 216, 208, 0.6) !important;
  box-shadow: 0 3px 12px rgba(0, 128, 128, 0.15) !important;
}

/* 活跃的筛选按钮 */
button[class*="bg-gradient"] {
  background: linear-gradient(135deg, #81d8d0 0%, #6bc5bd 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  color: white !important;
  box-shadow: 0 3px 12px rgba(0, 128, 128, 0.25) !important;
}

/* ============================================
   毛毡风格 - 标签/徽章
   ============================================ */
span[class*="bg-gradient"][class*="rounded"] {
  border: 1.5px dashed rgba(255, 255, 255, 0.4) !important;
  border-radius: 12px !important;
}

/* ============================================
   毛毡风格 - 页面标题
   ============================================ */
h1[class*="font-display"],
h2[class*="font-display"],
.font-display {
  text-shadow: 2px 2px 4px rgba(0, 128, 128, 0.15) !important;
  letter-spacing: 2px !important;
}

/* ============================================
   毛毡风格 - 对话框/模态框
   ============================================ */
[class*="bg-white"][class*="rounded-2xl"],
[class*="bg-white"][class*="rounded-xl"],
div[class*="shadow-xl"][class*="rounded"] {
  border: 3px dashed rgba(129, 216, 208, 0.35) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(0, 128, 128, 0.12) !important;
}

/* ============================================
   毛毡风格 - 盲盒页面
   ============================================ */
/* 盲盒卡片 */
[class*="blindbox"],
[class*="mystery"] {
  border: 3px dashed rgba(129, 216, 208, 0.4) !important;
  border-radius: 20px !important;
}

/* ============================================
   毛毡风格 - 社区页面
   ============================================ */
/* 帖子卡片 */
article,
[class*="post"],
[class*="comment"] {
  border: 2px dashed rgba(129, 216, 208, 0.3) !important;
  border-radius: 16px !important;
  margin-bottom: 12px !important;
}

/* ============================================
   毛毡风格 - 拍卖行页面
   ============================================ */
[class*="auction"],
[class*="bid"] {
  border: 2px dashed rgba(129, 216, 208, 0.4) !important;
  border-radius: 16px !important;
}

/* ============================================
   毛毡风格 - 抓娃娃页面
   ============================================ */
[class*="claw"],
[class*="game"] {
  border: 3px dashed rgba(129, 216, 208, 0.4) !important;
  border-radius: 20px !important;
}

/* ============================================
   毛毡风格 - 角色图鉴页面
   ============================================ */
[class*="character"],
[class*="gallery"] {
  border: 2px dashed rgba(129, 216, 208, 0.35) !important;
  border-radius: 18px !important;
}

/* ============================================
   毛毡风格 - 收藏/爱心按钮
   ============================================ */
button[class*="heart"],
button svg[class*="heart"],
button[aria-label*="favorite"],
.group button.absolute {
  transition: all 0.3s ease !important;
}
.group button.absolute:hover {
  transform: scale(1.2) !important;
}

/* ============================================
   毛毡风格 - 评分星星区域
   ============================================ */
[class*="star"],
[class*="rating"] {
  letter-spacing: 1px !important;
}

/* ============================================
   毛毡风格 - 滚动条
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(129, 216, 208, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #81d8d0, #6bc5bd);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6bc5bd, #5ab5ad);
}

/* ============================================
   毛毡风格 - 页面背景纹理叠加
   ============================================ */
#root::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2381d8d0' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   毛毡风格 - 缝线装饰动画
   ============================================ */
@keyframes felt-stitch-glow {
  0%, 100% { border-color: rgba(129, 216, 208, 0.3); }
  50% { border-color: rgba(129, 216, 208, 0.6); }
}

/* 主要区域分隔线 */
section + section {
  border-top: 3px dashed rgba(129, 216, 208, 0.15) !important;
}

/* ============================================
   毛毡风格 - 按钮悬停效果
   ============================================ */
a[class*="bg-gradient"],
button[class*="bg-gradient"] {
  position: relative !important;
  overflow: hidden !important;
}
a[class*="bg-gradient"]::after,
button[class*="bg-gradient"]::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
a[class*="bg-gradient"]:hover::after,
button[class*="bg-gradient"]:hover::after {
  opacity: 1;
}

/* ============================================
   毛毡风格 - 图片圆角和阴影
   ============================================ */
.group img,
a img {
  border-radius: 12px !important;
  transition: transform 0.4s ease !important;
}
.group:hover img {
  transform: scale(1.03) !important;
}

/* ============================================
   毛毡风格 - 价格标签
   ============================================ */
[class*="text-pink"],
[class*="text-rose"] {
  font-weight: 700 !important;
}

/* ============================================
   响应式调整
   ============================================ */
@media (max-width: 768px) {
  nav.fixed {
    background: linear-gradient(135deg, rgba(129, 216, 208, 0.97) 0%, rgba(100, 200, 195, 0.95) 100%) !important;
  }
  
  .group.relative.overflow-hidden.rounded-2xl,
  .group.relative.overflow-hidden.rounded-xl {
    border-width: 2px !important;
  }
}
