/* NanoSoft cryoEM - 1:1 Pixel-perfect Static Recreation */
/* Based on https://www.nanosoftmaterials.com/ */

:root {
  --site-width: 980px;
  --color-bg: #FFFFFF;
  --color-text: #414141;
  --color-text-secondary: #999997;
  --color-accent: #F88D58;
  --color-primary: #302F51;
  --color-primary-light: #57557D;
  --color-primary-muted: #9190A8;
  --color-warm-white: #FFFAF5;
  --color-cream: #F9EDDF;
  --header-height: 92px;
  --transition-duration: 0.4s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-duration) ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Skip to content */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background: var(--color-primary);
  color: white;
}
.skip-link:focus {
  left: 0;
}

/* Site Container */
#site-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: var(--header-height);
  background: var(--color-bg);
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-inner {
  width: 100%;
  max-width: var(--site-width);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-link {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 52px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a,
.nav-dropdown-trigger {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.nav-menu a:hover,
.nav-dropdown-trigger:hover {
  color: var(--color-primary);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-bg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 4px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-duration) ease;
  z-index: 100;
}

.nav-menu li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 10px 20px;
  font-size: 14px;
  display: block;
  white-space: nowrap;
}

.cart-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  position: relative;
}

.cart-icon svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--color-accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.cart-badge.is-hidden {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-primary);
}

/* ===== MAIN CONTENT ===== */
.pages-container,
#pages-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-content {
  width: 100%;
}
.container {
	width: 100%;
  max-width: var(--site-width);
  padding: 0 20px;
  margin: auto;
}
/* Hero Banner Swiper */
.hero-banner {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto 40px;
  overflow: hidden;
  position: relative;
}

/* 首页首屏全宽全高轮播 */
.hero-banner.hero-fullscreen {
  max-width: none;
  width: 100%;
  margin: 0 0 48px;
}

.hero-banner.hero-fullscreen .hero-swiper {
  /* 让图片完整显示，不裁切：高度由比例控制 */
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  border-radius: 0;
  box-shadow: none;
  background: #000;
}

.hero-banner.hero-fullscreen .swiper,
.hero-banner.hero-fullscreen .swiper-wrapper {
  height: 100%;
}

.hero-banner.hero-fullscreen .swiper-slide {
  height: 100%;
  display: flex;
  align-items: stretch;
}

.hero-banner.hero-fullscreen .swiper-slide > a {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-banner.hero-fullscreen .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  max-width: none;
  max-height: none;
}

.hero-swiper {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.hero-slide-inner {
  min-height: 500px;
  background: #f8f8f8;
  padding: 28px;
}

/* Slide 1: Grid layout */
.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 24px;
}

.hero-announcement {
  background: #ffffff;
  border: 1px solid #000;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}

.hero-event-logo {
  flex-shrink: 0;
}

.hero-event-logo img {
  height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 380px;
}

.hero-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.hero-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.hero-card-large {
  grid-row: span 2;
}

.hero-card-wide {
  grid-column: 2;
  grid-row: 1;
}

.hero-card-small {
  grid-column: 2;
  grid-row: 2;
}

.hero-card-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 0;
  overflow: hidden;
}

.hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.hero-card:hover .hero-card-img img {
  transform: scale(1.03);
}

.hero-card-label {
  display: block;
  background: #232743;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
  text-align: center;
  transition: background 0.3s ease;
}

.hero-card:hover .hero-card-label {
  background: #2d325a;
}

/* Slide 2,3: Full image */
.hero-slide-img {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

.hero-slide-img img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

/* Swiper navigation */
.hero-nav {
  color: #999 !important;
  width: 44px !important;
  height: 44px !important;
  transition: color 0.3s ease, background 0.3s ease;
}

.hero-nav::after {
  font-size: 22px !important;
  font-weight: 300;
}

.hero-nav:hover {
  color: #333 !important;
}

.hero-pagination {
  bottom: 20px !important;
}

.hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(0,0,0,0.25);
  opacity: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-pagination .swiper-pagination-bullet:hover {
  background: rgba(0,0,0,0.4);
}

.hero-pagination .swiper-pagination-bullet-active {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.15);
  transform: scale(1.2);
}

/* Hero 移动端适配 */
@media (max-width: 768px) {
  .hero-banner {
    margin: 0 auto 32px;
  }

  .hero-banner.hero-fullscreen {
    margin: 0 0 32px;
  }

  .hero-banner.hero-fullscreen .hero-swiper {
    aspect-ratio: 4 / 3;
    max-height: calc(100svh - var(--header-height));
  }

  .hero-swiper {
    border-radius: 4px;
  }

  .hero-slide-inner {
    min-height: 420px;
    padding: 20px;
  }

  .hero-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
  }

  .hero-announcement {
    font-size: 14px;
    white-space: normal;
    padding: 12px 18px;
  }

  .hero-event-logo img {
    height: 52px;
    max-width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: 360px;
    gap: 16px;
  }

  .hero-card-large {
    grid-row: auto;
    min-height: 220px;
  }

  .hero-card-wide,
  .hero-card-small {
    grid-column: auto;
    grid-row: auto;
    min-height: 200px;
  }

  .hero-card-img {
    min-height: 140px;
    padding: 16px;
  }

  .hero-card-label {
    padding: 12px 16px;
  }

  .hero-slide-img {
    min-height: 300px;
  }

  .hero-slide-img img {
    max-height: 300px;
  }

  .hero-nav {
    width: 36px !important;
    height: 36px !important;
  }

  .hero-nav::after {
    font-size: 18px !important;
  }

  .hero-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

/* CTA Sections */
.cta-sections {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 48px;
  padding: 48px 20px;
  background: #f2f2f2;
}

.cta-block {
  flex: 1;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 48px;
  background: #212344;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0;
  transition: background var(--transition-duration) ease, opacity var(--transition-duration) ease;
  margin-bottom: 24px;
}

.cta-btn:hover {
  background: #2a2d5a;
  opacity: 0.95;
}

.cta-block p {
  font-size: 14px;
  color: #333333;
  line-height: 1.5;
  margin: 0;
}

.cta-divider {
  width: 1px;
  min-width: 1px;
  background: #000000;
  align-self: center;
  height: 80px;
}

/* Product Sections */
.product-section {
  margin-bottom: 56px;
  background: #FFFFFF;
}

.section-title {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 34px;
  font-weight: 600;
  color: #2D325A;
  text-align: left;
  margin-bottom: 32px;
  /* padding: 24px 0; */
  border: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.product-item {
  background: var(--color-bg);
  overflow: hidden;
  border-radius: 4px;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

/* .product-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
} */

.product-item a {
  display: block;
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image-wrap::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

.product-item:hover .product-image-wrap::before {
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-item:hover .product-image {
  transform: scale(1.05);
}

.quick-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(255,255,255,0.9);
  color: #2D325A;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-transform: capitalize;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.25s ease;
  z-index: 2;
}

.product-item:hover .quick-view {
  opacity: 1;
  transform: translateY(0);
}

.product-item .quick-view:hover {
  color: #3B419A;
}

.product-info {
  padding: 14px 0 0;
  text-align: left;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-title {
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #2D325A;
  margin-bottom: 6px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease, text-decoration 0.25s ease;
}

.product-item:hover .product-title {
  color: #3B419A;
}

.product-price {
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #888888;
  transition: color 0.25s ease;
}

/* Quote button */
.product-quote-btn {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background-color: var(--color-primary);
  border-radius: 999px;
  border: none;
  transition: background-color var(--transition-duration) ease, transform var(--transition-duration) ease;
}

.product-quote-btn:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
}

.product-price .sale-price {
  color: var(--color-accent);
}

.product-price .regular-price {
  font-size: 13px;
  color: #999999;
  text-decoration: line-through;
  margin-right: 6px;
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--color-accent);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 2px;
}

.product-item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===== FOOTER ===== */
#site-footer {
  margin-top: 60px;
  padding: 48px 20px 28px;
  background: #FFFFFF;
  border-top: 1px solid #e0e0e0;
  color: #333333;
}

.footer-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Left: Logo - thin black border, nano/soft style */
.footer-logo {
  border: 1px solid #000000;
  /* padding: 14px 16px; */
  display: inline-block;
}

.footer-logo img {
  height: 130px;
  width: auto;
  display: block;
}

/* Middle: Links with full-width horizontal separators (table-row effect) */
.footer-links {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.footer-links a {
  display: block;
  font-size: 14px;
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  color: #333333;
  padding: 12px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: -1px;
  transition: color var(--transition-duration) ease;
}

.footer-links a:first-child {
  border-top: 1px solid #e0e0e0;
}

.footer-links a:last-child {
  margin-bottom: 0;
}

.footer-links a:hover {
  color: #3B419A;
}

/* Right: Follow Us, icons, email */
.footer-social-section h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #333333;
  margin-bottom: 14px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  transition: color var(--transition-duration) ease;
}

.footer-social a svg {
  width: 30px;
  height: 30px;
}

.footer-social a:hover {
  color: #333333;
}

.footer-email {
  font-size: 14px;
  color: #888888;
}

.footer-email a {
  color: inherit;
}

.footer-email a:hover {
  color: #3B419A;
}

.footer-bottom {
  max-width: var(--site-width);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: none;
  text-align: center;
  font-size: 11px;
  color: #999999;
}

.footer-bottom a {
  color: inherit;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 100;
  transition: transform var(--transition-duration) ease;
}

.chat-widget:hover {
  transform: scale(1.05);
}

.chat-widget svg {
  width: 24px;
  height: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cta-sections {
    flex-wrap: wrap;
  }

  .cta-block {
    flex: 1 1 45%;
    max-width: none;
    margin-bottom: 24px;
  }

  .cta-divider {
    display: none;
  }
  
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-col-social {
    grid-column: span 2;
  }
  
  .footer-col-logo,
  .footer-col-links,
  .footer-col-social {
    text-align: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header-nav .nav-menu {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease;
  }
  
  .nav-dropdown.open {
    max-height: 500px;
    padding: 8px 0 8px 16px;
  }
  
  .nav-menu li:hover .nav-dropdown {
    transform: none;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .section-title {
    font-size: 28px;
  }
  
  .cta-sections {
    flex-direction: column;
    padding: 32px 20px;
  }

  .cta-block {
    flex: none;
    width: 100%;
    max-width: none;
    padding: 24px 0;
    border-bottom: 1px solid #ddd;
  }

  .cta-block:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  .cta-btn {
    padding: 12px 40px;
    margin-bottom: 20px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 72px;
  }
  
  .header-inner {
    padding: 0 12px;
  }
  
  .header-logo {
    height: 44px;
  }
  
  /* .page-content {
    padding: 0 12px;
  } */
  .container {
    padding: 0 12px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 24px;
  }
}
