/* =========================================================
   1. 工具类 (Utilities)
   ========================================================= */
.content-auto { content-visibility: auto; }
.text-shadow { text-shadow: 0 4px 20px rgba(0,0,0,0.6); }

/* =========================================================
   2. 组件类 (Components)
   ========================================================= */
/* --- 按钮与基础交互 --- */
.btn-primary { background-color: #176BFF; color: #fff; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; transition: all 0.3s ease; }
.btn-primary:hover { background-color: #1054D6; }
.btn-outline { border: 1px solid #8B5CF6; color: #8B5CF6; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; transition: all 0.3s ease; }
.btn-outline:hover { background-color: #8B5CF6; color: #fff; }
.glow-blue { box-shadow: 0 10px 30px -10px rgba(23,107,255,0.6); }
.glow-electric { box-shadow: 0 0 0 1px rgba(23,107,255,0.3), 0 0 38px rgba(23,107,255,0.4); }
.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-0.25rem); }
.btn-green { background-color: #25d366; color: #fff; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; transition: all 0.3s ease; }
.btn-green:hover { background-color: #22c55e; }
.glow-green {box-shadow: 0 10px 30px -10px rgba(37,211,102,0.3); }

/* --- 表单与输入 --- */
.input-field { width: 100%; background-color: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 0.75rem 1rem; color: #6b7280; font-size: 1rem; transition: border-color 0.3s; }
.input-field:focus { outline: none; border-color: #176BFF; }
.check-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.375rem 0; font-size: 0.875rem; color: #d1d5db; cursor: pointer; }
.check-row:hover { color: #fff; }
.check-row input { accent-color: #176BFF; }

/* --- 文本与排版 --- */
.stat-num { font-size: 2.25rem; font-weight: 700; color: #176BFF; }
.filter-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; margin-bottom: 0.75rem; }
.policy-h2 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.policy-p { color: #9ca3af; line-height: 1.625; margin-bottom: 1rem; }
.policy-li { color: #9ca3af; margin-bottom: 0.5rem; padding-left: 1rem; }

/* --- 内容卡片 --- */
.value-card { background-color: #1A2438; border: 1px solid #262a32; border-radius: 0.75rem; padding: 1.5rem; }
.contact-card { background-color: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1.25rem; display: flex; align-items: flex-start; gap: 1rem; }
.faq-item { background-color: #fff; border: 1px solid #e5e7eb; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); border-radius: 0.75rem; margin-bottom: 0.75rem; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; text-align: left; cursor: pointer; transition: background-color 0.3s; }
.faq-q:hover { background-color: rgba(244,246,250,0.4); }
.faq-a { padding: 1.25rem; color: #6b7280; font-size: 0.875rem; line-height: 1.625; }
.spec-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid #262a32; font-size: 0.875rem; }

/* --- Tabs --- */
.tab-btn { padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 500; color: #6b7280; border-bottom: 2px solid transparent; transition: all 0.3s; }
.tab-btn:hover { color: #176BFF; }
.tab-btn.active { background-color: #176BFF; color: #fff; border-color: #176BFF; }
.product-tab-btn { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0.75rem 0; font-size: 0.875rem; font-weight: 600; color: #263244; transition: all 0.3s; border-right: 1px solid #e5e7eb; }
.product-tab-btn:last-child { border-right: none; }
.product-tab-btn:hover { background-color: #f9fafb; }
.product-tab-btn.is-active { background-color: #176BFF; color: #fff; }
.sku-option-btn { padding: 0.5rem 1rem; border: 1px solid #e5e7eb; border-radius: 0.25rem; background-color: #fff; font-size: 0.875rem; color: #263244; transition: all 0.3s; }
.sku-option-btn:hover { border-color: #FFB020; color: #FFB020; }
.sku-option-btn.active { background-color: #FFB020; border-color: #FFB020; color: #fff; }
.sku-option-btn.disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* --- 商品卡片特效 --- */
.fx-card { position: relative; z-index: 0; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; backface-visibility: hidden; }
.fx-card:hover { transform: translateY(-0.25rem); z-index: 10; }
.fx-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgba(23,107,255,0.3), 0 0 38px rgba(23,107,255,0.15); opacity: 0; transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.fx-card:hover::after { opacity: 1; }
.img-fade { position: relative; }
.img-fade::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, #1A2438 0%, rgba(26,36,56,0) 100%); pointer-events: none; z-index: 1; transform: translateZ(0); }
.effect-card { transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1); will-change: flex; }
@media (min-width: 768px) { .effect-card.is-expanded { flex: 0 0 337.5px !important; } }
@media (max-width: 767px) { .effect-card.is-expanded { flex: 4 !important; } }

/* =========================================================
   3. 复杂原生 CSS
   ========================================================= */
.ticket-mask { -webkit-mask-image: radial-gradient(circle at 0px 50%, transparent 8px, black 8.5px), radial-gradient(circle at 100% 50%, transparent 8px, black 8.5px); -webkit-mask-size: 51% 100%; -webkit-mask-position: left, right; -webkit-mask-repeat: no-repeat; mask-image: radial-gradient(circle at 0px 50%, transparent 8px, black 8.5px), radial-gradient(circle at 100% 50%, transparent 8px, black 8.5px); mask-size: 51% 100%; mask-position: left, right; mask-repeat: no-repeat; }
.fade-in { animation: fadeIn 0.4s ease-in-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.animate-pulse-ring { animation: pulse-ring 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.4); opacity: 0; } }

/* --- WordPress 原生下拉菜单 --- */
#primary-menu > li > a { transition: color 0.3s ease; }
#primary-menu > li:hover > a, #primary-menu > li.current-menu-item > a { color: #176BFF !important; }
@media (min-width: 1024px) {
  #primary-menu > li { position: relative; display: flex; align-items: center; }
  #primary-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background-color: #1A2438; border: 1px solid #262a32; border-radius: 0.75rem; padding: 0.5rem 0; box-shadow: 0 0 0 1px rgba(23,107,255,0.075), 0 0 38px rgba(23,107,255,0.4); z-index: 50; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
  #primary-menu > li:hover > .sub-menu { padding: 0.5rem; opacity: 1; visibility: visible; transform: translateY(0); }
  #primary-menu .sub-menu a { display: block; padding: 0.6rem 1.25rem; border-radius: 0.5rem; color: #d1d5db; font-size: 0.875rem; white-space: nowrap; transition: all 0.2s; }
  #primary-menu .sub-menu a:hover { color: #176BFF !important; background-color: #101827; }
  #primary-menu .sub-menu li { position: relative; }
  #primary-menu .sub-menu .sub-menu { top: -0.5rem; left: 100%; transform: translateX(10px); }
  #primary-menu .sub-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateX(0); }
  #primary-menu > li.menu-item-has-children > a::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; margin-left: 6px; display: inline-block; transition: transform 0.3s ease; }
  #primary-menu > li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }
  #primary-menu .sub-menu li.menu-item-has-children > a::after { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; float: right; margin-top: 4px; }
}
@media (max-width: 1023px) {
  #primary-menu .sub-menu { padding-left: 1rem; margin-top: 0.25rem; margin-bottom: 0.5rem; margin-left: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; border-left: 2px solid #262a32; }
  #primary-menu .sub-menu a { color: #9ca3af; font-size: 0.875rem; display: block; padding: 0.4rem 0; }
  #primary-menu .sub-menu a:hover { color: #176BFF !important; }
}

/* =========================================
   移动端菜单专属原生样式
   ========================================= */
@media (max-width: 1023px) {
  /* 一级菜单容器 */
  #primary-menu-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 对应 space-y-2 */
    padding-bottom: 1.5rem; /* 对应 pb-6 */
  }
  
  /* 一级菜单项 */
  #primary-menu-mobile > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
  }
  
  #primary-menu-mobile > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem; /* 对应 py-2 */
    padding-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
  }

  /* 子菜单默认隐藏，并添加左侧竖线引导 */
  #primary-menu-mobile .sub-menu {
    display: none;
    padding-left: 1rem; /* 对应 pl-4 */
    margin-top: 0.5rem; /* 对应 mt-2 */
    margin-left: 0.25rem; /* 对应 ml-1 */
    border-left: 2px solid rgba(23, 107, 255, 0.4);
  }

  /* 当父级 li 拥有 .is-open 类时，展开子菜单并触发动画 */
  #primary-menu-mobile li.is-open > .sub-menu {
    display: block;
    animation: fadeInDown 0.3s ease-in-out forwards;
  }

  /* 子菜单链接样式 */
  #primary-menu-mobile .sub-menu a {
    display: block;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    transition: color 0.3s ease;
  }
  
  #primary-menu-mobile .sub-menu a:hover {
    color: #176BFF;
  }

  /* 展开/收起箭头图标 */
  .mobile-arrow {
    font-size: 0.75rem;
    color: #6b7280;
    transition: transform 0.3s ease, color 0.3s ease;
  }
  
  /* 展开状态下箭头旋转并变色 */
  #primary-menu-mobile li.is-open > a > .mobile-arrow {
    transform: rotate(180deg);
    color: #176BFF;
  }
}

/* 子菜单展开动画关键帧 */
@keyframes fadeInDown {
  from { 
    opacity: 0; 
    transform: translateY(-5px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* --- 隐藏 WooCommerce 冗余元素 --- */
.variations_form, .woocommerce-variation, .woocommerce-variation-add-to-cart, .quantity, .single_add_to_cart_button, .reset_variations { display: none !important; }

/*广告落地页*/
.anchor-section { scroll-margin-top: 100px; }
    .hero {
      background:
        linear-gradient(90deg, rgba(7,17,32,.94) 0%, rgba(7,17,32,.82) 50%, rgba(7,17,32,.25) 100%),
        url('/wp-content/uploads/2025/banner.jpg')
        center/cover no-repeat;
    }
    .product-card img,
    .gallery-card img {
      transition: transform .45s ease;
    }
    .product-card:hover img,
    .gallery-card:hover img {
      transform: scale(1.045);
    }
    .gradient-text {
      background: linear-gradient(90deg,#38bdf8,#a5f3fc);
      -webkit-background-clip: text;
      color: transparent;
    }
    details summary { list-style: none; }
    details summary::-webkit-details-marker { display: none; }
    details[open] .faq-plus { transform: rotate(45deg); }
    @media(max-width:767px) {
      .hero { background-position: 58% center; }
    }
    /* 产品 Tab 样式 */
.product-tab-btn {
  color: #64748b; /* slate-500 */
  background-color: transparent;
}
.product-tab-btn:hover {
  background-color: #f1f5f9; /* slate-100 */
  color: #0f172a; /* slate-900 */
}
.product-tab-btn.active {
  background-color: #0878bd; /* brand-600 */
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(8, 120, 189, 0.3);
}
.fade-in {
  animation: fadeIn 0.4s ease-in-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
    /* 跑马灯动画 */
    @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
    .animate-marquee { animation: marquee 25s linear infinite; }
    
    details summary { list-style: none; }
    details summary::-webkit-details-marker { display: none; }
    details[open] .faq-plus { transform: rotate(45deg); }
    
    @media(max-width:767px) { .hero { background-position: 65% center; } }

/* ============================================================
   WordPress 视频（oEmbed）响应式完美适配 (终极防干扰版)
   ============================================================ */

/* 1. 彻底摧毁 WP 原生的比例容器 */
.wp-block-embed__wrapper {
  padding-bottom: 0 !important;
  height: 100% !important;
  display: block !important;
}
.wp-block-embed__wrapper::before {
  display: none !important; /* 干掉 WP 那个强行撑高的伪元素 */
}
figure.wp-block-embed {
  margin: 0 !important;
}

/* 2. 我们自己的自适应容器 */
.yt-video-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

/* 3. 竖屏专属：限制最大宽度并居中 */
.yt-video-wrap.yt-portrait {
  max-width: 400px; 
  margin: 0 auto;
}

/* 4. 绝对压制内部的 iframe */
.yt-video-wrap iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  margin: 0 !important;
}