/* Home页面特定样式 */
:root {
  --neutral: #F9F9F9;
}

body {
  overflow-x: hidden;
}

.container {
  padding: 0 66.5px;
}

/* HeroSection 样式 */
#home {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#home .bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#home .bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#home .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

#home h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: bold;
  color: var(--white);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-in-out;
}

#home p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 768px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1.2s ease-in-out;
}

#home .hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 1.4s ease-in-out;
}

@media (min-width: 768px) {
  #home .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

#home .hero-buttons a {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

#home .hero-buttons .primary-btn {
  background-color: var(--accent);
  color: var(--white);
}

#home .hero-buttons .primary-btn:hover {
  transform: scale(1.05);
  background-color: rgba(233, 69, 96, 0.9);
}

#home .hero-buttons .secondary-btn {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#home .hero-buttons .secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#home .scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  animation: bounce 2s infinite;
}

#home .scroll-down button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}

#home .scroll-down button:hover {
  color: var(--accent);
}

#home .scroll-down span {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

#home .scroll-down button:hover span {
  transform: scale(1.1);
}

#home .scroll-down i {
  transition: transform 0.3s ease;
}

#home .scroll-down button:hover i {
  transform: translateY(4px);
}

/* PartnersSection 样式 */
#partners {
  padding: 5rem 0;
}

#partners .section-content {
  text-align: center;
  margin-bottom: 4rem;
}

#partners h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
}

#partners .divider {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--accent);
  margin: 0 auto 1.5rem;
}

#partners p {
  color: var(--gray-600);
  max-width: 800px;
  margin: 0 auto;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.partner-card {
  background-color: var(--neutral);
  padding: 1.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8rem;
  transition: box-shadow 0.3s ease;
}

.partner-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.partner-card img {
  max-height: 4rem;
  max-width: 100%;
}

/* 热卖产品样式 */
#hot-products {
  padding: 5rem 0;
  background-color: var(--gray-100);
}

#hot-products .section-content {
  text-align: center;
  margin-bottom: 4rem;
}

#hot-products h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
}

#hot-products .divider {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--accent);
  margin: 0 auto 1.5rem;
}

#hot-products p {
  color: var(--gray-600);
  max-width: 800px;
  margin: 0 auto;
}

.hot-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .hot-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hot-products-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.product-card {
  background-color: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow;
}

.product-card:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.product-image {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform;
}

.product-card:hover .product-image img {
  transform: translate3d(0, 0, 0) scale(1.05);
}

.status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}

.status.hot {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(233, 69, 96, 0.3);
  transform: translate3d(0, 0, 0);
}

.product-info {
  padding: 1rem;
  text-align: center;
}

.product-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-info p {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin: 0;
}

/* 响应式调整 */
@media (max-width: 640px) {
  .hot-products-grid {
    gap: 1rem;
  }

  .product-image {
    height: 120px;
  }

  .product-info {
    padding: 0.75rem;
  }

  .product-info h4 {
    font-size: 0.75rem;
  }

  .product-info p {
    font-size: 0.625rem;
  }
}

/* Back to top button 样式 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(to bottom right, var(--primary), var(--accent));
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.back-to-top i {
  font-size: 1.125rem;
}

.back-to-top:hover i {
  animation: bounceIcon 1s infinite;
}

.back-to-top svg {
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  transform: rotate(-90deg);
}

.back-to-top svg circle {
  fill: none;
}

.back-to-top svg circle.bg {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2;
}

.back-to-top svg circle.progress {
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 163.28;
  stroke-dashoffset: 163.28;
  transition: stroke-dashoffset 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }

  .back-to-top svg {
    width: 3rem;
    height: 3rem;
  }

  .back-to-top i {
    font-size: 1rem;
  }
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-20px) translateX(-50%);
  }

  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@keyframes bounceIcon {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-4px);
  }

  60% {
    transform: translateY(-2px);
  }
}