:root {
  --page-width: 1900px;
  --page-padding: 24px;
  --color-dark: #111115;
  --color-light: #f7f7f8;
  --color-primary: #00d062;
  --color-text: #171717;
  --color-muted: #6f7480;
  --radius-card: 28px;
  --shadow-soft: 0 24px 60px rgba(17, 17, 21, 0.15);
  --header-height: 80px; /* 页眉高度 */
  /* Additional variables for 404 page */
  --primary-color: #00d062;
  --primary-hover: #00a850;
  --text-dark: #171717;
  --text-light: #6f7480;
  --text-muted: #999999;
  --bg-light: #f7f7f8;
  --border-color: #e1e5e9;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: var(--color-light);
}

body {
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.page {
  min-height: 100vh;
  background: var(--color-light);
  padding-top: var(--header-height); /* 为固定页眉预留空间 */
  box-sizing: border-box;
}

.page > * {
  box-sizing: border-box;
}

/* Remove padding on homepage so hero can extend behind header */
.page.homepage {
  padding-top: 0;
}

.page-width {
  width: min(calc(100% - var(--page-padding) * 2), var(--page-width));
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

@media (min-width: 1024px) {
  :root {
    --page-padding: 36px;
  }
}

@media (min-width: 1280px) {
  :root {
    --page-padding: 48px;
  }
}

@media (min-width: 1536px) {
  :root {
    --page-padding: max(48px, 50vw - var(--page-width) / 2);
  }
}

.bs-header {
  position: fixed; /* 改为固定定位确保冻结 */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* 提高z-index确保在最上层 */
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  transition: background 0.5s ease, border-bottom 0.5s ease, backdrop-filter 0.5s ease, transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, box-shadow; /* 性能优化 */
  transform: translateZ(0); /* 硬件加速 */
}

.bs-header.scrolled {
  box-shadow: 0 12px 30px rgba(15, 15, 20, 0.1);
}

/* Homepage header hero background effect */
.bs-header.homepage-hero-bg {
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  transition: none !important;
}

.bs-header.homepage-hero-bg.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  transition: none !important;
}

/* When hovering over nav buttons, show white background */
.bs-header.homepage-hero-bg.nav-hover {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  transition: none !important;
}

/* Black text for logo and nav when header has hero background */
.bs-header.homepage-hero-bg:not(.nav-hover):not(.scrolled) .logo {
  filter: none;
}

.bs-header.homepage-hero-bg:not(.nav-hover):not(.scrolled) .main-nav a {
  color: #111 !important;
}

/* First hero section on homepage - aligns with header */
.homepage-first-hero {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 0.875rem 0;
  gap: 2rem;
  min-height: fit-content;
}

.logo {
  display: inline-block;
  width: 7.5rem;
  height: 2.5rem;
  flex-shrink: 0; /* 防止在flex布局中被压缩 */
  position: relative;
  background-image: url('../images/petoliva-main-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.logo img {
  display: none; /* 隐藏原始图片，仅用于SEO和可访问性 */
}

.header-spacer {
  width: 7.5rem;
  height: 1px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.main-nav a,
.main-nav .support-dropdown {
  position: relative;
  padding: 0.375rem 0;
  white-space: nowrap;
}

/* 所有链接都有下划线 */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* Support dropdown 容器也有下划线 */
.main-nav .support-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav .support-dropdown:hover::after {
  transform: scaleX(1);
}

/* Support dropdown 里面的链接不需要单独的下划线 */
.main-nav .support-dropdown .support-dropdown-trigger::after {
  display: none;
}

/* 通用 hero 基础样式 */
.single-hero {
  position: relative;
  min-height: 500px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  width: 100%;
  margin: 0;
  border-radius: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* 非轮播中的 hero 使用固定比例和 flex 居中 */
.hero-container > .single-hero:not(.hero-carousel-wrapper .single-hero) {
  min-height: 500px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 非轮播 hero 的内容使用 flex 居中，不使用绝对定位 */
.hero-container > .single-hero:not(.hero-carousel-wrapper .single-hero) .hero-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  padding: 2rem;
  transform: none;
  text-align: center;
}

/* 轮播中的 hero 保持固定比例 */
.hero-carousel-wrapper .single-hero {
  min-height: auto;
  overflow: hidden;
}

/* 轮播图中的 hero 不需要 before 伪元素的缩放效果 */
.hero-carousel-wrapper .single-hero::before {
  transform: none;
}

.single-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transform: scale(1.1);
  /* filter: saturate(200%); */ /* 暂时禁用可能的问题 */
  opacity: 1;
  border-radius: var(--radius-card);
  transition: transform 0.8s ease;
}


.single-hero.animate-in::after {
  opacity: 0;
}

.single-hero.animate-in::before {
  transform: scale(1);
}

.single-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.01) 100%
  );
  border-radius: var(--radius-card);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.single-hero--light::after {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* 通用 hero 内容样式 */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 16px;
  max-width: 1000px;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform; /* 性能优化 */
}

.animate-in .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.single-hero--light .hero-content {
  color: #111;
}

/* 标题样式已整合到 .hero-content 中 */

.hero-kicker {
  letter-spacing: -0.5px;
  font-size: 34px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 1000px) {
  .hero-kicker {
    font-size: 28px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

@media (max-width: 768px) {
  .hero-kicker {
    font-size: 24px;
    white-space: normal;
  }
  .hero-subtitle {
    font-size: 16px;
  }
}

.hero-subtitle {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 600;
  color: inherit;
  line-height: 1.6;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.primary-button,
.ghost-button {
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button {
  background: linear-gradient(135deg, #00d062, #00b25b);
  color: #fff;
  box-shadow: 0 15px 30px rgba(0, 208, 98, 0.35);
}

.ghost-button {
  border-color: rgba(255, 255, 255, 0.6);
  color: inherit;
  background: transparent;
}

.single-hero--light .ghost-button {
  border-color: rgba(17, 17, 21, 0.3);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* 更平滑的动画 */
}

/* 移除 hero-grid，改为单独的 hero 容器 */
.hero-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* Hero Carousel Styles */
.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2560 / 1180;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.2s ease-in-out;
  pointer-events: none;
  overflow: hidden;
}

.carousel-item.active {
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.carousel-item.prev-slide {
  transform: translateX(-100%);
  z-index: 1;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-button-prev {
  left: 20px;
}

.carousel-button-next {
  right: 20px;
}

/* 轮播进度指示器样式 */
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  align-items: center;
  justify-content: center;
}

.carousel-indicator {
  width: 50px;
  height: 4px;
  background: rgba(80, 80, 80, 0.6);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicator:hover {
  background: rgba(60, 60, 60, 0.8);
}

.carousel-indicator.active {
  background: rgba(0, 0, 0, 1);
  width: 50px;
}

/* 隐藏单张图片轮播的导航按钮和进度条 */
.hero-carousel-wrapper--no-controls .carousel-button,
.hero-carousel-wrapper--no-controls .carousel-indicators {
  display: none !important;
}

/* 类别条带样式已移除，因为当前未使用 */

.newsletter {
  padding: 64px 0;
  background: #f1f5f9;
  display: none; /* Hide newsletter section */
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.newsletter h2 {
  margin: 8px 0;
  font-size: 32px;
}

.newsletter .subtitle {
  margin: 0;
  color: var(--color-muted);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Pages Styles */
.page-content {
  padding: 80px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 16px 0;
  display: block;
}

.page-subtitle {
  font-size: 20px;
  color: var(--color-muted);
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* About Page Styles */
.about-section {
  margin-bottom: 80px;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text h2 {
  font-size: 32px;
  margin: 40px 0 20px 0;
  color: var(--color-dark);
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--color-text);
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-list li {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

.values-list strong {
  color: var(--color-primary);
}

.about-image {
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: var(--radius-card);
}

.about-image img {
  max-width: 200px;
  height: auto;
}

/* Product Categories Section */
.product-categories-section {
  margin-bottom: 80px;
}

.product-categories-section h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-dark);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.category-card {
  background: #f8f9fa;
  border-radius: var(--radius-card);
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-icon {
  font-size: 48px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.category-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.category-card p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Contact Page Styles */
.contact-section {
  margin-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.contact-info h2,
.quick-help h2 {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--color-dark);
}

.contact-info p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
  color: var(--color-text);
}

.contact-items {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.contact-details h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.contact-details p {
  font-size: 14px;
  color: var(--color-text);
  margin: 0 0 4px 0;
}

.contact-note {
  font-size: 13px;
  color: var(--color-muted);
}

.social-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--color-primary);
}

.social-links i {
  font-size: 24px;
}

.help-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.help-card {
  background: #f8f9fa;
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
}

.help-icon {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.help-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.help-card p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.support-message {
  background: #f1f5f9;
  border-radius: var(--radius-card);
  padding: 40px;
  text-align: center;
}

.support-message h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.support-message p {
  font-size: 16px;
  color: var(--color-text);
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-content {
    padding: 60px 0;
  }

  .page-title {
    font-size: 36px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    padding: 30px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
  }

  .contact-image {
    width: 60px;
    height: 60px;
  }

  .social-links {
    justify-content: center;
  }
}

.newsletter-form input {
  flex: 1 1 240px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

.site-footer {
  background: #1b1b1c;
  color: #e5e7eb;
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1 1 220px;
}

.footer-brand p {
  color: rgba(229, 231, 235, 0.75);
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-columns {
  flex: 2 1 460px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.footer-columns h4 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.footer-columns a {
  display: block;
  color: rgba(229, 231, 235, 0.75);
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-columns a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-bottom a {
  margin-left: 12px;
  color: rgba(229, 231, 235, 0.75);
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: var(--color-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* Support dropdown styles */
.support-dropdown {
  position: relative;
  display: inline-block;
}

.support-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  box-shadow: 0 12px 30px rgba(15, 15, 20, 0.15);
  border-radius: 12px;
  padding: 12px 0;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.support-dropdown:hover .support-dropdown-content,
.support-dropdown:focus-within .support-dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.support-dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.support-dropdown-content a:hover {
  background: #f5f5f7;
}

/* Adjust header layout to accommodate dropdown */
.header-inner {
  position: relative;
}

.main-nav {
  position: relative;
}

.support-dropdown-trigger {
  cursor: pointer;
}

@media (max-width: 720px) {
  :root {
    --page-width: calc(100% - 24px);
    --page-padding: 12px;
    --header-height: 60px; /* 移动端页眉高度 */
    --radius-card: 16px; /* 移动端使用较小的圆角 */
  }

  .header-inner {
    padding: 15px 0;
    align-items: center;
    flex-wrap: wrap;
  }

  /* Ensure header stays fixed on mobile */
  .bs-header {
    position: fixed; /* 改为固定定位 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  /* 移动端导航布局优化 */
  .main-nav {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    font-size: 13px;
    flex-grow: 1;
    margin-left: 12px;
  }

  .logo {
    order: 0;
    flex-shrink: 0;
  }

  .header-spacer {
    display: none; /* 移动端不需要spacer */
  }

  .single-hero {
    padding: 0 !important;
    width: 100%;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
  }

  /* 轮播图在移动端需要保持高度 */
  .hero-carousel-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero-carousel-wrapper .single-hero {
    height: 100% !important;
  }

  .page-width {
    padding: 0 !important;
  }

  .hero-container {
    gap: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  main {
    padding: 0 !important;
  }

  .hero-content {
    padding: 0 !important;
  }

  section {
    margin: 0 !important;
  }

  .single-hero::before {
    transform: none !important;
  }

  /* 改进移动端按钮大小 */
  .primary-button,
  .ghost-button,
  .secondary-button {
    min-height: 48px; /* 苹果推荐的触摸目标最小尺寸 */
    padding: 12px 24px;
    font-size: 16px; /* 防止iOS自动缩放 */
    /* 触摸反馈 */
    -webkit-tap-highlight-color: rgba(0, 208, 98, 0.1);
    touch-action: manipulation;
  }

  /* 移动端产品卡片触摸优化 */
  .product-card {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
    touch-action: manipulation;
  }

  /* 移动端链接触摸优化 */
  a {
    -webkit-tap-highlight-color: rgba(0, 208, 98, 0.1);
  }

  /* 移动端主内容区域顶部padding */
  main {
    padding-top: 20px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 0 !important;
  }

  /* 移动端确保所有 hero 元素无间隙 */
  .hero-container .single-hero,
  .hero-container .hero-carousel-wrapper,
  .hero-container article {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 移动端高缩放下优化图片显示 */
  body.zoom-high .hero-carousel-wrapper .single-hero {
    height: 100% !important;
    background-size: contain !important;
    background-position: center !important;
  }

  .hero-content {
    padding: 12px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  /* Mobile dropdown adjustments */
  .support-dropdown-content {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 90%;
    max-width: 300px;
  }

}

/* Page fade-in overlay */
.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9999;
  opacity: 1;
  pointer-events: none;
  animation: fadeOutOverlay 1s ease forwards;
}

@keyframes fadeOutOverlay {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Footer logo styling */
.footer-logo {
  max-width: 200px;
  height: auto;
  filter: brightness(0) invert(1); /* Makes logo white */
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 1;
}

/* Social icons styling */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 18px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-icon i {
  line-height: 1;
}

/* Mega Menu Styles */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  max-height: 70vh;
  overflow-y: auto;
}

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

.mega-menu-content {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2.5rem var(--page-padding);
}

.mega-panel {
  display: none;
}

.mega-panel.active {
  display: block;
}

.mega-panel h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--color-dark);
}

.fountains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.fountain-item {
  text-align: center;
}

.fountain-item img {
  width: 100%;
  height: 11.25rem;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  display: block;
  border-radius: 0.75rem;
  background: #f5f5f7;
  padding: 1rem;
}

.fountain-item p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.support-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.support-links a {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-text);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: color 0.2s ease;
}

.support-links a:hover {
  color: var(--color-primary);
}

/* Adjust main content to account for mega menu */
main {
  transition: margin-top 0.3s ease;
  padding: 0;
  margin: 0;
}

/* Ensure all hero elements have no spacing */
.hero-container .single-hero,
.hero-container .hero-carousel-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

.hero-container article {
  margin: 0 !important;
  padding: 0 !important;
}

/* 特别确保非轮播的 hero 元素没有间隙 */
.hero-container > .single-hero:not(.hero-carousel-wrapper .single-hero) {
  margin: 0 !important;
  padding: 0 !important;
}

main.mega-menu-open {
  margin-top: 300px; /* Adjust based on mega menu height */
}

/* Ensure header has proper z-index */
.bs-header {
  z-index: 1000;
}

/* Navigation item hover states */
.main-nav a {
  cursor: pointer;
  position: relative;
}

.main-nav a:hover {
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .fountains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .fountains-grid {
    grid-template-columns: 1fr;
  }
  
  .mega-menu-content {
    padding: 24px var(--page-padding);
  }
}

/* More link styling */
.more-link {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 24px;
  margin-right: calc(-1 * var(--page-padding));
  padding-right: 0;
  width: 100%;
  box-sizing: border-box;
}

.more-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.more-link a:hover {
  gap: 12px;
}

.more-link i {
  font-size: 16px;
  transition: transform 0.2s ease;
}
.more-link a:hover i {
  transform: translateX(4px);
}

/* User Manuals Page Styles */
.user-manuals {
  padding: 80px 0;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.manual-category {
  margin-bottom: 60px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.manual-category h2 {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 30px;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.manual-category h2 i {
  color: var(--color-primary);
}

.manual-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.manual-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-radius: 16px;
  background: #f9f9fb;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.manual-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.manual-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
}

.manual-info p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00d062, #00b25b);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 208, 98, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 208, 98, 0.4);
  color: #fff;
}

.download-button i {
  font-size: 16px;
}

.manual-note {
  margin-top: 60px;
  padding: 24px;
  background: #f1f5f9;
  border-radius: 16px;
  font-size: 16px;
  color: var(--color-text);
  text-align: center;
}

.manual-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 36px;
  }
  
  .manual-category {
    padding: 24px;
  }
  
  .manual-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .download-button {
    align-self: stretch;
    justify-content: center;
  }
}

/* Typewriter animation for hero kicker */
.hero-kicker.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent; /* Optional cursor */
  width: 0;
  animation: typewriter 1s steps(30, end) forwards;
  animation-delay: 0.1s;
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

/* Optional cursor blink after animation */
.hero-kicker.typewriter.completed {
  border-right-color: currentColor;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-right-color: transparent; }
  50% { border-right-color: currentColor; }
}

/* Pop-up character animation */
.hero-kicker.pop-up {
  display: block;
  overflow: visible;
  text-align: center;
}

.hero-kicker.pop-up .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: pop-up-char 0.5s forwards;
}

@keyframes pop-up-char {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Collection Page Styles */
.collection-page {
  padding: 40px 0;
}

.collection-header {
  text-align: center;
  margin-bottom: 60px;
}

.collection-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.collection-description {
  font-size: 1.2rem;
  color: var(--text-color-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: #f5f5f5;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  min-height: 31.25rem;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-card-image {
  position: relative;
  height: 21.875rem;
  overflow: hidden;
  flex-shrink: 0;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  image-rendering: auto;
  image-rendering: smooth;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

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

.product-card-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.product-card-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-card-title a:hover {
  color: var(--primary-color);
}

.product-card-description {
  color: var(--text-color-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.product-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.feature-tag {
  background: var(--primary-color-light);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.product-card-actions {
  display: flex;
  gap: 0.75rem;
}

.product-card-actions .secondary-button,
.product-card-actions .ghost-button {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-card-actions .secondary-button {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.product-card-actions .secondary-button:hover {
  background: var(--primary-color-hover);
  border-color: var(--primary-color-hover);
  color: white;
}

.product-card-actions .ghost-button {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.product-card-actions .ghost-button:hover {
  background: var(--primary-color);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .collection-page {
    padding: 30px 0;
  }

  .collection-title {
    font-size: 2.5rem;
  }

  .collection-description {
    font-size: 1.1rem;
  }

  .products-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
  }

  .product-card-image {
    height: 60%;
  }
}

@media (max-width: 576px) {
  .collection-title {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card-content {
    padding: 1rem;
  }

  .product-card-actions {
    flex-direction: column;
  }

  .product-card-actions .secondary-button,
  .product-card-actions .ghost-button {
    width: 100%;
  }

  .product-card {
    min-height: 25rem;
  }

  .product-card-title {
    font-size: 1.2rem;
  }
}

/* 超小屏幕手机适配 */
@media (max-width: 375px) {
  .collection-title {
    font-size: 1.75rem;
  }

  .collection-description {
    font-size: 1rem;
  }

  .product-card {
    min-height: 21.875rem;
  }

  .product-card-title {
    font-size: 1.1rem;
  }

  /* 移动端产品卡片间距优化 */
  .products-grid {
    gap: 0.75rem;
  }
}

/* ===================================
   200%+ Zoom Styles
   当浏览器缩放200%或更高时,启用移动式菜单布局
   =================================== */

/* 隐藏默认导航和spacer */
.bs-header.zoom-high .main-nav,
.bs-header.zoom-high .header-spacer {
  display: none !important;
}

/* Logo居中 */
.bs-header.zoom-high .header-inner {
  display: flex;
  justify-content: center;
}

/* 显示菜单按钮 */
.bs-header.zoom-high .mobile-menu-button {
  display: flex !important;
  position: absolute;
  right: var(--page-padding);
  top: 50%;
  transform: translateY(-50%);
}

/* 菜单按钮样式 */
.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.mobile-menu-button span {
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-button:hover span {
  background: var(--color-primary);
}

/* 侧边菜单遮罩 */
.mobile-side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1003;
}

.mobile-side-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 侧边菜单 */
.mobile-side-menu {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  z-index: 1004;
  padding: 100px 40px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-side-menu.active {
  right: 0;
}

/* 关闭按钮 */
.mobile-menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 5;
}

.mobile-menu-close:hover {
  color: var(--color-primary);
}

/* 移动菜单导航 */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.mobile-menu-nav a {
  padding: 24px 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-nav a:hover {
  color: var(--color-primary);
  background-color: rgba(0, 208, 98, 0.05);
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
}

.mobile-menu-nav a:last-child {
  border-bottom: none;
}

/* 防止body滚动 */
body.menu-open {
  overflow: hidden;
}

/* ===================================
   高缩放比例下的 Hero 图片优化
   300%+ 缩放时隐藏文字和按钮，启用图片点击跳转
   =================================== */

/* 当body有zoom-high类时隐藏所有 hero 内容 */
body.zoom-high .hero-content,
body.zoom-high .single-hero .hero-content,
body.zoom-high .carousel-item .hero-content {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* 让 hero 元素可点击 */
body.zoom-high .carousel-item {
  cursor: pointer !important;
}

/* 确保所有 hero 在高缩放下都能正常显示 */
body.zoom-high .single-hero {
  min-height: auto !important;
  width: 100% !important;
  display: block !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* 轮播图在高缩放下保持正确比例 */
body.zoom-high .hero-carousel-wrapper {
  width: 100% !important;
}

body.zoom-high .hero-carousel-wrapper .single-hero {
  min-height: auto !important;
  height: 100% !important;
}

