/*
Theme Name: IndustrialFilter
Theme URI: https://www.yisainuo.com/
Author: Yisainuo
Description: Industrial Filter WordPress Theme
Version: 1.0.0
Text Domain: industrialfilter
*/

/* ========================================
   FilterPro – Industrial Filter Website
   Custom CSS (Tailwind CDN supplement)
   ======================================== */

/* CSS Variables */
:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #14b8a6;
  --accent-dark: #0d9488;
  --bg: #ffffff;
  --text: #333333;
  --radius: 8px;
  --transition: 0.3s ease;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft Yahei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  padding-bottom: 56px; /* mobile bottom nav */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* ========== NAVIGATION ========== */
.site-header {
  transition: box-shadow var(--transition), background-color var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ========== HERO BANNER MOBILE (<640px) ========== */
@media (max-width: 639px) {
  /* 移动端缩短 Banner 高度 */
  .hero-swiper {
    height: 60vh !important;
    min-height: 360px !important;
  }
  /* 移动端文字适配 */
  .hero-swiper .swiper-slide h1,
  .hero-swiper .swiper-slide h2 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }
  .hero-swiper .swiper-slide p {
    font-size: 0.875rem !important;
  }
}

/* ========== HERO SWIPER ========== */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: #fff;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: rgba(20,184,166,0.8);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: 900;
}

.hero-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.5);
  opacity: 1;
  width: 8px;
  height: 8px;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #14b8a6;
  width: 24px;
  border-radius: 4px;
}

/* ========== PRODUCT CARDS ========== */
.product-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* ========== SECTION NAV (Product Detail) ========== */
.section-nav-bar {
  transition: all var(--transition);
}

.section-nav-link.active {
  color: #F97316;
  border-bottom: 2px solid #F97316;
}

/* ========== THUMBNAIL GALLERY ========== */
.thumb-btn {
  transition: border-color var(--transition), opacity var(--transition);
  cursor: pointer;
}

.thumb-btn:hover,
.thumb-btn.active {
  border-color: #14b8a6 !important;
}

/* Thumbnail strip scroll track */
.thumb-track-outer {
  overflow: hidden;
}
.thumb-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  will-change: transform;
}

/* ========== FLOATING CONTACT ========== */
.float-contact-btn {
  transition: transform var(--transition), background-color var(--transition);
}

.float-contact-btn:hover {
  transform: scale(1.1);
}

/* ========== CASE TAB FILTER ========== */
.case-tab.active {
  background-color: #14b8a6;
  color: #fff !important;
  border-color: #14b8a6;
}

/* ========== INQUIRY FORM ========== */
.form-input:focus {
  ring: 2px;
  ring-color: #F97316;
  border-color: transparent;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* ========== RESPONSIVE UTILITIES ========== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== SCROLL TO TOP ========== */
#scrollTop {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 40;
  width: 40px;
  height: 40px;
  background: #14b8a6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 12px rgba(20,184,166,0.4);
}

#scrollTop.show {
  opacity: 1;
}

#scrollTop:hover {
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  #scrollTop {
    bottom: 24px;
    right: 80px;
  }
}

/* ========== LIGHTBOX ========== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ========== THEME COLOR OVERRIDES ==========
   Map Tailwind gray-900 dark sections → brand primary deep navy
   Map stats bar, footer, page header, inquiry section
   ============================================ */

/* Footer */
footer{border-top: 3px solid #14b8a6;}
footer.bg-gray-900,
section.bg-gray-900,
div.bg-gray-900 {
  background-color: #1a1a2e !important;
}

/* Stats bar */
section.bg-gray-900 {
  background-color: #16213e !important;
}

/* Inquiry form section in dark */
section.bg-gray-900 .bg-gray-800 {
  background-color: #1a1a2e !important;
}

/* Purple accent CTA button color (inline style override) */
a.bg-teal-500,
button.bg-teal-500 {
  background-color: #14b8a6 !important;
}

a.bg-teal-500:hover,
button.bg-teal-500:hover {
  background-color: #0d9488 !important;
}

/* Accent text in headings */
.text-teal-400 {
  color: #2dd4bf !important;
}

.text-teal-500 {
  color: #14b8a6 !important;
}

.text-teal-600 {
  color: #0d9488 !important;
}

/* Accent bg-purple-50 and bg-purple-100 */
.bg-teal-50 {
  background-color: #f0fdfa !important;
}

.bg-teal-100 {
  background-color: #ccfbf1 !important;
}

/* Borders */
.border-teal-500 { border-color: #14b8a6 !important; }
.border-teal-200 { border-color: #99f6e4 !important; }
.border-teal-300 { border-color: #5eead4 !important; }
.border-teal-100 { border-color: #ccfbf1 !important; }

/* Hover states */
.hover\:bg-teal-500:hover  { background-color: #14b8a6 !important; }
.hover\:bg-teal-600:hover  { background-color: #0d9488 !important; }
.hover\:text-teal-500:hover { color: #14b8a6 !important; }
.hover\:border-teal-300:hover { border-color: #5eead4 !important; }

/* ========== NAV DROPDOWN ========== */
.nav-dropdown {
  margin-top: 4px;
}
/* bridge gap between trigger and dropdown */
.group:hover .nav-dropdown,
.nav-dropdown:hover {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ========== GLOBAL PILL BUTTONS ========== */
/* All <button> and submit inputs */
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  border-radius: 9999px !important;
}
/* CTA anchor links with teal background */
a.bg-teal-500,
a.bg-teal-600 {
  border-radius: 9999px !important;
}
/* Pagination border-style anchor buttons */
a.border.rounded-lg {
  border-radius: 9999px !important;
}
#inquiryForm textarea{height: 100px;}
/* ========== FP-CARD ========== */
.fp-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
  display: block;
}
.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;}
.fp-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

/* ========== PRINT ========== */
@media print {
  .site-header,
  .fixed,
  footer {
    display: none !important;
  }
  body {
    padding-bottom: 0;
  }
}
