/* xiyuanhygiene.com Master Stylesheet - Cleanroom & Botanical Theme */
@import url('/assets/css/design-tokens.css');

*, *::before, *::after {
  box-sizing: border-box;
}

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast, 160ms);
}
a:hover {
  color: var(--color-primary-hover);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 4px rgba(48, 42, 66, 0.04);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo .logo-img {
  height: 32px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--xy-violet);
  background: var(--xy-lilac);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--xy-ink);
  padding: 8px 2px;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast, 160ms);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--xy-violet);
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast, 160ms);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
  border-radius: 6px;
}

.btn-primary {
  background: var(--xy-violet);
  color: #FFFFFF !important;
  border-color: var(--xy-violet);
}
.btn-primary:hover {
  background: var(--xy-violet-dark);
  border-color: var(--xy-violet-dark);
  box-shadow: 0 4px 12px rgba(89, 76, 146, 0.25);
}

.btn-secondary {
  background: var(--xy-lilac);
  color: var(--xy-violet) !important;
  border-color: #D8CCE4;
}
.btn-secondary:hover {
  background: #DFD5E9;
  border-color: #CBBBD8;
}

.btn-accent {
  background: var(--xy-pollen);
  color: var(--xy-ink) !important;
  font-weight: 700;
  border-color: #D8C77A;
}
.btn-accent:hover {
  background: #E0CE74;
  border-color: #CBB65E;
}

.btn-outline {
  background: #FFFFFF;
  color: var(--xy-violet) !important;
  border: 1px solid var(--xy-violet);
}
.btn-outline:hover {
  background: var(--xy-lilac);
}

/* ==========================================================================
   Hero Section (Banner)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #FAF8F4 0%, #F3EEF8 100%);
  padding: 48px 0 44px 0;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #D8D2E2;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--xy-leaf);
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(48, 42, 66, 0.04);
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.7vw, 2.85rem);
  line-height: 1.2;
  color: var(--xy-ink);
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.hero-title span {
  color: var(--xy-violet);
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--xy-text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  align-items: center;
}

.hero-actions .btn {
  padding: 10px 18px;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Trust Banner
   ========================================================================== */
.trust-banner {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.trust-banner-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 28px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--xy-ink);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--xy-rule);
}

.stat-item h4 {
  font-size: 1.45rem;
  margin: 0;
  color: var(--xy-violet);
  font-weight: 800;
  line-height: 1.1;
}
.stat-item p {
  font-size: 0.78rem;
  margin: 4px 0 0 0;
  color: var(--xy-text-muted);
  font-weight: 600;
  line-height: 1.25;
}

.hero-visual {
  position: relative;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(48, 42, 66, 0.08);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-visual video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero-video-caption {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--xy-text-muted);
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  gap: 8px;
  white-space: nowrap;
}

.hero-video-caption .caption-title {
  font-weight: 600;
  color: var(--xy-ink);
}

.hero-video-caption .caption-badge {
  color: var(--xy-leaf);
  font-weight: 700;
  background: var(--xy-leaf-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Sections, Grids & Cards
   ========================================================================== */
.section {
  padding: 70px 0;
}

.section-alt {
  background: #FFFFFF;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--xy-violet);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--xy-ink);
  margin: 0 0 14px 0;
  line-height: 1.25;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--xy-text-muted);
  line-height: 1.65;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--xy-violet);
}

.product-thumb {
  position: relative;
  background: var(--xy-paper);
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.product-card:hover .product-thumb img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--xy-violet);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

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

.product-category {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--xy-leaf);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--xy-ink);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.product-specs {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--xy-text-muted);
}

.product-specs li {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #EDEBF2;
  padding-bottom: 4px;
}

.product-specs li strong {
  color: var(--xy-ink);
}

.product-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
}

/* Video Showcase Component */
.video-showcase {
  background: #302A42;
  color: #FFFFFF;
  padding: 70px 0;
  border-radius: var(--radius-xl);
  margin: 30px 0;
}

.video-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.video-player-box {
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.video-player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.video-playlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.video-tab-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.video-tab-btn.active {
  background: var(--xy-violet);
  border-color: var(--xy-pollen);
}

.video-tab-btn strong {
  font-size: 0.98rem;
  margin-bottom: 2px;
}
.video-tab-btn span {
  font-size: 0.8rem;
  color: #C4BED0;
}

/* Calculator & Workbench */
.calculator-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  padding: 36px;
  margin: 20px 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--xy-ink);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--xy-rule);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--xy-ink);
  background: #FFFFFF;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--xy-violet);
  box-shadow: var(--shadow-focus);
}

.calc-results {
  background: var(--xy-paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.calc-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #E2DEEB;
}

.calc-metric:last-child {
  border-bottom: none;
}

.calc-metric .metric-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--xy-violet);
}

/* RFQ Form */
.rfq-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-lg);
}

/* Footer */
.site-footer {
  background: var(--xy-ink);
  color: #C4BED0;
  padding: 65px 0 30px 0;
  font-size: 0.9rem;
}

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

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin: 0 0 18px 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: #C4BED0;
  transition: color 0.15s;
}

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

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
  .nav-menu {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.82rem;
  }
}

@media (max-width: 992px) {
  .hero-grid, .video-grid, .calc-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .header-nav {
    display: none;
  }
}
