/* ==========================================================================
   BAOMING SANITARYWARE (宝明卫浴) - B2B PORTAL DESIGN SYSTEM
   Base Palette: Baoming Royal Blue (#00558F), Deep Navy (#0A192F), Crisp White (#FFFFFF)
   ========================================================================== */

:root {
  --primary: #00558F;
  --primary-dark: #0A192F;
  --primary-deep: #003357;
  --primary-hover: #0077CC;
  --primary-light: #E0F2FE;
  
  --secondary: #0F172A;
  --accent-gold: #D4AF37;
  --accent-cyan: #0284C7;
  
  --bg-main: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-dark: #0A192F;
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  --border-light: #E2E8F0;
  --border-focus: #00558F;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0, 85, 143, 0.08);
  --shadow-lg: 0 15px 30px -5px rgba(0, 85, 143, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 35px -5px rgba(0, 85, 143, 0.2);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Top Info Notification Bar */
.top-bar {
  background: var(--primary-dark);
  color: #CBD5E1;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-info-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-info-item i {
  color: var(--primary-hover);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-tag {
  background: rgba(0, 119, 204, 0.2);
  color: #38BDF8;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Header & Main Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 500;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(0, 85, 143, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(0, 119, 204, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
}

.btn-gold {
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
}

.btn-gold:hover {
  background: #E5C158;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Hero Section Carousel */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-white);
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.7) 50%, rgba(10, 25, 47, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 85, 143, 0.3);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title span {
  color: #38BDF8;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #CBD5E1;
  margin-bottom: 32px;
  font-weight: 400;
}

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

/* Feature Pillars Grid */
.pillars-section {
  padding: 50px 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--bg-main);
  padding: 30px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Section Header */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 85, 143, 0.25);
}

/* Search Bar */
.search-wrapper {
  max-width: 550px;
  margin: 0 auto 35px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-light);
  outline: none;
  font-size: 0.95rem;
  background: var(--bg-main);
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 85, 143, 0.1);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Products Grid & Product Card */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 85, 143, 0.3);
}

.product-img-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #FAFAFA;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

/* Top-Left Baoming Logo Badge Indicator */
.product-logo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 85, 143, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-logo-badge img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.finish-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-white);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.product-title-en {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-item i {
  color: var(--primary);
  font-size: 0.75rem;
}

.product-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* OEM & Factory Showcase */
.factory-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 60px;
  box-shadow: var(--shadow-lg);

}

.factory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.factory-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #38BDF8;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: #94A3B8;
}

/* Factory Gallery Lightbox Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(10,25,47,0.9) 0%, transparent 100%);
  color: #FFF;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Process 5 Steps Workflow */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.process-card {
  background: var(--bg-main);
  padding: 26px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
  position: relative;
}

.process-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.1rem;
}

.process-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.process-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Inquiry Form */
.inquiry-section {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: span 2;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 85, 143, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.modal-close:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #94A3B8;
  padding: 70px 0 30px;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 16px 0;
}

.footer-heading {
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background: var(--primary-hover);
  margin-top: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: #38BDF8;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* Sitemap Pill Floating Bar */
.sitemap-pill-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(10, 25, 47, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  color: #FFF;
  font-size: 0.85rem;
}

.sitemap-pill-nav a {
  color: #E2E8F0;
  font-weight: 500;
}

.sitemap-pill-nav a:hover {
  color: #38BDF8;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .factory-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-light);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .sitemap-pill-nav {
    display: none;
  }
}
