/** Shopify CDN: Minification failed

Line 16:0 Unexpected "{"
Line 16:1 Unexpected "{"
Line 16:3 Expected identifier but found "'sihoo-prime-day.css'"
Line 17:0 Unexpected "{"
Line 17:1 Unexpected "{"
Line 17:3 Expected identifier but found "'sihoo-prime-day.js'"
Line 19:0 Unexpected "{"
Line 19:1 Expected identifier but found "%"
Line 20:18 Unexpected "-"
Line 23:1 Expected identifier but found "%"
... and 31 more hidden warnings

**/
{{ 'sihoo-prime-day.css' | asset_url | stylesheet_tag }}
{{ 'sihoo-prime-day.js' | asset_url | script_tag }}

{% comment %}
  Sihoo Prime Day - 全局资源文件
  将此文件保存为 assets/sihoo-prime-day.css 和 assets/sihoo-prime-day.js
  或直接在各section中包含样式/脚本（推荐使用独立文件以提升性能）
{% endcomment %}

{% comment %}
  由于各section独立使用时可能需要样式，以下是合并后的样式表内容
  请将以下CSS保存为 assets/sihoo-prime-day.css
{% endcomment %}

<style>
  /* ===== reset & base ===== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafd;
    color: #1a1a2e;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  .sihoo-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ===== colors ===== */
  :root {
    --blue-deep: #0a1e3a;
    --blue-primary: #1a4b8c;
    --blue-mid: #2b6cb0;
    --blue-soft: #e8eff8;
    --blue-pale: #f0f6fe;
    --gold: #f5c542;
    --gold-light: #fde8a0;
    --white: #ffffff;
    --gray-light: #f5f7fa;
    --gray-mid: #e2e8f0;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --shadow-card: 0 2px 16px rgba(15, 43, 79, 0.06), 0 8px 32px rgba(15, 43, 79, 0.04);
    --shadow-card-hover: 0 8px 40px rgba(15, 43, 79, 0.10);
    --radius: 16px;
    --radius-lg: 24px;
  }

  .section-padding {
    padding: 56px 0 64px;
  }

  .section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    color: var(--blue-deep);
    margin-bottom: 4px;
  }
  .section-title .highlight {
    color: var(--gold);
  }
  .section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 36px;
  }

  .card-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  .card-hover:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
  }

  .badge-tag {
    display: inline-block;
    background: var(--gold-light);
    color: var(--blue-deep);
    font-weight: 700;
    font-size: 12px;
    padding: 2px 16px;
    border-radius: 30px;
    letter-spacing: 0.2px;
  }

  .badge-blue {
    display: inline-block;
    background: var(--blue-soft);
    color: var(--blue-primary);
    font-weight: 600;
    font-size: 12px;
    padding: 2px 16px;
    border-radius: 30px;
    letter-spacing: 0.2px;
  }

  .divider-gold {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 12px auto 16px;
    border-radius: 2px;
    opacity: 0.5;
  }

  .animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }

  @media (max-width: 768px) {
    .section-title {
      font-size: 24px;
    }
    .sihoo-container {
      padding: 0 16px;
    }
  }
</style>

{% comment %}
  请将以下JavaScript保存为 assets/sihoo-prime-day.js
{% endcomment %}
<script>
  // 全局交互函数
  window.sihooPrimeDay = window.sihooPrimeDay || {
    initTimelineCards: function() {
      document.querySelectorAll('.sihoo-timeline-card').forEach(card => {
        const header = card.querySelector('.sihoo-card-header');
        if (header && !card.hasAttribute('data-listener')) {
          header.addEventListener('click', (e) => {
            e.stopPropagation();
            const detail = card.querySelector('.sihoo-card-detail');
            const toggle = card.querySelector('.sihoo-card-toggle');
            if (!detail) return;
            const isOpen = detail.classList.contains('open');
            document.querySelectorAll('.sihoo-card-detail.open').forEach(el => {
              if (el !== detail) {
                el.classList.remove('open');
                const parentCard = el.closest('.sihoo-timeline-card');
                if (parentCard) {
                  const parentToggle = parentCard.querySelector('.sihoo-card-toggle');
                  if (parentToggle) parentToggle.classList.remove('open');
                }
              }
            });
            if (isOpen) {
              detail.classList.remove('open');
              if (toggle) toggle.classList.remove('open');
            } else {
              detail.classList.add('open');
              if (toggle) toggle.classList.add('open');
            }
          });
          card.setAttribute('data-listener', 'true');
        }
      });
    },
    initSpinRules: function() {
      document.querySelectorAll('.sihoo-spin-rules-toggle').forEach(toggle => {
        if (!toggle.hasAttribute('data-listener')) {
          toggle.addEventListener('click', () => {
            const content = toggle.nextElementSibling;
            const arrow = toggle.querySelector('.sihoo-arrow');
            if (!content) return;
            const isOpen = content.classList.contains('open');
            if (isOpen) {
              content.classList.remove('open');
              if (arrow) arrow.classList.remove('open');
            } else {
              content.classList.add('open');
              if (arrow) arrow.classList.add('open');
            }
          });
          toggle.setAttribute('data-listener', 'true');
        }
      });
    },
    initFaq: function() {
      document.querySelectorAll('.sihoo-faq-question').forEach(q => {
        if (!q.hasAttribute('data-listener')) {
          q.addEventListener('click', () => {
            const answer = q.nextElementSibling;
            const toggle = q.querySelector('.sihoo-faq-toggle');
            if (!answer) return;
            const isOpen = answer.classList.contains('open');
            document.querySelectorAll('.sihoo-faq-answer.open').forEach(ans => {
              if (ans !== answer) {
                ans.classList.remove('open');
                const parentItem = ans.closest('.sihoo-faq-item');
                if (parentItem) {
                  const qToggle = parentItem.querySelector('.sihoo-faq-toggle');
                  if (qToggle) qToggle.classList.remove('open');
                }
              }
            });
            if (isOpen) {
              answer.classList.remove('open');
              if (toggle) toggle.classList.remove('open');
            } else {
              answer.classList.add('open');
              if (toggle) toggle.classList.add('open');
            }
          });
          q.setAttribute('data-listener', 'true');
        }
      });
    },
    initScrollAnimation: function() {
      const elements = document.querySelectorAll('.animate-on-scroll');
      const observer = new IntersectionObserver((entries) => {
        entries.forEach(entry => {
          if (entry.isIntersecting) {
            entry.target.classList.add('visible');
          }
        });
      }, { threshold: 0.15, rootMargin: '0px 0px -20px 0px' });
      elements.forEach(el => observer.observe(el));
    },
    initAll: function() {
      this.initTimelineCards();
      this.initSpinRules();
      this.initFaq();
      this.initScrollAnimation();
    }
  };
  if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', () => window.sihooPrimeDay.initAll());
  } else {
    window.sihooPrimeDay.initAll();
  }
</script>
/* 为所有 Prime Day 板块添加彩虹渐变背景 */
.sihoo-banner,
.sihoo-subscribe,
.sihoo-timeline,
.sihoo-spin,
.sihoo-feature-product,
.sihoo-product-series,
.sihoo-price-protection,
.sihoo-media,
.sihoo-stats,
.sihoo-faq {
  background: linear-gradient(135deg, 
    rgba(255, 154, 158, 0.15) 0%, 
    rgba(250, 208, 196, 0.15) 25%,
    rgba(250, 208, 196, 0.15) 35%,
    rgba(161, 196, 253, 0.15) 70%,
    rgba(194, 233, 251, 0.15) 100%);
  /* 如果您希望更鲜艳的彩虹色，可以使用以下渐变（不透明）：
  background: linear-gradient(135deg, 
    #ff9a9e 0%, #fad0c4 30%, #fad0c4 50%, #a1c4fd 100%); 
  */
  background-blend-mode: overlay; /* 让原背景色透出一点 */
}