:root {
  --primary: #374151;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --bg-color: #f3f4f6;
  --text-color: #1f2937;
  --border-radius: 12px;
  --transition-speed: 300ms;
}
.dtectable{ overflow-x: auto;}
.dtectable table{ width: 100%; border-collapse: collapse; border-spacing: 0;  overflow: hidden;}
.dtectable table td{ padding: 10px; font-size: 16px; border:1px solid #d3dce3 }
.dtectable table tr:nth-of-type(odd) td{ background: #f1f1f1; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  position: relative;
}

/* 确保导航栏 sticky 效果正常工作 */
nav.bg-white.shadow-md.sticky {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: position;
}

/* Tab 切换样式 */
.tab-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn.active {
  color: var(--primary) !important;
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

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

/* 移动端轮播图修复 */
.hero-swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-swiper .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

@media (max-width: 640px) {
  .hero-swiper {
    touch-action: pan-y;
  }

  .hero-section {
    height: 70vh !important;
    min-height: 400px;
    overflow: hidden;
  }

  .hero-section .hero-content {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }

  .hero-section .hero-content h1,
  .hero-section .hero-content h2 {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

  .hero-section .hero-content p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-section img {
    object-fit: cover !important;
  }
  .hero-section .swiper-button-next,
  .hero-section .swiper-button-prev {
    width: 36px !important;
    height: 36px !important;
  }

  .hero-section .swiper-button-next::after,
  .hero-section .swiper-button-prev::after {
    font-size: 14px !important;
  }
}
.head_sns a{width: 1.5rem;height: 1.5rem;}

/* Custom Utilities */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.border-primary { border-color: var(--primary); }

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
}

.btn-primary:hover {
  background-color: #1f2937;
  transform: translateY(-2px);
}

.contact_ysn textarea {
  height: 120px !important;
}
.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
}

.btn-secondary:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}
.areatextClass::-webkit-input-placeholder { color: red!important;}
.aligncenter {
  display: block !important;
  margin: 0 auto!important;
}
.wpcf7 fieldset{display:none;}
.wpcf7-response-output,.wpcf7-validation-errors {display: none !important;}
span.wpcf7-not-valid-tip {display: none;}
.screen-reader-response {display: none !important;}
/* View Toggle Button Styles */
#grid-view-btn,
#list-view-btn {
  transition: all 0.2s ease;
}
.list-view a{width: 50%;}

#grid-view-btn.active,
#list-view-btn.active {
  background: var(--primary);
  color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1f2937;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--bg-color);
  color: var(--accent);
}

/* Mobile Menu Styles */
#mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid #e5e7eb;
  z-index: 60;
}

#mobile-menu:not(.hidden) {
  display: flex !important;
  flex-direction: column;
}

#mobile-menu .dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

#mobile-menu .dropdown-menu.hidden {
  display: none !important;
}

#mobile-menu-btn {
  cursor: pointer;
  z-index: 70;
  position: relative;
}

/* Mobile Dropdown */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
  }
}

/* Product Sidebar Category Styles */
aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

aside ul li {
  text-align: left;
}

aside ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  text-align: left;
  width: 100%;
}

aside ul li a i {
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Floating Contact Buttons */
.floating-contact {
  position: fixed;
  right: 1rem;
  bottom: 6rem;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-contact a {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.floating-contact a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  z-index: 50;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.mobile-bottom-nav a i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
  color: var(--accent);
}

/* Responsive Display for Floating Elements */
@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
  
  .floating-contact {
    right: 2rem;
    bottom: 6rem;
  }
}

@media (max-width: 767px) {
  .floating-contact {
    display: none;
  }
  
  /* Make sure back-to-top button is above mobile nav */
  #back-to-top {
    bottom: 5rem !important;
  }

  /* 移动端防止水平滚动，但保留粘性定位功能 */
  html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  body {
    overflow-x: visible;
    width: 100%;
  }

  /* 移动端底部导航修复 */
  .mobile-bottom-nav {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .mobile-bottom-nav * {
    box-sizing: border-box;
  }

  .mobile-bottom-nav a {
    white-space: nowrap;
  }

  /* 移动端导航栏使用固定定位确保不滑动 */
  nav.bg-white.shadow-md.sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
  }

  /* 为了避免导航栏遮挡内容，在移动端给 body 顶部添加 padding */
  body {
    padding-top: 72px;
  }

  /* 确保移动端导航栏内部容器正常布局 */
  nav.bg-white.shadow-md.sticky .container {
    max-width: 100%;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
}

/* Product Gallery Thumbnails */
.product-thumb-swiper .swiper-slide {
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.3s ease;
  overflow: hidden;
  height: 80px;
}

.product-thumb-swiper .swiper-slide:hover {
  opacity: 0.8;
}

.product-thumb-swiper .swiper-slide.thumb-active {
  border-color: var(--accent) !important;
  opacity: 1 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#product-grid {
  transition: all 0.3s ease;
}

/* Grid View Product Card Button */
#product-grid:not(.list-view) .product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  width: 100%;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-top: 1rem;
}

#product-grid:not(.list-view) .product-btn:hover {
  background: var(--primary);
  color: white;
}

#product-grid:not(.list-view) .product-btn i {
  font-size: 0.875rem;
}

#product-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#product-grid.list-view .product-item {
  flex-direction: row;
  border-radius: 0.75rem;
}

#product-grid.list-view .product-image {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 0.75rem 0 0 0.75rem;
}

#product-grid.list-view .product-content {
  padding: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

#product-grid.list-view .product-info {
  flex-grow: 1;
}

#product-grid.list-view .product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

#product-grid.list-view .product-btn:hover {
  background: var(--primary);
  color: white;
}

#product-grid.list-view .product-btn i {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  #product-grid.list-view .product-item {
    flex-direction: column;
  }

  #product-grid.list-view .product-image {
    width: 100%;
    height: 200px;
    border-radius: 0.75rem 0.75rem 0 0;
  }

  #product-grid.list-view .product-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  #product-grid.list-view .product-info {
    margin-bottom: 0.5rem;
  }

  #product-grid.list-view .product-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Swiper Navigation Button Responsive */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  width: clamp(38px, 4.2vw, 52px) !important;
  height: clamp(38px, 4.2vw, 52px) !important;
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  font-size: clamp(14px, 1.6vw, 18px) !important;
  font-weight: bold;
  color: var(--primary);
}

.hero-section {
  position: relative;
}

.hero-section .hero-content {
  position: relative;
  z-index: 10;
}


