/* ============================================
   AURELIANBGD 2026 UI - 极简线条图标 & 3D空间感
   彻底重构：线条图标 + 空间感布局 + 移动端适配
   ============================================ */

/* ===== 1. 极简线条图标系统 ===== */
/* 将所有实心图标改为线条风格 */

#site-header i,
#site-footer i,
nav i,
button i {
  /* 不再强制 font-weight，由 FontAwesome 自身类如 fas/far 控制 */
}

/* Header 图标 - 线条风格 */
#site-header .fa-home::before { content: "\f015"; } /* far home */
#site-header .fa-store::before { content: "\f0f8"; } /* far building */
#site-header .fa-user-circle::before { content: "\f2bd"; } /* far user-circle */
#site-header .fa-headset::before { content: "\f590"; } /* far headset */
#site-header .fa-file-contract::before { content: "\f15b"; } /* far file */
#site-header .fa-shield-alt::before { content: "\f3ed"; } /* far shield */

/* 导航图标 - 线条 */
.nav-link i,
nav a i {
  opacity: 0.8;
}

/* 按钮图标 - 线条 */
.btn i,
button i {
}

/* 购物车图标 */
.fa-shopping-bag::before { content: "\f290"; } /* far shopping-bag */
.fa-shopping-cart::before { content: "\f07a"; } /* far cart */

/* 心愿图标 */
.fa-heart::before { content: "\f004"; } /* far heart */
.fa-solid.fa-heart { font-weight: 900 !important; }

/* 用户图标 */
.fa-user::before { content: "\f007"; } /* far user */

/* 搜索图标 */
.fa-search::before { content: "\f002"; } /* far search */

/* 菜单图标 */
.fa-bars::before { content: "\f0c9"; } /* far bars */
.fa-times::before { content: "\f00d"; } /* far times */

/* ===== 2. 3D 空间感 Header - 晶体化毛玻璃 ===== */
#site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.85) !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.08) !important;
  box-shadow: 0 4px 30px rgba(0, 136, 255, 0.06) !important;
  transition: all 0.3s ease !important;
}

/* Header 滚动后效果 */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 40px rgba(0, 136, 255, 0.1) !important;
}

/* Top Info Bar - 淡化处理 */
#site-header .bg-gradient-to-r {
  background: linear-gradient(90deg, rgba(0, 136, 255, 0.08) 0%, rgba(0, 68, 204, 0.08) 100%) !important;
  color: #1A2B50 !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.15em !important;
  padding: 0.5rem !important;
}

/* 移除深色背景 */
#site-header > div:first-child,
#site-header .bg-primary,
#site-header .bg-\[\#003D80\],
#site-header header,
#site-header .bg-gradient-to-b {
  background: transparent !important;
  box-shadow: none !important;
}

/* ===== 3. Header 文字颜色 - 深蓝色高对比度 ===== */
#site-header a,
#site-header span,
#site-header div,
#site-header li,
#site-header p {
  color: #1A2B50 !important;
}

#site-header .text-white,
#site-header .text-\[\#xxx\],
#site-header [class*="text-white"] {
  color: #1A2B50 !important;
}

/* 链接 hover */
#site-header a:hover,
#site-header a:focus {
  color: #0088FF !important;
}

/* 图标颜色 */
#site-header i,
#site-header .fa- {
  color: #64748B !important;
  transition: all 0.2s ease !important;
}

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

/* Logo */
#site-header .logo,
#site-header img[src*="logo"] {
  filter: drop-shadow(0 2px 4px rgba(0, 136, 255, 0.1));
}

/* ===== 4. Header 按钮 - 增强点击反馈 ===== */
#site-header button,
#site-header a {
  transition: all 0.2s ease !important;
  border-radius: 12px !important;
}

#site-header button:hover,
#site-header a:hover {
  background: rgba(0, 136, 255, 0.08) !important;
  transform: translateY(-1px) !important;
}

#site-header button:active {
  transform: translateY(0) scale(0.98) !important;
  background: rgba(0, 136, 255, 0.12) !important;
}

/* 购物车/心愿徽章 */
#site-header #header-cart,
#site-header #header-wishlist,
#site-header [class*="badge"] {
  background: linear-gradient(135deg, #0088FF 0%, #0044CC 100%) !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 136, 255, 0.3) !important;
}

/* ===== 5. 3D 空间感 Footer - 明亮设计 ===== */
#site-footer,
footer,
.site-footer {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  border-top: 1px solid rgba(0, 136, 255, 0.06) !important;
  padding: 4rem 0 2rem !important;
  position: relative;
}

/* Footer 装饰线 */
#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,
#site-footer [class*="title"] {
  color: #1A2B50 !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
}

/* Footer 链接 - 高对比度 */
#site-footer a,
#site-footer li a,
#site-footer [class*="link"] {
  color: #64748B !important;
  font-size: 0.875rem !important;
  padding: 0.5rem 0 !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}

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

/* Footer 描述文字 */
#site-footer p,
#site-footer .text-white\/70 {
  color: #64748B !important;
  line-height: 1.7 !important;
}

/* Footer 联系信息 */
#site-footer .text-white\/60,
#site-footer .text-\[xxx\/60\] {
  color: #64748B !important;
}

#site-footer .text-white\/60:hover,
#site-footer a:hover .text-white\/60 {
  color: #0088FF !important;
}

/* Footer 图标 */
#site-footer .fa-location-dot::before,
#site-footer .fa-mobile-screen::before,
#site-footer .fa-paper-plane::before {
  color: #0088FF !important;
}

#site-footer .w-8.h-8 {
  background: rgba(0, 136, 255, 0.08) !important;
  border: 1px solid rgba(0, 136, 255, 0.1) !important;
  border-radius: 10px !important;
}

/* ===== 6. 导航菜单 - 极简线条 + 悬浮效果 ===== */
#site-header nav a {
  color: #64748B !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 0.625rem 1rem !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
  position: relative !important;
}

#site-header nav a:hover {
  color: #0088FF !important;
  background: rgba(0, 136, 255, 0.06) !important;
}

#site-header nav a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 4px !important;
  left: 50% !important;
  width: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg, #00C2FF, #0088FF) !important;
  transition: all 0.2s ease !important;
  transform: translateX(-50%) !important;
  border-radius: 1px !important;
}

#site-header nav a:hover::after {
  width: 20px !important;
}

/* ===== 7. 产品卡片 - 晶体化 + 悬浮阴影 ===== */
.product-card,
.shop-product-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.95) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 136, 255, 0.08) !important;
  border-radius: 24px !important;
  box-shadow:
    0 4px 12px rgba(0, 136, 255, 0.04),
    0 8px 24px rgba(0, 136, 255, 0.04),
    0 0 0 1px rgba(255,255,255,0.5) inset !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
  position: relative;
}

.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;
  z-index: 10 !important;
}

.product-card:hover,
.shop-product-card:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow:
    0 12px 32px rgba(0, 136, 255, 0.1),
    0 24px 48px rgba(0, 136, 255, 0.06),
    0 0 40px rgba(0, 194, 255, 0.12) !important;
  border-color: rgba(0, 136, 255, 0.15) !important;
}

.shop-product-card_body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 1.25rem !important;
}

.shop-product-card_title {
  min-height: 2.6em !important; /* Force space for 2 lines */
  margin-bottom: 0.5rem !important;
  font-size: 0.9rem !important;
  line-height: 1.3 !important;
  color: #1A2B50 !important;
  font-weight: 600 !important;
}

.shop-product-card_price-section {
  min-height: 2rem !important; /* Stability for price area */
  margin-top: auto !important;
  display: flex !important;
  align-items: center !important;
}

.shop-product-card_price-placeholder {
  display: inline-block !important;
  height: 1rem !important;
  width: 1rem !important;
}

/* Mobile Product Card Optimizations */
@media (max-width: 640px) {
  .shop-product-card_body {
    padding: 1rem !important;
  }
  
  .shop-product-card_title {
    font-size: 0.8rem !important;
    min-height: 2.6em !important;
  }
  
  .shop-product-card_cta {
    padding: 0.6rem !important;
    border-radius: 12px !important;
  }
}

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

/* ===== 8. 产品图片 - 透明背景感 ===== */
.product-card .product-card-image,
.product-card [class*="image"] {
  background: transparent !important;
  padding: 1.5rem !important;
}

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

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

/* ===== 9. 产品卡片按钮 - 胶囊渐变 ===== */
.product-card button,
.shop-product-card_cta,
.product-card [class*="cta"],
.group.relative button,
.btn-primary,
button[class*="btn"] {
  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.6875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.25) !important;
  transition: all 0.2s ease !important;
}

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

.product-card button:active,
.btn-primary:active {
  transform: translateY(0) !important;
}

/* ===== 10. 筛选按钮 - 毛玻璃 ===== */
.filter-btn,
.filter-button,
[class*="filter-btn"] {
  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: 9999px !important;
  color: #64748B !important;
  padding: 0.625rem 1.25rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

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

.filter-btn.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;
}

/* ===== 11. 输入框 - 毛玻璃 ===== */
input,
textarea,
select,
.glass-input,
.input {
  background: rgba(255, 255, 255, 0.85) !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.2s ease !important;
}

input:focus,
textarea:focus,
select: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;
}

input::placeholder,
textarea::placeholder {
  color: #94A3B8 !important;
}

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

/* ===== 13. 标签 Badge ===== */
.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;
}

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

[data-wish]:hover,
.wishlist-btn: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.25) !important;
}

[data-wish] i {
  color: #94A3B8 !important;
}

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

/* ===== 15. 分类卡片 ===== */
.category-card,
.category-item,
.category-icon-box {
  background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.95) 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.2s ease !important;
}

.category-card:hover,
.category-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0, 136, 255, 0.08) !important;
  border-color: rgba(0, 136, 255, 0.12) !important;
}

/* ===== 16. 移动端响应式 - 关键修复 ===== */
@media (max-width: 1024px) {
  /* 防止内容溢出 */
  * {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }

  html, body {
    overflow-x: hidden !important;
  }

  /* 移动端容器 */
  .container-custom,
  .container,
  .container mx-auto {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
  }

  /* 产品卡片移动端 */
  .product-card,
  .group.relative {
    border-radius: 16px !important;
  }

  .product-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
  }

  /* 按钮移动端 */
  .btn-capsule,
  .btn-primary,
  button[class*="btn"] {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.625rem !important;
  }

  /* 导航移动端 - 修复菜单显示问题 */
  #drawer {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    display: none; /* 移除 !important，允许 JS 切换 */
  }

  #drawer[style*="block"] {
    display: block !important;
  }

  #drawer a {
    color: #1A2B50 !important;
    padding: 1rem !important;
    border-radius: 12px !important;
  }

  #drawer a:hover {
    background: rgba(0, 136, 255, 0.08) !important;
    color: #0088FF !important;
  }
}

@media (max-width: 640px) {
  /* 超小屏幕 */
  .product-card {
    border-radius: 12px !important;
  }

  /* 移除模糊效果以提高性能 */
  #site-header {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  /* 搜索栏移动端 */
  #header-search-input {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
  }
}

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

@keyframes floatSmooth {
  0%, 100% { transform: translateY(0px); }
  25% { transform: translateY(-6px); }
  50% { transform: translateY(-12px); }
  75% { transform: translateY(-6px); }
}

/* 悬停发光 */
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(0, 136, 255, 0.2) !important;
}

/* ===== 18. 滚动条美化 ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 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);
}

/* ===== 19. 选择文本颜色 ===== */
::selection {
  background: rgba(0, 136, 255, 0.2);
  color: #1A2B50;
}

/* ===== 20. 减少动画 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 21. 打印样式 ===== */
@media print {
  #site-header,
  #site-footer,
  nav,
  button {
    display: none !important;
  }
}