body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  scroll-behavior: smooth;
  background-color: #f9f9f9ff;
}

.product-hover-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.product-hover-text {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.product-hover-container:hover .product-hover-text {
  transform: translateY(-2px);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-gradient-hover {
  background: linear-gradient(to right, #1a202c, #2d3748);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: #1a202c;
  transition: all 0.5s ease;
  display: inline-block;
}

.text-gradient-hover:hover {
  background-position: right center;
  color: transparent;
  animation: textGlow 1.5s ease-in-out infinite alternate;
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  }
  100% {
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.2), 0 0 25px rgba(0, 0, 0, 0.1);
  }
}

.pulse-text {
  transition: transform 0.3s ease;
}

.pulse-text:hover {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

#navbar,
body {
  /* min-width: 1120px; */
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .logo-text {
  color: #1a202c;
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(100, 100);
    opacity: 0;
  }
}

.btn-primary:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}

.img-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.product-card {
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-card .product-image {
  transition: transform 0.5s ease;
}

.news-card {
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.responsive-img {
  max-width: 100%;
  height: auto;
}

.load-more-btn {
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.6s;
}

.load-more-btn:hover::before {
  left: 100%;
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #e53e3e, #dd6b20);
}

.card-hover-shadow:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.counter {
  counter-reset: count 0;
  animation: count 2s forwards ease-out;
}

@keyframes count {
  to {
    counter-reset: count var(--target);
  }
}

.counter::after {
  content: counter(count);
}

.nav-item {
  position: relative;
}

.nav-item::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #e53e3e;
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

.loader {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #ffffff;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #4a5568;
}

.breadcrumb-item:not(:last-child)::after {
  content: ">";
  margin: 0 0.5rem;
  color: #a0aec0;
}

.divider {
  height: 1px;
  background-color: #e2e8f0;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #1a202c;
  color: #ffffff;
  text-align: center;
  border-radius: 0.375rem;
  padding: 0.375rem 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.75rem;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1a202c transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
.detail-description ul {
  background-color: #fafafa;
  padding: 8px;
}
.detail-description ul li {
  margin-bottom: 0.5rem;
  line-height: 2;
  border-bottom: 1px solid #e5e5e562;
}

.index-category-list {
  background-color: #f5f5f5;
}

.index-category-list:nth-child(2n) {
  background-color: oklch(98.5% 0.002 247.839);
}
