/**
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra Child Theme
Author: Brainstorm Force
Author URI: https://wpastra.com/about/
Template: astra
Version: 1.0.20
Text Domain: astra-child
*/

/* ============================================================
 * 段落底部边距修正
 * Astra 主题给 p 设了 margin-bottom: 1.75em，导致容器/单段落末尾
 * 多出一段空白。这里让「最后一个 p」不再有底部边距（无论单段还是多段，
 * 末段都紧贴容器底部），其余段落间距保持不变。
 * ============================================================ */
p:last-child {
	margin-bottom: 0;
}

/* ============================================================
 * 焦点虚线框修正
 * Astra 前台样式里有 `a:focus{outline:thin dotted}`（main.min.css /
 * frontend.min.css / style-flex.min.css 都带这条），鼠标点击链接后焦点
 * 停留在该 a 上，就会残留一圈虚线框。
 *
 * 这里只压掉「鼠标/触摸点击」产生的 outline：:focus-visible 由浏览器判定
 * 「本次聚焦是否需要可见提示」，键盘 Tab 聚焦时仍为真，父主题那条虚线框
 * 继续生效，键盘用户不会丢失焦点位置。若无条件写 a:focus{outline:0}，
 * 键盘操作将完全看不到当前焦点，是可访问性缺陷，故不那样做。
 *
 * 选择器前置 body 是为了把权重抬到 (0,0,2,2)，高于父主题的 a:focus，
 * 这样不依赖样式表的加载先后顺序，父主题文件无需任何改动。
 * ============================================================ */
body a:focus:not(:focus-visible),
body button:focus:not(:focus-visible),
body summary:focus:not(:focus-visible),
body [role="button"]:focus:not(:focus-visible),
body [tabindex]:focus:not(:focus-visible) {
	outline: 0;
	outline-offset: 0;
}


/* ZipGet inspiration panel v2 */
/* ============================================================
   闪得 灵感精选（首页第二屏右栏）
   标题操作栏 + 一张主推荐 + 四张分类卡。
   ============================================================ */

.elementor-widget-shande_demand_carousel,
.elementor-widget-shande_demand_carousel .elementor-widget-container,
.shande-demand-carousel {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.shande-demand-carousel,
.shande-demand-carousel * {
  box-sizing: border-box;
}

.shande-demand-carousel .inspiration-panel {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e7edf7;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(30, 64, 175, 0.06);
}

.shande-demand-carousel .inspiration-head {
  flex: 0 0 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.shande-demand-carousel .inspiration-head__title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 0;
  color: #17233d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.shande-demand-carousel .inspiration-head__title span {
  color: #7557e8;
  font-size: 17px;
  transform: translateY(-1px);
}

.shande-demand-carousel .inspiration-head__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.shande-demand-carousel .inspiration-refresh,
.shande-demand-carousel .inspiration-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #3974dc;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease;
}

.shande-demand-carousel .inspiration-refresh:hover,
.shande-demand-carousel .inspiration-more:hover {
  color: #6946dd;
}

.shande-demand-carousel .inspiration-refresh span {
  display: inline-block;
  font-size: 14px;
  transition: transform .25s ease;
}

.shande-demand-carousel .inspiration-refresh:hover span {
  transform: rotate(90deg);
}

.shande-demand-carousel .inspiration-more span {
  font-size: 16px;
  line-height: .7;
}

.shande-demand-carousel .inspiration-refresh:focus-visible,
.shande-demand-carousel .inspiration-more:focus-visible,
.shande-demand-carousel .inspiration-feature:focus-visible,
.shande-demand-carousel .inspiration-card:focus-visible {
  outline: 2px solid #4f86ee;
  outline-offset: 2px;
}

.shande-demand-carousel .inspiration-content {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.shande-demand-carousel .inspiration-set {
  display: none;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(210px, 34%) minmax(0, 1fr);
  gap: 10px;
}

.shande-demand-carousel .inspiration-set.is-active {
  display: grid;
  animation: inspirationFade .28s ease both;
}

.shande-demand-carousel .inspiration-feature,
.shande-demand-carousel .inspiration-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(145deg, #dbeafe, #ddd6fe);
  border: 1px solid rgba(212, 224, 245, .9);
  box-shadow: 0 8px 22px rgba(30, 64, 175, .08);
  isolation: isolate;
}

.shande-demand-carousel .inspiration-feature {
  height: 100%;
  border-radius: 13px;
}

.shande-demand-carousel .inspiration-feature img,
.shande-demand-carousel .inspiration-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .35s ease, filter .35s ease;
}

.shande-demand-carousel .inspiration-feature__shade,
.shande-demand-carousel .inspiration-card__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.shande-demand-carousel .inspiration-feature__shade {
  background:
    linear-gradient(180deg, rgba(19, 35, 66, .02) 32%, rgba(31, 49, 91, .78) 100%),
    linear-gradient(90deg, rgba(62, 109, 225, .12), rgba(113, 76, 224, .08));
}

.shande-demand-carousel .inspiration-feature__content {
  position: absolute;
  left: 13px;
  right: 52px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.shande-demand-carousel .inspiration-feature__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 3px 8px;
  color: #4c67ce;
  background: rgba(255, 255, 255, .93);
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(30, 64, 175, .1);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.shande-demand-carousel .inspiration-feature__title {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(15, 23, 42, .35);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shande-demand-carousel .inspiration-feature__arrow {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #315dbe;
  background: rgba(255, 255, 255, .95);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .14);
  font-size: 19px;
  font-weight: 700;
  transition: transform .25s ease;
}

.shande-demand-carousel .inspiration-feature:hover img,
.shande-demand-carousel .inspiration-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.05);
}

.shande-demand-carousel .inspiration-feature:hover .inspiration-feature__arrow {
  transform: translateX(3px);
}

.shande-demand-carousel .inspiration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.shande-demand-carousel .inspiration-card {
  height: 100%;
  border-radius: 11px;
}

.shande-demand-carousel .inspiration-card__shade {
  background: linear-gradient(180deg, rgba(18, 36, 66, .02) 30%, rgba(26, 42, 77, .78) 100%);
}

.shande-demand-carousel .inspiration-card__meta {
  position: absolute;
  left: 8px;
  right: 7px;
  bottom: 29px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.shande-demand-carousel .inspiration-card__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  color: #386fd4;
  background: rgba(255, 255, 255, .95);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
}

.shande-demand-carousel .inspiration-card__label {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 7px rgba(15, 23, 42, .35);
}

.shande-demand-carousel .inspiration-card__title {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, .93);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 7px rgba(15, 23, 42, .35);
}

@keyframes inspirationFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .elementor-widget-shande_demand_carousel,
  .elementor-widget-shande_demand_carousel .elementor-widget-container,
  .shande-demand-carousel {
    height: auto;
  }

  .shande-demand-carousel .inspiration-panel {
    height: auto;
    min-height: 690px;
  }

  .shande-demand-carousel .inspiration-content,
  .shande-demand-carousel .inspiration-set {
    height: auto;
  }

  .shande-demand-carousel .inspiration-set {
    grid-template-rows: 245px auto;
  }

  .shande-demand-carousel .inspiration-grid {
    grid-template-rows: none;
  }

  .shande-demand-carousel .inspiration-card {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 420px) {
  .shande-demand-carousel .inspiration-panel {
    min-height: 650px;
    padding: 11px;
  }

  .shande-demand-carousel .inspiration-head__actions {
    gap: 7px;
  }

  .shande-demand-carousel .inspiration-head__title {
    font-size: 15px;
  }

  .shande-demand-carousel .inspiration-refresh,
  .shande-demand-carousel .inspiration-more {
    font-size: 10px;
  }

  .shande-demand-carousel .inspiration-set {
    grid-template-rows: 225px auto;
  }

  .shande-demand-carousel .inspiration-feature__title {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shande-demand-carousel .inspiration-set.is-active {
    animation: none;
  }

  .shande-demand-carousel .inspiration-feature img,
  .shande-demand-carousel .inspiration-card img,
  .shande-demand-carousel .inspiration-feature__arrow,
  .shande-demand-carousel .inspiration-refresh span {
    transition: none;
  }
}


/* Inspiration panel: pure CSS batch switch */
.shande-demand-carousel .inspiration-target {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.shande-demand-carousel .inspiration-refresh--back { display: none; }
.shande-demand-carousel .inspiration-set--one { display: grid; }
.shande-demand-carousel .inspiration-set--two { display: none; }

.shande-demand-carousel #zipget-inspiration-set-two:target ~ .inspiration-head .inspiration-refresh--next { display: none; }
.shande-demand-carousel #zipget-inspiration-set-two:target ~ .inspiration-head .inspiration-refresh--back { display: inline-flex; }
.shande-demand-carousel #zipget-inspiration-set-two:target ~ .inspiration-content .inspiration-set--one { display: none; }
.shande-demand-carousel #zipget-inspiration-set-two:target ~ .inspiration-content .inspiration-set--two {
  display: grid;
  animation: inspirationFade .28s ease both;
}

.shande-demand-carousel #zipget-inspiration-set-one:target ~ .inspiration-head .inspiration-refresh--next { display: inline-flex; }
.shande-demand-carousel #zipget-inspiration-set-one:target ~ .inspiration-head .inspiration-refresh--back { display: none; }
.shande-demand-carousel #zipget-inspiration-set-one:target ~ .inspiration-content .inspiration-set--one { display: grid; }
.shande-demand-carousel #zipget-inspiration-set-one:target ~ .inspiration-content .inspiration-set--two { display: none; }


/* ZipGet inspiration checkbox switch */
.shande-demand-carousel .inspiration-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.shande-demand-carousel label.inspiration-refresh {
  cursor: pointer;
  user-select: none;
}
.shande-demand-carousel .inspiration-toggle:checked ~ .inspiration-head .inspiration-refresh span {
  transform: rotate(180deg);
}
.shande-demand-carousel .inspiration-toggle:checked ~ .inspiration-content .inspiration-set--one {
  display: none;
}
.shande-demand-carousel .inspiration-toggle:checked ~ .inspiration-content .inspiration-set--two {
  display: grid;
  animation: inspirationFade .28s ease both;
}

.shande-demand-carousel .inspiration-toggle { pointer-events: auto; }


/* ZipGet inspiration native refresh forms */
.shande-demand-carousel .inspiration-refresh-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.shande-demand-carousel .inspiration-refresh-form .inspiration-refresh {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.shande-demand-carousel .inspiration-refresh-form.inspiration-refresh--back {
  display: none;
}


/* ZipGet unique refresh control: avoids legacy carousel click handlers */
.shande-demand-carousel .zipget-refresh-control {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 3px 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: #3974dc;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease;
}
.shande-demand-carousel .zipget-refresh-control:hover { color: #6946dd; }
.shande-demand-carousel .zipget-refresh-control span {
  display: inline-block;
  font-size: 14px;
  transition: transform .25s ease;
}
.shande-demand-carousel .zipget-refresh-control:hover span { transform: rotate(90deg); }
.shande-demand-carousel .zipget-refresh-control:focus-visible {
  outline: 2px solid #4f86ee;
  outline-offset: 2px;
}

/* ZipGet inspiration refresh control cleanup v1.0.13 */
.shande-demand-carousel .zipget-refresh-control.inspiration-refresh--back {
  display: none;
}

.shande-demand-carousel .zipget-refresh-control.inspiration-refresh--next {
  display: inline-flex;
}

/* ZipGet header/footer logo sizing v1.0.14 */
.shande-header .logo,
.shande-header .logo::before {
  width: 132px !important;
  height: 50px !important;
}

.shande-header .logo::before {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
}

.elementor-location-footer .elementor-element-b5d1c43 img {
  width: 45% !important;
  max-width: 235px !important;
  height: auto !important;
}

/* ZipGet homepage demand CTA link v1.0.18 */
html body.home #page .shande-hero-widget .hero-hotwords::after {
  content: none !important;
}
html body.home #page .shande-hero-widget .hero-demand-cta {
  order: 4;
  flex-basis: 100%;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  display: block;
  align-self: center;
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  color: #1769d2;
  text-decoration: none;
  cursor: pointer;
}
html body.home #page .shande-hero-widget .hero-demand-cta:hover,
html body.home #page .shande-hero-widget .hero-demand-cta:focus-visible {
  color: #0f55b4;
  text-decoration: underline;
}
@media (max-width: 767px) {
  html body.home #page .shande-hero-widget .hero-demand-cta {
    margin-top: 0;
    padding: 0 10px;
    font-size: 13px;
    line-height: 20px;
  }
}
/* 首页需求广场“查看更多”链接 */
html body.home #page .demand-plaza__list-more {
  color: #1769D2 !important;
  font-weight: 500;
  text-decoration: none;
}

html body.home #page .demand-plaza__list-more:hover,
html body.home #page .demand-plaza__list-more:focus-visible {
  color: #0F55B4 !important;
  text-decoration: underline;
}
