/* ============================================
   AURELIANBGD 3.0 - COMPONENT OVERRIDES
   颠覆性 UI 升级 - 晶体化/空间感
   ============================================ */

/* ===== 页面背景 ===== */
body {
  background: #FFFFFF !important;
}

/* ===== Header - 毛玻璃效果 ===== */
#site-header {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(0, 136, 255, 0.06) !important;
  box-shadow: 0 2px 20px rgba(0, 136, 255, 0.04) !important;
}

/* Header内部元素 - 去除深色背景 */
#site-header .bg-primary,
#site-header [class*="bg-primary"],
#site-header .bg-gradient-to-r,
#site-header header,
#site-header nav,
#site-header .bg-\[,
#site-header [style*="background"] {
  background: transparent !important;
}

/* Header文字颜色 */
#site-header a,
#site-header span,
#site-header div,
#site-header li {
  color: #1A2B50 !important;
}

#site-header a:hover {
  color: #0088FF !important;
}

/* Logo - 渐变文字 */
#site-header .logo,
#site-header [class*="logo"],
#site-header .brand {
  background: linear-gradient(135deg, #0088FF 0%, #0044CC 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ===== Hero Section ===== */
#hero-section,
.hero,
[class*="hero"] {
  background: #FFFFFF !important;
}

/* ===== 产品卡片 - 晶体化 ===== */
.product-card,
.shop-product-card,
.group.relative,
[data-animate-card] {
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.92) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 136, 255, 0.06) !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 20px rgba(0, 136, 255, 0.06), 0 8px 30px rgba(0, 136, 255, 0.04) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card::before,
.shop-product-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, #00C2FF, #0088FF, #0044CC) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.product-card:hover,
.shop-product-card:hover,
.group.relative:hover,
[data-animate-card]:hover {
  transform: translateY(-12px) scale(1.02) !important;
  box-shadow: 0 12px 40px rgba(0, 136, 255, 0.12), 0 24px 50px rgba(0, 136, 255, 0.08), 0 0 40px rgba(0, 194, 255, 0.15) !important;
  border-color: rgba(0, 136, 255, 0.15) !important;
}

.product-card:hover::before,
.shop-product-card:hover::before {
  opacity: 1 !important;
}

/* 产品图片区域 - 透明背景 */
.product-card .product-card-image,
.shop-product-card_image,
.product-card [class*="image"],
.group.relative [class*="image"] {
  background: transparent !important;
  padding: 1.5rem !important;
  overflow: hidden !important;
}

.product-card img,
.shop-product-card img,
.group.relative img {
  filter: drop-shadow(0 4px 12px rgba(0, 136, 255, 0.08)) !important;
  transition: all 0.4s ease !important;
}

.product-card:hover img,
.shop-product-card:hover img,
.group.relative:hover img {
  transform: scale(1.08) !important;
  filter: drop-shadow(0 8px 24px rgba(0, 136, 255, 0.12)) !important;
}

/* 产品卡片按钮 - 胶囊渐变 */
.product-card button,
.shop-product-card_cta,
.product-card [class*="cta"],
.group.relative button {
  background: linear-gradient(135deg, #0EA5E9 0%, #0075FF 50%, #0044CC 100%) !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.25), 0 2px 4px rgba(0, 136, 255, 0.15) !important;
  transition: all 0.3s ease !important;
}

.product-card button:hover,
.shop-product-card_cta:hover,
.group.relative button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(0, 136, 255, 0.35), 0 4px 8px rgba(0, 136, 255, 0.2) !important;
}

/* ===== 商品分类/价格 ===== */
.product-card .price,
.shop-product-card_price,
.product-card-price,
.group.relative [class*="price"] {
  background: linear-gradient(135deg, #0088FF 0%, #0044CC 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 700 !important;
}

.product-card .category,
.shop-product-card_category,
.group-relative [class*="category"] {
  color: #64748B !important;
  font-size: 0.6875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

.product-card .title,
.shop-product-card_title,
.product-card-title,
.group-relative h4,
.group-relative [class*="title"] {
  color: #1A2B50 !important;
  font-weight: 600 !important;
}

/* ===== 标签 Badge ===== */
.product-card .badge,
.shop-product-card_badge,
.product-card_badge {
  background: linear-gradient(135deg, #00C2FF 0%, #0088FF 100%) !important;
  border-radius: 9999px !important;
  padding: 0.25rem 0.75rem !important;
  font-size: 0.625rem !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0, 136, 255, 0.2) !important;
}

/* ===== 购物车/心愿心 ===== */
[data-wish],
.wishlist-btn,
.product-card [data-wish],
button[data-wish] {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(0, 136, 255, 0.1) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0, 136, 255, 0.08) !important;
  transition: all 0.3s ease !important;
}

[data-wish]:hover,
.wishlist-btn:hover,
button[data-wish]:hover {
  background: linear-gradient(135deg, #0088FF 0%, #0044CC 100%) !important;
  border-color: transparent !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.3) !important;
}

[data-wish] i,
.wishlist-btn i {
  color: #64748B !important;
  transition: color 0.3s ease !important;
}

[data-wish]:hover i,
.wishlist-btn:hover i {
  color: white !important;
}

/* ===== 分类图标区 ===== */
.category-section,
#category-icons,
[class*="category"] {
  background: transparent !important;
}

.category-card,
.category-item,
[class*="category-card"] {
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%) !important;
  border: 1px solid rgba(0, 136, 255, 0.06) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.04) !important;
  transition: all 0.3s ease !important;
}

.category-card:hover,
.category-item:hover,
[class*="category-card"]:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 8px 24px rgba(0, 136, 255, 0.1) !important;
  border-color: rgba(0, 136, 255, 0.15) !important;
}

/* ===== 限时折扣区 ===== */
.deal-section,
.sale-section,
[class*="deal"],
[class*="sale"] {
  background: transparent !important;
}

/* ===== Footer - 晶体化/明亮 ===== */
#site-footer,
footer,
.site-footer {
  background: #FFFFFF !important;
  border-top: 1px solid rgba(0, 136, 255, 0.06) !important;
  padding: 4rem 0 2rem !important;
}

#site-footer::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(0, 136, 255, 0.1), transparent) !important;
}

/* Footer 标题 */
#site-footer h3,
#site-footer h4,
#site-footer .footer-title {
  color: #1A2B50 !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 1.25rem !important;
}

/* Footer 链接 */
#site-footer a {
  color: #64748B !important;
  font-size: 0.875rem !important;
  padding: 0.375rem 0 !important;
  transition: all 0.25s ease !important;
}

#site-footer a:hover {
  color: #0088FF !important;
  transform: translateX(4px) !important;
}

/* Footer 底部 */
#site-footer .footer-bottom,
footer .bottom,
[class*="footer-bottom"] {
  border-top: 1px solid rgba(0, 136, 255, 0.04) !important;
  padding-top: 1.5rem !important;
  margin-top: 2rem !important;
}

/* ===== 按钮 - 胶囊渐变 ===== */
.btn,
button,
[class*="btn"] {
  border-radius: 9999px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
}

/* Primary Button */
.btn-primary,
.bg-gradient-primary,
[class*="btn-primary"] {
  background: linear-gradient(135deg, #0EA5E9 0%, #0075FF 50%, #0044CC 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.25) !important;
}

.btn-primary:hover,
.bg-gradient-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 136, 255, 0.35) !important;
}

/* Secondary Button */
.btn-secondary,
.btn-outline,
[class*="btn-secondary"] {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 136, 255, 0.15) !important;
  color: #1A2B50 !important;
  box-shadow: 0 2px 8px rgba(0, 136, 255, 0.04) !important;
}

.btn-secondary:hover {
  border-color: rgba(0, 136, 255, 0.3) !important;
  color: #0088FF !important;
  transform: translateY(-2px) !important;
}

/* ===== 输入框 - 毛玻璃 ===== */
input,
textarea,
select,
.glass-input,
.input {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 136, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #1A2B50 !important;
  transition: all 0.25s ease !important;
}

input:focus,
textarea:focus,
select:focus,
.glass-input:focus,
.input:focus {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(0, 136, 255, 0.25) !important;
  box-shadow: 0 0 0 4px rgba(0, 136, 255, 0.06), 0 4px 16px rgba(0, 136, 255, 0.06) !important;
  outline: none !important;
}

/* ===== 筛选按钮 ===== */
.filter-btn,
.filter-button,
[class*="filter"] {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(0, 136, 255, 0.1) !important;
  border-radius: 9999px !important;
  color: #64748B !important;
  padding: 0.625rem 1.25rem !important;
  font-size: 0.8125rem !important;
  transition: all 0.25s ease !important;
}

.filter-btn:hover,
.filter-button:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(0, 136, 255, 0.25) !important;
  color: #0088FF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.1) !important;
}

.filter-btn.active,
.filter-button.active {
  background: linear-gradient(135deg, #0EA5E9 0%, #0075FF 100%) !important;
  border-color: transparent !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.3) !important;
}

/* ===== 表格 ===== */
table,
.table {
  background: transparent !important;
  border-collapse: separate !important;
  border-spacing: 0 0.5rem !important;
}

table th,
.table th {
  background: rgba(0, 136, 255, 0.04) !important;
  color: #1A2B50 !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 1rem !important;
}

table td,
.table td {
  background: rgba(255, 255, 255, 0.9) !important;
  border: none !important;
  padding: 1rem !important;
  box-shadow: 0 2px 8px rgba(0, 136, 255, 0.04) !important;
}

/* ===== Modal - 毛玻璃 ===== */
.modal,
[class*="modal"],
.fixed.inset-0 {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.modal-content,
[class*="modal-content"] {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(0, 136, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 136, 255, 0.15) !important;
}

/* ===== Toast 通知 ===== */
.toast,
[class*="toast"] {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 136, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 136, 255, 0.1) !important;
}

/* ===== 星星评分 ===== */
.fa-star,
.rating-star,
.star {
  color: #0088FF !important;
}

.rating,
[class*="rating"] {
  color: #0088FF !important;
}

/* ===== 分隔线 ===== */
.divider,
hr,
[class*="divider"] {
  background: linear-gradient(90deg, transparent, rgba(0, 136, 255, 0.1), transparent) !important;
  border: none !important;
  height: 1px !important;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
  .product-card:hover,
  .group.relative:hover {
    transform: translateY(-6px) scale(1.01) !important;
  }

  .btn-capsule {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.75rem !important;
  }

  .trust-badge-3d {
    padding: 0.5rem 1rem !important;
  }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 136, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 136, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 136, 255, 0.25);
}

/* ===== 动画增强 ===== */
.floating-element {
  animation: floatSmooth 8s ease-in-out infinite;
}

@keyframes floatSmooth {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(1deg); }
  50% { transform: translateY(-16px) rotate(0deg); }
  75% { transform: translateY(-8px) rotate(-1deg); }
}