/* ============================================================
   AIMPACT Tactical — Dark Custom Styles
   ============================================================ */

:root {
  --aimpact-bg: #0e1114;
  --aimpact-bg-2: #151a1f;
  --aimpact-bg-3: #1b2229;
  --aimpact-text: #e8eaed;
  --aimpact-muted: #9aa4ae;
  --aimpact-accent: #f97316;
  --aimpact-accent-dark: #c2410c;
  --aimpact-border: #2a323a;
}

body {
  background-color: var(--aimpact-bg) !important;
  color: var(--aimpact-text) !important;
}

/* ---------- 头部 ---------- */
.site-header,
.ast-primary-header-bar,
.main-header-bar-wrap {
  background-color: #0b0d10 !important;
  border-bottom: 1px solid var(--aimpact-border) !important;
}
.main-header-menu a,
.site-header a,
.main-header-menu .menu-link {
  color: var(--aimpact-text) !important;
  font-weight: 600;
  letter-spacing: .04em;
}
.main-header-menu > li > a:hover {
  color: var(--aimpact-accent) !important;
}

/* ---------- 通用标题 ---------- */
h1, h2, h3, h4 {
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
}

/* ---------- 英雄区 ---------- */
.aimpact-hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(249,115,22,.12), transparent 60%),
    linear-gradient(180deg, #0b0d10 0%, #11161b 60%, #0e1114 100%);
  border-bottom: 1px solid var(--aimpact-border);
  padding: 90px 0 80px;
  text-align: center;
}
.aimpact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.aimpact-hero-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}
.aimpact-hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .35em;
  color: var(--aimpact-accent);
  border: 1px solid rgba(249,115,22,.4);
  padding: 8px 18px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.aimpact-hero-title {
  font-size: clamp(40px, 7vw, 74px) !important;
  line-height: 1.05 !important;
  text-transform: uppercase;
  margin: 0 0 22px !important;
}
.aimpact-hero-sub {
  font-size: 17px;
  color: var(--aimpact-muted);
  max-width: 620px;
  margin: 0 auto 34px !important;
  line-height: 1.7;
}
.aimpact-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.aimpact-btn {
  display: inline-block;
  padding: 14px 34px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 2px;
  transition: all .2s ease;
}
.aimpact-btn-solid {
  background: var(--aimpact-accent);
  color: #0b0d10 !important;
  border: 1px solid var(--aimpact-accent);
}
.aimpact-btn-solid:hover {
  background: var(--aimpact-accent-dark);
  border-color: var(--aimpact-accent-dark);
  color: #fff !important;
}
.aimpact-btn-outline {
  background: transparent;
  color: var(--aimpact-text) !important;
  border: 1px solid var(--aimpact-border);
}
.aimpact-btn-outline:hover {
  border-color: var(--aimpact-accent);
  color: var(--aimpact-accent) !important;
}

/* ---------- 特性条 ---------- */
.aimpact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--aimpact-border);
  background: var(--aimpact-bg-2);
}
.aimpact-strip-item {
  padding: 26px 18px;
  text-align: center;
  border-right: 1px solid var(--aimpact-border);
}
.aimpact-strip-item:last-child { border-right: none; }
.aimpact-strip-item strong {
  display: block;
  font-size: 13px;
  letter-spacing: .14em;
  color: #fff;
  margin-bottom: 6px;
}
.aimpact-strip-item small {
  color: var(--aimpact-muted);
  font-size: 12px;
}
.aimpact-strip-icon {
  display: block;
  color: var(--aimpact-accent);
  font-size: 22px;
  margin-bottom: 8px;
}
@media (max-width: 800px) {
  .aimpact-strip { grid-template-columns: repeat(2, 1fr); }
  .aimpact-strip-item:nth-child(2) { border-right: none; }
}

/* ---------- 区块 ---------- */
.aimpact-section {
  padding: 70px 0 40px;
}
.aimpact-section-title {
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(24px, 3.6vw, 34px) !important;
  letter-spacing: .12em !important;
  margin: 0 0 10px !important;
}
.aimpact-section-sub {
  text-align: center;
  color: var(--aimpact-muted);
  max-width: 560px;
  margin: 0 auto 40px !important;
}

/* ---------- WooCommerce 产品卡 ---------- */
.woocommerce ul.products li.product {
  background: var(--aimpact-bg-2);
  border: 1px solid var(--aimpact-border);
  border-radius: 4px;
  padding: 12px;
  transition: border-color .2s ease, transform .2s ease;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--aimpact-accent);
  transform: translateY(-3px);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #fff !important;
  font-size: 15px !important;
  letter-spacing: .02em;
  text-align: center;
}
.woocommerce ul.products li.product .price {
  color: var(--aimpact-accent) !important;
  font-weight: 700;
  text-align: center;
}
.woocommerce ul.products li.product .price del {
  color: var(--aimpact-muted) !important;
  opacity: .8;
}
.woocommerce ul.products li.product .button {
  display: block;
  text-align: center;
  background: var(--aimpact-accent) !important;
  color: #0b0d10 !important;
  font-weight: 700;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px !important;
  padding: 11px 14px !important;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--aimpact-accent-dark) !important;
  color: #fff !important;
}
.woocommerce ul.products li.product .star-rating span {
  color: var(--aimpact-accent) !important;
}

/* ---------- CTA 区 ---------- */
.aimpact-cta {
  margin: 60px 0 0;
  padding: 80px 20px;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(249,115,22,.14), transparent 65%),
    var(--aimpact-bg-2);
  border-top: 1px solid var(--aimpact-border);
}
.aimpact-cta h2 {
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 12px !important;
}
.aimpact-cta p {
  color: var(--aimpact-muted);
  margin-bottom: 28px !important;
}

/* ---------- 页脚 ---------- */
.site-footer,
.ast-footer-overlay {
  background: #0b0d10 !important;
  border-top: 1px solid var(--aimpact-border);
  color: var(--aimpact-muted);
}

/* ---------- 通用页面 ---------- */
.ast-container {
  color: var(--aimpact-text);
}
a {
  color: var(--aimpact-accent);
}
/* ============================================================
   AIMPACT — WooCommerce 表单/购物车/结账 深色样式补充
   ============================================================ */

/* ---------- 表单控件 ---------- */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce input[type="search"],
.woocommerce select,
.woocommerce textarea,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page select,
.woocommerce-page textarea {
  background: var(--aimpact-bg-3) !important;
  border: 1px solid var(--aimpact-border) !important;
  color: var(--aimpact-text) !important;
  border-radius: 2px;
  padding: 12px 14px;
}
.woocommerce input:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
  border-color: var(--aimpact-accent) !important;
  outline: none;
}
.woocommerce form .form-row label {
  color: var(--aimpact-text);
  font-weight: 600;
  letter-spacing: .02em;
}

/* ---------- 表格 (购物车/结账汇总) ---------- */
.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
  background: var(--aimpact-bg-2) !important;
  border: 1px solid var(--aimpact-border) !important;
  border-radius: 4px;
}
.woocommerce table.shop_table th,
.woocommerce-page table.shop_table th {
  background: var(--aimpact-bg-3);
  color: #fff;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  border-bottom: 1px solid var(--aimpact-border);
}
.woocommerce table.shop_table td,
.woocommerce-page table.shop_table td {
  border-top: 1px solid var(--aimpact-border);
  color: var(--aimpact-text);
}
.woocommerce table.shop_table td.product-name a {
  color: var(--aimpact-text);
}

/* ---------- 按钮 (统一橙色) ---------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.woocommerce .wc-block-components-button,
.woocommerce button[name="update_cart"] {
  background: var(--aimpact-accent) !important;
  color: #0b0d10 !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 2px !important;
  border: 1px solid var(--aimpact-accent) !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-page a.button:hover {
  background: var(--aimpact-accent-dark) !important;
  color: #fff !important;
}

/* ---------- 优惠券/登录区块 ---------- */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  background: var(--aimpact-bg-2) !important;
  border-top-color: var(--aimpact-accent) !important;
  color: var(--aimpact-text) !important;
}
.woocommerce-info::before,
.woocommerce-message::before {
  color: var(--aimpact-accent) !important;
}

/* ---------- 产品详情页 ---------- */
.woocommerce div.product .product_title {
  color: #fff !important;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--aimpact-accent) !important;
  font-size: 1.6em;
  font-weight: 700;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--aimpact-muted) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #fff !important;
}
.woocommerce div.product .woocommerce-tabs .panel {
  background: var(--aimpact-bg-2) !important;
  border: 1px solid var(--aimpact-border);
  color: var(--aimpact-muted);
}

/* ---------- 结账/订单 ---------- */
#order_review_heading,
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
.woocommerce-account h2,
.woocommerce-account h3 {
  color: #fff !important;
  border-bottom-color: var(--aimpact-border) !important;
}
.woocommerce form #order_review,
.woocommerce form #order_review_heading {
  border-color: var(--aimpact-border) !important;
}
.woocommerce #payment {
  background: var(--aimpact-bg-2) !important;
}
.woocommerce #payment div.payment_box {
  background: var(--aimpact-bg-3) !important;
  color: var(--aimpact-text) !important;
}

/* ---------- 分类页卡片 ---------- */
.woocommerce ul.products li.product-category a img {
  border: 1px solid var(--aimpact-border);
  border-radius: 4px;
}
.woocommerce ul.products li.product-category h2.woocommerce-loop-category__title {
  color: #fff !important;
  text-align: center;
  font-size: 15px !important;
  letter-spacing: .06em;
}
.woocommerce ul.products li.product-category h2 mark {
  background: transparent;
  color: var(--aimpact-accent);
}


/* ===== 英雄区紧凑化 (仿 OSIGHT 尺寸, 用户要求) ===== */
.aimpact-hero { padding: 34px 0 30px; }
.aimpact-hero-tag { margin-bottom: 12px; padding: 6px 14px; font-size: 11px; }
.aimpact-hero-title { font-size: clamp(26px, 4.2vw, 44px) !important; margin-bottom: 10px !important; }
.aimpact-hero-sub { font-size: 14px; margin-bottom: 16px !important; max-width: 560px; }
.aimpact-btn { padding: 11px 26px; font-size: 12px; }
.aimpact-section { padding: 40px 0 24px; }
.aimpact-section-title { font-size: clamp(20px, 3vw, 28px) !important; }
.aimpact-section-sub { margin-bottom: 24px !important; }
.aimpact-cta { padding: 48px 20px; }
/* ============================================================
   AIMPACT — OSIGHT 风格首页布局 (v2)
   ============================================================ */

/* ---------- 促销横幅 (紧凑, 仿 osight) ---------- */
.aimpact-banner {
  background:
    radial-gradient(ellipse 50% 120% at 80% 0%, rgba(249,115,22,.15), transparent 60%),
    linear-gradient(180deg, #11161b, #0e1114);
  border-bottom: 1px solid var(--aimpact-border);
  padding: 28px 20px;
  text-align: center;
}
.aimpact-banner-inner {
  max-width: 720px;
  margin: 0 auto;
}
.aimpact-banner-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--aimpact-accent);
  border: 1px solid rgba(249,115,22,.4);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.aimpact-banner-title {
  font-size: clamp(22px, 3.6vw, 34px) !important;
  text-transform: uppercase;
  letter-spacing: .08em !important;
  margin: 0 0 8px !important;
}
.aimpact-banner-sub {
  color: var(--aimpact-muted);
  font-size: 14px;
  margin: 0 0 16px !important;
}
.aimpact-banner-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 产品系列卡片 (仿 osight series) ---------- */
.aimpact-series {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 34px auto 10px;
  padding: 0 20px;
}
.aimpact-series-card {
  background: var(--aimpact-bg-2);
  border: 1px solid var(--aimpact-border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.aimpact-series-card:hover {
  border-color: var(--aimpact-accent);
  transform: translateY(-3px);
}
.aimpact-series-card img {
  display: block;
  width: 100%;
  height: auto;
}
.aimpact-series-card h3 {
  font-size: 15px !important;
  letter-spacing: .04em !important;
  margin: 14px 16px 6px !important;
}
.aimpact-series-card p {
  color: var(--aimpact-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 16px 12px !important;
}
.aimpact-link {
  display: inline-block;
  margin: 0 16px 16px;
  color: var(--aimpact-accent) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.aimpact-link:hover {
  color: #fff !important;
}
@media (max-width: 900px) {
  .aimpact-series { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .aimpact-series { grid-template-columns: 1fr; }
}

/* ===== 首页内容区顶部零间距 ===== */
.home .site-main, .home article.ast-article-single, .home .entry-content { padding-top: 0 !important; margin-top: 0 !important; }
.home #metaslider-id-114 { margin-top: 0 !important; }
.home .entry-content > p:first-of-type { margin: 0 !important; }

/* ===== 首页菜单-轮播零间距 (v2 全覆盖) ===== */
.home #content, .home .ast-container, .home #primary, .home .content-area,
.home .site-main, .home article.ast-article-single, .home .entry-content,
.home #metaslider-id-114, .home .metaslider, .home .ml-slider, .home .flexslider {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.home .metaslider .flexslider, .home .flexslider {
  margin-bottom: 0 !important;
}

/* ===== 系列卡片放大2倍 (2列布局) ===== */
.aimpact-series {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.aimpact-series-card h3 {
  font-size: 19px !important;
  margin: 18px 20px 8px !important;
}
.aimpact-series-card p {
  font-size: 15px;
  margin: 0 20px 14px !important;
}
.aimpact-link {
  font-size: 15px;
  margin: 0 20px 20px;
}
@media (max-width: 640px) {
  .aimpact-series { grid-template-columns: 1fr; }
}

/* ===== 系列卡片整卡可点击 ===== */
.aimpact-series-card { display: block; text-decoration: none !important; color: inherit; }
.aimpact-series-card h3 { color: #fff !important; }

/* ===== 卡片图片铺满 + 标题叠加高对比 (v3) ===== */
.aimpact-series-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.aimpact-series-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.aimpact-series-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.06) 55%, transparent);
  z-index: 1;
  pointer-events: none;
}
.aimpact-series-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0 !important;
  padding: 14px 18px 18px;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.95);
  font-size: 20px !important;
  letter-spacing: .05em;
}
.aimpact-series-card p {
  position: absolute;
  bottom: 52px;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0 !important;
  padding: 0 18px;
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.95);
}

/* ===== TP28 卡片: 产品完整+缩小居中 ===== */
.aimpact-series-card.tp28 img {
  object-fit: contain;
  object-position: center;
  background: transparent;
}

/* ===== TP28 卡片: 模糊背景铺满 + 产品居中 ===== */
.aimpact-series-card.tp28::before {
  content: "";
  position: absolute;
  inset: -6%;
  background: url('/wp-content/uploads/2026/08/tp28-original.jpg') center / cover no-repeat;
  filter: blur(14px) brightness(0.5);
  z-index: 0;
}
.aimpact-series-card.tp28 img {
  object-fit: contain;
  object-position: center;
  z-index: 1;
}
.aimpact-series-card.tp28::after {
  z-index: 2;
}
.aimpact-series-card.tp28 h3 {
  z-index: 3;
}

/* ===== TP28 卡片: 白底融合 (无模糊无过渡) ===== */
.aimpact-series-card.tp28 {
  background: #ffffff;
}
.aimpact-series-card.tp28::before {
  display: none;
}
.aimpact-series-card.tp28::after {
  display: none;
}
.aimpact-series-card.tp28 img {
  object-fit: contain;
  object-position: center;
  z-index: 1;
}
.aimpact-series-card.tp28 h3 {
  color: #16181d !important;
  text-shadow: none !important;
  z-index: 3;
}

/* ===== TP28 卡片: 白底融合 + 深色标题条(白字高对比) ===== */
.aimpact-series-card.tp28 h3 {
  color: #ffffff !important;
  background: #1a1d21;
  text-shadow: none !important;
  padding: 16px 18px !important;
  margin: 0 !important;
  width: 100%;
}

/* ===== TP28 与其他3张卡片样式一致 ===== */
.aimpact-series-card.tp28 {
  background: var(--aimpact-bg-2);
}
.aimpact-series-card.tp28::after {
  display: block;
}
.aimpact-series-card.tp28 img {
  object-fit: cover;
  object-position: center;
}
.aimpact-series-card.tp28 h3 {
  color: #ffffff !important;
  background: transparent;
  text-shadow: 0 2px 8px rgba(0,0,0,0.95);
  padding: 14px 18px 18px !important;
}

/* ===== Scope Mount 卡片: 标题左上 + Learn More (图片17效果) ===== */
.aimpact-series-card.scope-card h3 {
  position: absolute;
  top: 14px;
  left: 16px;
  right: auto;
  bottom: auto;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  font-size: 19px !important;
  letter-spacing: .05em;
}
.aimpact-series-card.scope-card .aimpact-learn-more {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: auto;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ===== 精选产品模块: 标题左对齐 + Learn More 链接 ===== */
.aimpact-section.featured-scope .aimpact-section-title {
  text-align: left;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.aimpact-section.featured-scope .aimpact-section-sub {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto 30px !important;
  padding: 0 20px;
}
.aimpact-learn-link {
  color: #f97316 !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 13px;
  text-decoration: none !important;
}
.aimpact-learn-link:hover {
  color: #ffffff !important;
}

/* ===== 精选模块: 标题左 + Learn More 右 (同一行) ===== */
.featured-scope-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 20px;
}
.featured-scope-header .aimpact-section-title {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
}
.featured-scope-header .aimpact-learn-link {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

/* ===== Learn More: 默认白色, 悬停变黄 ===== */
.aimpact-learn-link {
  color: #ffffff !important;
}
.aimpact-learn-link:hover {
  color: #ffd700 !important;
}

/* ===== Learn More 悬停与菜单一致 (橙色 #f97316) ===== */
.aimpact-learn-link:hover {
  color: var(--aimpact-accent) !important;
}

/* ===== 菜单悬停强制橙色 (与 Learn More 一致) ===== */
.ast-builder-menu-1 .menu-link:hover,
.ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link {
  color: #f97316 !important;
}

/* ===== 精品选项卡 ===== */
.aimpact-tabs-section {
  padding: 50px 20px 30px;
}
.aimpact-tabs-nav {
  display: flex;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto 28px;
  flex-wrap: wrap;
}
.aimpact-tab-btn {
  background: transparent;
  border: 1px solid var(--aimpact-border);
  color: var(--aimpact-muted);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  border-radius: 2px;
  transition: all .2s ease;
}
.aimpact-tab-btn:hover {
  color: #ffffff;
  border-color: var(--aimpact-accent);
}
.aimpact-tab-btn.active {
  background: var(--aimpact-accent);
  border-color: var(--aimpact-accent);
  color: #0b0d10;
}
.aimpact-tabs-content {
  max-width: 1200px;
  margin: 0 auto;
}
.aimpact-tab-panel {
  display: none;
}
.aimpact-tab-panel.active {
  display: block;
}


/* ===== 选项卡按钮: 白字无背景 ===== */
.aimpact-tab-btn.active {
  background: transparent;
  border-color: #3a434c;
  color: #ffffff;
}
.aimpact-tab-btn.active:hover {
  border-color: var(--aimpact-accent);
}

/* ===== 精品选项卡内隐藏产品分类标签 ===== */
.aimpact-tab-panel .woocommerce-loop-product__category,
.aimpact-tab-panel .ast-woo-product-category {
  display: none !important;
}

/* ===== 选项卡导航行: Learn More 最左 + 选项卡按钮 ===== */
.aimpact-tabs-nav .aimpact-learn-link {
  margin-right: 28px;
  align-self: center;
}

/* ===== 选项卡按钮: 无边框无背景, 悬停无变化 ===== */
.aimpact-tab-btn {
  border: none !important;
  background: transparent !important;
  color: #ffffff !important;
}
.aimpact-tab-btn:hover {
  border-color: transparent !important;
  background: transparent !important;
  color: #ffffff !important;
}
.aimpact-tab-btn.active,
.aimpact-tab-btn.active:hover {
  border-color: transparent !important;
  background: transparent !important;
  color: #ffffff !important;
}

/* ===== Learn More 移到最右边 ===== */
.aimpact-tabs-nav .aimpact-learn-link {
  margin-left: auto;
  margin-right: 0;
}

/* ===== 选项卡按钮文字放大一倍 ===== */
.aimpact-tab-btn {
  font-size: 28px !important;
  padding: 6px 0 !important;
}

/* ===== 精品分区: 标题左 + Learn More 最右, 每区独立上下排列 ===== */
.aimpact-tabs-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.aimpact-tabs-nav .aimpact-learn-link {
  margin-left: auto;
  margin-right: 0;
}
.aimpact-tab-title {
  border: none !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: .08em;
  padding: 6px 0 !important;
  line-height: 1.2;
  cursor: default;
}
.aimpact-tabs-section + .aimpact-tabs-section {
  margin-top: 28px;
  padding-top: 0 !important;
}

/* ===== 分区间距统一: Red Dot Sight 标题上移, 与标题到网格间距一致 ===== */
.aimpact-tabs-section {
  padding-bottom: 0 !important;
}
.aimpact-tabs-content .woocommerce ul.products {
  margin-bottom: 0 !important;
}
.aimpact-tabs-content .woocommerce ul.products > li.product {
  margin-bottom: 0 !important;
}

/* ===== 文字大小写: 只首字母大写, 其余小写 (去掉全大写转换) ===== */
.aimpact-learn-link {
  text-transform: none !important;
}

/* ===== 移除卡片 hover 悬浮的 Add-to-Cart 按钮 (仅保留底部主按钮) ===== */
.woocommerce ul.products li.product .ast-on-card-button {
  display: none !important;
}

/* ===== 隐藏产品系列展示模块 (Series Showcase) ===== */
.aimpact-series {
  display: none !important;
}

/* ===== 统一版心: 轮播与产品分区共用内容容器 (统一左右留白, 边缘对齐) ===== */
.aimpact-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* 分区不再自带左右留白, 由 wrapper 统一控制, 避免响应式下边缘错位 */
.aimpact-tabs-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ===== All Products 列表页: 隐藏卡片上方占位 UI, 只保留标题/价格/按钮 ===== */
body.woocommerce-shop .woocommerce-products-header,
body.woocommerce-shop .woocommerce-breadcrumb,
body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-shop .woocommerce-ordering {
  display: none !important;
}
body.woocommerce-shop .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.woocommerce-shop .woocommerce ul.products li.product .ast-woo-product-category,
body.woocommerce-shop .woocommerce ul.products li.product .woocommerce-loop-product__category {
  display: none !important;
}

/* ===== All Products 页: 左侧分类侧边栏 ===== */
.aimpact-shop-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.aimpact-shop-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--aimpact-bg-2);
  border: 1px solid var(--aimpact-border);
  border-radius: 4px;
  padding: 18px 16px;
}
.aimpact-sidebar-crumbs {
  font-size: 13px;
  color: var(--aimpact-muted);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--aimpact-border);
}
.aimpact-sidebar-crumbs a {
  color: var(--aimpact-accent);
  text-decoration: none;
}
.aimpact-sidebar-crumbs a:hover {
  color: #ffffff;
}
.aimpact-sidebar-crumbs .sep {
  margin: 0 6px;
  color: var(--aimpact-muted);
}
.aimpact-sidebar-crumbs .current {
  color: #ffffff;
}
.aimpact-sidebar-toggle {
  display: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff;
  padding: 8px 10px;
  margin: 0 0 6px !important;
  cursor: pointer;
}
.aimpact-sidebar-cats {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
.aimpact-sidebar-cats li {
  margin: 0 !important;
}
.aimpact-sidebar-cats a {
  display: block;
  padding: 8px 10px;
  color: var(--aimpact-muted);
  text-decoration: none;
  border-radius: 2px;
  font-size: 14px;
  transition: color .15s ease, background .15s ease;
}
.aimpact-sidebar-cats a:hover {
  color: #ffffff;
  background: var(--aimpact-bg-3);
}
.aimpact-sidebar-cats li.active a {
  color: #0b0d10;
  background: var(--aimpact-accent);
  font-weight: 700;
}
.aimpact-shop-main {
  flex: 1;
  min-width: 0;
}
/* 移动端: 侧边栏折叠 */
@media (max-width: 768px) {
  .aimpact-shop-layout {
    flex-direction: column;
    gap: 16px;
  }
  .aimpact-shop-sidebar {
    width: 100%;
  }
  .aimpact-sidebar-toggle {
    display: block;
  }
  .aimpact-sidebar-toggle::after {
    content: " ▾";
    float: right;
  }
  .aimpact-sidebar-cats {
    display: none;
  }
  .aimpact-shop-sidebar.open .aimpact-sidebar-cats {
    display: block;
  }
  .aimpact-shop-sidebar:not(.open) .aimpact-sidebar-toggle::after {
    content: " ▸";
  }
}

/* ===== 所有产品卡片: 隐藏灰色分类标签 (全局统一, 各选项卡/页面全部应用) ===== */
.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce ul.products li.product .woocommerce-loop-product__category {
  display: none !important;
}

/* ===== PDP 产品详情页: 图库缩略图竖排左侧 + 主图右侧 (lightbox 由 photoswipe 提供) ===== */
.woocommerce-product-gallery:has(.flex-control-thumbs) {
  display: flex;
  flex-direction: row-reverse;
  gap: 12px;
}
.woocommerce-product-gallery .flex-viewport {
  flex: 1;
  min-width: 0;
}
.woocommerce-product-gallery .flex-control-thumbs {
  width: 92px;
  flex-shrink: 0;
  flex-direction: column;
  margin: 0 !important;
}
.woocommerce-product-gallery .flex-control-thumbs li {
  width: 100% !important;
  float: none !important;
  margin-bottom: 10px !important;
  cursor: pointer;
}
.woocommerce-product-gallery .flex-control-thumbs img {
  opacity: 1;
  border: 2px solid transparent;
  box-sizing: border-box;
  transition: border-color .15s ease;
}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  border-color: var(--aimpact-accent);
}
/* PDP 主图统一 1:1 正方形显示, 完整保留图片内容 (contain, 不裁切) */
.woocommerce-product-gallery .woocommerce-product-gallery__image img {
  aspect-ratio: 1 / 1;
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

/* ===== PDP 自定义图库: 左右结构 (左侧垂直滚动缩略图 + 右侧主图) =====
   仅 single-product 生效; 图库 JS 已停用 flexslider, 由 aimpact-gallery 脚本驱动 */
body.single-product .woocommerce-product-gallery {
  position: relative;
  display: flex !important;
  flex-direction: row-reverse !important;
  gap: 12px;
}
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  flex: 1;
  min-width: 0;
}
/* 主图 slide: 默认全部隐藏, 只显示激活的一张 (压过 Astra .nth-child(n+2) 规则) */
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
  display: none !important;
  width: 100% !important; /* 压过 Astra nth-child(n+2) 的 width:25% */
}
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image.aimpact-gallery-active {
  display: block !important;
  width: 100% !important; /* 关键: 激活 slide 必须全宽, 否则非首图显示变小 */
}
/* 缩略图列: 垂直排列, 超出 520px 上下滚动 */
body.single-product .woocommerce-product-gallery .aimpact-gallery-thumbs {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
  scrollbar-color: #f97316 rgba(255, 255, 255, .18);
}
body.single-product .woocommerce-product-gallery .aimpact-gallery-thumbs::-webkit-scrollbar {
  width: 6px;
}
body.single-product .woocommerce-product-gallery .aimpact-gallery-thumbs::-webkit-scrollbar-thumb {
  background: #f97316;
  border-radius: 3px;
}
/* 缩略图: 固定方形尺寸, object-fit:cover 填满容器不变形 */
body.single-product .woocommerce-product-gallery .aimpact-gallery-thumbs img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  box-sizing: border-box;
  opacity: .7;
  transition: border-color .15s ease, opacity .15s ease;
}
body.single-product .woocommerce-product-gallery .aimpact-gallery-thumbs img:hover {
  opacity: 1;
  border-color: rgba(249, 115, 22, .55);
}
/* 当前选中缩略图: 橙色高亮边框 */
body.single-product .woocommerce-product-gallery .aimpact-gallery-thumbs img.aimpact-thumb-active {
  border-color: #f97316;
  opacity: 1;
}
/* 灯箱触发按钮定位 (右上角) */
body.single-product .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 9;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(11, 13, 16, .55);
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
}

/* ===== PDP 底部: 隐藏 Tabs (Description / Additional Information / Reviews) ===== */
body.single-product .woocommerce-tabs {
  display: none !important;
}

/* ===== PDP 底部: Recommend Bundle 推荐捆绑区块 (OSIGHT 同款布局: 左3卡 + 右小计面板) ===== */
/* 修复: Astra 桌面端 .site-content .ast-container 是 flex, bundle 会变成 #primary 右侧的 flex 项,
   这里让它独占一行 (整宽, 位于产品内容下方, 不再悬浮右侧) */
body.single-product .site-content .ast-container {
  flex-wrap: wrap;
}
body.single-product .ast-container > .aimpact-bundle {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}
body.single-product .aimpact-bundle {
  background: #ffffff !important;
  color: #0b0d10;
  border-radius: 8px;
  padding: 24px;
  margin-top: 20px;      /* 与上方产品内容(图库+摘要)间距 20px */
  margin-bottom: 40px;   /* 与页脚之间留出距离 */
}
body.single-product .aimpact-bundle-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #0b0d10 !important;
  margin: 0 0 18px;
}
/* 主体: 左卡片区 + 右小计面板 (窄屏自动换行, 面板落到下方) */
body.single-product .aimpact-bundle-body {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
body.single-product .aimpact-bundle-cards {
  flex: 1 1 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  justify-content: center;
}
/* 卡片: osight 紧凑尺寸 */
body.single-product .aimpact-bundle-card {
  position: relative;
  flex: 0 1 175px;
  min-width: 150px;
  text-align: center;
  border: 1px solid #f0f1f3;
  border-radius: 8px;
  padding: 12px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
body.single-product .aimpact-bundle-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #f97316;
  z-index: 2;
}
body.single-product .aimpact-bundle-img img {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #ffffff;
}
body.single-product .aimpact-bundle-name {
  font-size: 12px;
  font-weight: 600;
  margin: 8px 0 4px;
  color: #0b0d10;
  flex: 1 1 auto;
  min-height: 32px; /* 固定两行高度, 保证三张卡价格在同一水平线 */
}
body.single-product .aimpact-bundle-name a {
  color: #0b0d10;
  text-decoration: none;
}
body.single-product .aimpact-bundle-name a:hover {
  color: #f97316;
}
body.single-product .aimpact-bundle-price {
  font-size: 14px;
  font-weight: 700;
  color: #0b0d10;
  margin-bottom: 8px;
}
body.single-product .aimpact-bundle-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #f97316 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.5;
}
body.single-product .aimpact-bundle-btn:hover {
  background: #ea580c !important;
  color: #ffffff !important;
}
/* 操作区: 首卡无内容但高度一致 -> 价格对齐; 数量按钮在卡片底部居中 */
body.single-product .aimpact-bundle-actions {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* osight 式数量增减按钮 (紧凑) */
body.single-product .aimpact-bundle-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
}
body.single-product .aimpact-bundle-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #f3f4f6;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #0b0d10;
  cursor: pointer;
  line-height: 1;
  box-sizing: border-box;
}
body.single-product .aimpact-bundle-qty-btn:hover {
  background: #e5e7eb;
}
/* 数字输入框: 强制白色 (压过 Astra 动态 CSS 的 input[type=number]:focus 深色规则) */
body.single-product .aimpact-bundle input.aimpact-bundle-qty-val {
  flex: 1;
  min-width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #0b0d10 !important;
  border: none !important;
  background: #ffffff !important;
  padding: 0 !important;
  -moz-appearance: textfield;
  appearance: textfield;
}
body.single-product .aimpact-bundle-qty-val::-webkit-outer-spin-button,
body.single-product .aimpact-bundle-qty-val::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* 未勾选卡片淡化 */
body.single-product .aimpact-bundle-card.aimpact-bundle-off {
  opacity: .45;
}
/* 右侧小计面板 (窄屏时自动换行到卡片下方) */
body.single-product .aimpact-bundle-panel {
  width: 200px;
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border-left: 1px solid #e5e7eb;
  padding-left: 24px;
}
body.single-product .aimpact-bundle-subtotal-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
}
body.single-product .aimpact-bundle-total {
  font-size: 20px;
  font-weight: 700;
  color: #0b0d10;
}
body.single-product .aimpact-bundle-addall {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #f97316 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.5;
}
body.single-product .aimpact-bundle-addall:hover {
  background: #ea580c !important;
  color: #ffffff !important;
}
@media (max-width: 768px) {
  body.single-product .aimpact-bundle-body {
    flex-direction: column;
  }
  body.single-product .aimpact-bundle-cards {
    flex-wrap: wrap;
  }
  body.single-product .aimpact-bundle-card {
    flex: 1 1 100%;
  }
  body.single-product .aimpact-bundle-panel {
    width: 100%;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
  }
}

/* ===== PDP: Features 特性列表 (数据驱动) ===== */
.aimpact-pdp-features {
  margin: 10px 0 2px;
}
.aimpact-pdp-features-title {
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff !important;
  margin: 0 0 8px !important;
}
.aimpact-pdp-features ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0 !important;
}
.aimpact-pdp-features li {
  color: var(--aimpact-muted);
  font-size: 14px;
  line-height: 1.7;
}
.woocommerce .product .entry-summary .price {
  margin: 8px 0 !important;
}
/* ===== 变体按钮式选择器 (variation swatches) ===== */
.aimpact-swatch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.aimpact-swatch-btn {
  border: 1px solid var(--aimpact-border);
  background: var(--aimpact-bg-3);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.aimpact-swatch-btn:hover {
  border-color: var(--aimpact-accent);
}
.aimpact-swatch-btn.active {
  border-color: var(--aimpact-accent);
  background: var(--aimpact-accent);
  color: #0b0d10;
  font-weight: 700;
}
/* 变体联动: 无匹配组合的按钮禁用态 */
.aimpact-swatch-btn.disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--aimpact-border);
  background: var(--aimpact-bg-3);
  color: var(--aimpact-muted);
}
/* 变体属性标题: 白色 + 字重600 (适配深色页面) */
.woocommerce div.product form.cart .variations th.label label,
.woocommerce div.product form.cart .variations td.label label {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* PDP 面包屑: 双栏容器顶部通栏, 小号弱化样式 */
.woocommerce div.product .woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--aimpact-muted);
  margin-bottom: 20px !important;
}
.woocommerce div.product .woocommerce-breadcrumb a {
  color: var(--aimpact-muted);
  text-decoration: none;
}
.woocommerce div.product .woocommerce-breadcrumb a:hover {
  color: var(--aimpact-accent);
}

/* ===== 产品网格修复: 等高卡片 + 统一图片裁切 + 按钮底部对齐 ===== */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
/* 商品图片区域: 统一 1:1 比例裁切 (图片内容居中裁剪) */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 12px;
}
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0 !important;
}
/* 卡片内容区: flex 纵向 + gap 10px 统一控制标题/价格/按钮间距, 卡片紧贴内容 */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.woocommerce ul.products li.product .astra-shop-summary-wrap .button {
  margin: 0 !important;
}

/* ===== 标题/价格零外边距, 间距全部由 gap 控制 ===== */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}
.woocommerce ul.products li.product .price {
  margin: 0 !important;
}
