/* Alibaba-PuHuiTi Font Definitions */
@font-face {
  font-family: 'Alibaba-PuHuiTi';
  src: url('Alibaba-PuHuiTi/Alibaba-PuHuiTi-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Alibaba-PuHuiTi';
  src: url('Alibaba-PuHuiTi/Alibaba-PuHuiTi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Alibaba-PuHuiTi';
  src: url('Alibaba-PuHuiTi/Alibaba-PuHuiTi-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Alibaba-PuHuiTi';
  src: url('Alibaba-PuHuiTi/Alibaba-PuHuiTi-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Alibaba-PuHuiTi';
  src: url('Alibaba-PuHuiTi/Alibaba-PuHuiTi-Heavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

/* 基础样式与布局（全站通用） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Alibaba-PuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #111827;
  color: #ffffff;
}

.btn-primary:hover {
  background: #020617;
}

.btn-ghost {
  background: transparent;
  color: #111827;
  border-color: #d1d5db;
}

.btn-ghost:hover {
  background: #f3f4f6;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
}

.category-section .section-title {
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 32px;
}

/* 头部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-weight: 700;
  font-size: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: #111827;
  border-radius: 999px;
}



.main-nav {
  flex-grow: 1;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.main-nav > ul > li > a {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
}

.main-nav > ul > li > a:hover {
  color: #1DA1F2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.header-cart {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

.header-cart:hover {
  background: #f3f4f6;
}

/* Header Social Icons */
.header-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-socials a {
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header .header-socials a img {
  width: 20px;
  height: 20px;
  transition: opacity 0.2s ease;
}

.header-socials a:hover {
  opacity: 0.8;
}

/* 下拉菜单 */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 220px;
  padding: 10px 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: all 0.15s ease;
  z-index: 30;
}

.submenu li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #4b5563;
  white-space: nowrap;
}

.submenu li a:hover {
  background: #f3f4f6;
  color: #111827;
}

.has-submenu:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* 全宽下拉菜单 (Megamenu) */
.main-nav {
  position: static;
}

.has-megamenu {
  position: static;
}

.megamenu {
  position: fixed;
  top: 57px;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: 0s;
  z-index: 101;
  padding: 32px 0;
}

.megamenu-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 48px;
}

.megamenu-column {
  flex: 1;
}

.megamenu-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #111827;
}

.megamenu-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.megamenu-column ul li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  clear: both;
  float: none;
}

.megamenu-column ul li::after {
  content: "";
  display: block;
  clear: both;
}

.megamenu-column ul li a {
  display: block;
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  color: #4b5563;
  transition: color 0.15s ease, background-color 0.15s ease;
  line-height: 1.6;
  text-decoration: none;
  box-sizing: border-box;
  clear: both;
  white-space: normal;
  word-wrap: break-word;
}

.megamenu-column ul li a:hover {
  color: #111827;
  background-color: #f9fafb;
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
  border-radius: 4px;
}

.megamenu-column ul li a.view-more {
  font-weight: 600;
  color: #2563eb;
  margin-top: 8px;
  padding-top: 14px;
  /* border-top: 1px solid #e5e7eb; */
}

.megamenu-column ul li a.view-more::after {
  content: ' >';
  display: inline-block;
  margin-left: 4px;
}

.megamenu-column ul li a.view-more:hover {
  color: #1d4ed8;
  background-color: #eff6ff;
}

.has-megamenu:hover .megamenu,
.has-megamenu .megamenu:hover,
.has-megamenu.megamenu-hover .megamenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* 确保鼠标从导航项移动到下拉菜单时不会断开 */
.has-megamenu {
  position: relative;
}

.has-megamenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
  z-index: 102;
  pointer-events: none;
}

/* Hero 区 - 轮播图 */
.hero {
  padding: 40px 0 32px;
  background: linear-gradient(135deg, #f9fafb, #eff6ff);
  position: relative;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
}

.hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  position: relative;
}

.hero-slide.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-content {
  padding-left: 40px;
}

.hero-media {
  transform: translateX(-20px);
}

.hero-content h1 {
  font-size: 32px;
  margin: 0 0 12px;
}

.hero-content p {
  margin: 0 0 24px;
  font-size: 15px;
  color: #4b5563;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 14px;
  background: #ffffff;
}

.hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* 轮播控制按钮 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.carousel-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-indicators .indicator.active {
  background: #ffffff;
  width: 32px;
  border-radius: 6px;
}

/* 四大卖点 */
.features-grid {
  padding: 32px 0 24px;
}

.features-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 16px;
  border-radius: 16px;
  background: #f9fafb;
}

.feature-card h2 {
  font-size: 16px;
  margin: 0 0 6px;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* 分类入口 */
.category-section {
  padding: 32px 0;
  border-top: 1px solid #e5e7eb;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  padding: 16px;
  border-radius: 18px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.category-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px dashed #d1d5db;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  background: #ffffff;
  position: relative;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}

.category-card h3 {
  font-size: 16px;
  margin: 0;
}

.category-card p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* 产品列表 */
.products-section {
  padding: 32px 0;
  border-top: 1px solid #e5e7eb;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-card h3 {
  margin: 0;
  font-size: 16px;
}

.product-price {
  margin: 0;
  font-size: 14px;
  color: #111827;
}

/* 客户评价轮播 */
.testimonials {
  padding: 48px 0;
  border-top: 1px solid #e5e7eb;
  background-color: #ffffff;
}

.testimonials .section-title {
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 48px;
}

.testimonial-carousel-container {
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-carousel {
  display: flex; /* Use flexbox for horizontal layout */
  transition: transform 0.5s ease-in-out; /* Smooth transition for sliding */
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 40px;
  text-align: center;
  flex-shrink: 0;
  opacity: 1; /* Slides are visible by default, transform handles showing/hiding */
}

.testimonial-quote {
  font-size: 50px;
  font-family: 'Georgia', serif;
  color: #d1d5db;
  margin: 0 auto 10px;
  line-height: 1;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  max-width: 680px;
  margin: 0 auto 24px;
}

.testimonial-author {
  font-size: 14px;
  font-style: normal;
  color: #6b7280;
}

.testimonial-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.testimonial-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-indicator.active {
  background-color: #374151;
  width: 10px;
  height: 10px;
}

/* Newsletter */
.newsletter {
  padding: 32px 0 40px;
  border-top: 1px solid #e5e7eb;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.newsletter-content h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.newsletter-content p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #111827;
  color: #e5e7eb;
  padding-top: 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 20px;
}

.footer-column h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.footer-column a {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.footer-column a:hover {
  color: #f9fafb;
}

.footer-column p {
  margin: 0 0 4px;
  font-size: 13px;
  color: #9ca3af;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.contact-item img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.footer-socials a img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-socials a:hover img {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid #1f2933;
  padding: 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #f9fafb;
}

/* 通用内容页面(子页面)布局 */
.page-hero {
  padding: 32px 0 24px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
}

.page-hero p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.page-content {
  padding: 24px 0 40px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.5fr);
  gap: 24px;
}

.page-main,
.page-sidebar {
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.page-main h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.page-main p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #4b5563;
}

.page-section {
  margin-bottom: 20px;
}

.page-sidebar h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.page-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.page-sidebar li + li {
  margin-top: 4px;
}

.page-sidebar a {
  color: #4b5563;
}

.page-sidebar a:hover {
  color: #2563eb;
}

/* 响应式 */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .carousel-prev {
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .carousel-next {
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .carousel-indicators {
    bottom: -15px;
  }

  .features-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .products-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 56px 0 auto 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px 16px;
    gap: 8px;
  }

  .has-submenu:hover .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .submenu {
    position: static;
    box-shadow: none;
    border-radius: 8px;
    margin-top: 4px;
    border: 1px solid #e5e7eb;
  }

  .megamenu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 12px 0;
    margin-top: 4px;
  }

  .megamenu-inner {
    padding: 0 16px;
    flex-direction: column;
    gap: 16px;
  }

  .has-megamenu:hover .megamenu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .header-actions {
    display: none;
  }

  .features-row,
  .category-grid,
  .products-grid,
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 分类筛选页面（phones） */
.product-category-page {
  padding: 32px 0 40px;
  border-top: 1px solid #e5e7eb;
}

.product-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.filter-sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-sidebar h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.filter-group h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.filter-group label {
  display: block;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 4px;
}

.filter-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-range input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.filter-actions .btn {
  flex: 1;
}

.product-listing {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.toolbar-sort select {
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
}

.product-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1080px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 品牌分区标题 */
.product-brand-section {
  margin-bottom: 32px;
}

.brand-title {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
  color: #111827;
}

.view-more-container {
  text-align: center;
  margin-top: 24px;
}

@media (max-width: 720px) {
  .product-list-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Category Showcase Section (for earphones page) */
.category-showcase {
    padding: 40px 0;
}

.category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.showcase-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.showcase-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-icon img {
    max-width: 100%;
    max-height: 100%;
}

.showcase-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px;
}

@media (max-width: 960px) {
    .category-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Detail Page */
.product-detail {
  padding: 40px 0;
}

.detail-gallery .detail-main-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.detail-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}

.detail-price {
  font-size: 20px;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 24px;
}

.detail-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}

.key-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 14px;
  color: #4b5563;
}

.key-features li {
  margin-bottom: 8px;
}

.availability-note {
  background-color: #dcfce7;
  color: #166534;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 24px;
}

.variants {
  margin-bottom: 24px;
}

.variants label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.variant-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 8px;
  font-size: 14px;
}

.variant-btn:hover {
  background: #f3f4f6;
}

.quantity-add {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-input {
  width: 60px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
}

.add-cart-btn {
  flex: 1;
  border-radius: 8px;
  padding: 12px;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.product-detail-upper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.main-image-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Limit max width for better display */
    margin: 0 auto; /* Center the container */
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: #fff; /* Add white background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Add subtle shadow */
    aspect-ratio: 1 / 1; /* Maintain 1:1 aspect ratio */
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #374151;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-arrow:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.gallery-arrow.prev {
    left: 16px;
}

.gallery-arrow.next {
    right: 16px;
}

.detail-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-main-img.active {
    opacity: 1;
}

/* Updated thumbnail styles to match new design */
.thumbnail-bar {
    display: flex;
    justify-content: center; /* Center the thumbnails */
    gap: 16px; /* Increase gap between thumbnails */
    margin-top: 24px;
}

.thumbnail-img {
    width: 60px; /* Adjust size */
    height: 60px;
    object-fit: cover; /* Use cover to fill the space */
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent; /* Use transparent border to prevent layout shift */
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-img.active, .thumbnail-img:hover {
    opacity: 1;
    border-color: #3b82f6; /* Use a blue border for active/hover */
    transform: scale(1.05);
}

.product-detail-lower {
    margin-top: 48px;
    border-top: 1px solid #e5e7eb;
    padding-top: 40px;
}

.detail-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 0 4px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #6b7280;
    position: relative;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #111827;
    font-weight: 600;
    border-bottom-color: #111827;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.specs-table-full {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.specs-table-full tr:nth-child(odd) {
    background-color: #f9fafb;
}

.specs-table-full td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.specs-table-full td:first-child {
    font-weight: 600;
    color: #374151;
}

/* About Us Page */
.about-section {
  padding: 40px 0;
}

.about-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 auto 24px;
  position: relative;
  padding-bottom: 12px;
}

.about-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #111827;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.about-text h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #4b5563;
  margin: 0 0 16px;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

/* 悬浮操作按钮 */
.floating-action-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* 兼容旧浏览器：使用 margin 作为 gap 的后备 */
  margin: 0;
  padding: 0;
  /* 确保在移动设备上正确显示 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* 防止被其他元素覆盖 */
  pointer-events: none;
}

.floating-action-buttons > * {
  pointer-events: auto;
  /* 为旧浏览器提供 margin 间距 */
  margin-bottom: 12px;
}

.floating-action-buttons > *:last-child {
  margin-bottom: 0;
}

.fab-whatsapp,
.fab-to-top {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0;
}

.fab-whatsapp {
  background-color: transparent;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fab-whatsapp img {
  width: 56px;
  height: 56px;
  filter: none;
  display: block;
  /* 确保 SVG 正确显示 */
  object-fit: contain;
  vertical-align: middle;
  /* 防止图片变形 */
  max-width: 100%;
  max-height: 100%;
}

.fab-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

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

.fab-to-top img {
  width: 24px;
  height: 24px;
  /* 确保 SVG 正确显示 */
  object-fit: contain;
  vertical-align: middle;
  /* 防止图片变形 */
  max-width: 100%;
  max-height: 100%;
}

.fab-whatsapp:hover,
.fab-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fab-whatsapp:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.fab-to-top:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

@media (max-width: 768px) {
  .floating-action-buttons {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  .floating-action-buttons > * {
    margin-bottom: 10px;
  }

  .fab-whatsapp,
  .fab-to-top {
    width: 48px;
    height: 48px;
  }

  .fab-whatsapp img {
    width: 48px;
    height: 48px;
  }

  .fab-to-top img {
    width: 20px;
    height: 20px;
  }
}

