/* smarthome-system.html — Like a Bosch 节奏 + 与 main.css Teaser 排序兼容 */

/* --- Bosch e-container（参考站版心，与本站 container 协调） --- */
.e-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .e-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* --- 首屏：标题区 + 主视觉成组 --- */
.sh-hero-stack {
  background: #fff;
}

/* --- M-Stage-Two 战役头（参考 Like a Bosch） --- */
.M-Stage-Two {
  background: transparent;
  padding: 2.75rem 0 1.5rem;
  text-align: center;
}

.M-Stage-Two__headline-container h1 {
  font-size: clamp(2rem, 5.2vw, 3.85rem);
  font-weight: 200;
  line-height: 1.12;
  margin: 0 0 1rem;
  color: #000;
  letter-spacing: -0.025em;
}

.M-Stage-Two__headline-container p {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 200;
  margin: 0 auto;
  max-width: 48rem;
  line-height: 1.55;
  color: #222;
}

.sh-hero-nowrap {
  white-space: nowrap;
}

.sh-highlight {
  color: #e2001a;
  font-weight: 700;
}

/* --- M-Image 全宽大图（避免黑边条；与 16:9 裁切协调） --- */
.sh-smarthome-main .M-Image {
  background: #fff;
}

.sh-hero-banner.M-Image {
  padding-bottom: 0.25rem;
}

.sh-smarthome-main .M-Image__image-wrapper {
  margin: 0 -15px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
  .sh-smarthome-main .M-Image__image-wrapper {
    margin: 0 -24px;
  }
}

.sh-smarthome-main .M-Image .A-Image__figure {
  margin: 0;
}

/* --- M-TextTwo --- */
.M-TextTwo {
  padding: 3.25rem 0;
  background: #fff;
}

.M-TextTwo--tight {
  padding: 2.75rem 0;
  background: #fafafa;
}

.M-TextTwo__body {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.M-TextTwo__intro-text {
  font-size: 1.125rem;
  font-weight: 200;
  line-height: 1.68;
  margin: 0;
  color: #1a1a1a;
}

.M-TextTwo__support {
  font-size: 1rem;
  font-weight: 200;
  line-height: 1.72;
  margin: 1rem 0 0;
  color: #333;
}

.sh-subhead {
  font-size: 1.35rem !important;
  font-weight: 400 !important;
}

/* --- 视频位（与 bosch.com.cn/like-a-bosch/ 同款优酷嵌入） --- */
.sh-video-section {
  background: #fff;
}

.sh-smarthome-main .sh-youku-embed {
  overflow: hidden;
  border-radius: 4px;
  background: #111;
  box-sizing: border-box;
  height: 600px;
  max-height: 600px;
}

.sh-smarthome-main .sh-youku-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
}

@media (max-width: 767px) {
  .sh-smarthome-main .sh-youku-embed {
    height: clamp(280px, 56vw, 600px);
  }
}

.M-IFrame__container {
  width: 100%;
}

/* --- 组件头（h2 + 副标） --- */
.sh-smarthome-main .a-component-header {
  text-align: center;
  margin-bottom: 2.75rem;
  padding-top: 2.25rem;
}

.sh-smarthome-main .a-component-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 200;
  margin: 0 0 0.85rem;
  color: #000;
  letter-spacing: -0.02em;
}

.sh-smarthome-main .a-component-header p {
  font-size: 1.0625rem;
  font-weight: 200;
  margin: 0;
  color: #555;
  max-width: 40rem;
  margin-inline: auto;
  line-height: 1.5;
}

/* --- Teaser 分组：先排满一行情景卡，再整行详情（避免 DOM 交错导致第 4 卡单独换行）--- */
.sh-smarthome-main .sh-teaser-system.M-AggregationExpandableTeaserGroup--separator {
  margin-top: 0;
  padding-bottom: 2.5rem;
}

/* 与 e-container 同宽；取消 main.css 大屏里对 details 的 100vw + translate  breakout（在版心内会一侧顶满视窗、另一侧留白） */
.sh-smarthome-main .sh-teaser-system .M-AggregationExpandableTeaserGroup__teasers {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.sh-smarthome-main .sh-teaser-system .M-AggregationExpandableTeaserGroup__teaser {
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
}

.sh-smarthome-main .sh-teaser-system .M-AggregationExpandableTeaserGroup__details {
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  transform: none;
  -webkit-transform: none;
}

/* 平板宽度：避免「三卡 + 一卡落单」再插入详情区，改为稳定 2×2 */
@media (min-width: 768px) and (max-width: 1199px) {
  .sh-smarthome-main .M-AggregationExpandableTeaserGroup__teaser {
    flex-basis: 50%;
    max-width: 50%;
  }
}

@media (min-width: 1200px) {
  .sh-smarthome-main .M-AggregationExpandableTeaserGroup__teaser {
    flex-basis: 25%;
    max-width: 25%;
  }
}

.sh-smarthome-main .M-AggregationExpandableTeaserGroup__details {
  flex-basis: 100%;
  max-width: 100%;
}

/* 情景卡：略像 Like a Bosch 大卡 */
.sh-smarthome-main .M-AggregationExpandableTeaserGroup__teaser .A-Teaser-AggregationExpandableTeaser {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
  .sh-smarthome-main
    .M-AggregationExpandableTeaserGroup__teaser
    .A-Teaser-AggregationExpandableTeaser:hover {
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.1);
  }
}

.sh-smarthome-main
  .M-AggregationExpandableTeaserGroup__teaser
  .A-Teaser-AggregationExpandableTeaser--active {
  box-shadow: 0 10px 36px rgba(0, 87, 145, 0.15);
}

.sh-smarthome-main .A-Teaser-AggregationExpandableTeaser__summary {
  padding: 0 12px 8px;
  border-bottom: none;
}

.sh-smarthome-main .A-Teaser-AggregationExpandableTeaser__headline {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 4px;
}

/* 展开详情区 */
.sh-smarthome-main .M-AggregationExpandableTeaserGroup__details {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.sh-smarthome-main .A-Teaser-AggregationExpandableTeaserDetails__collapsableContent {
  background: #f7f7f7;
  border-radius: 4px;
  padding: 1.5rem 0;
}

.sh-smarthome-main .A-Teaser-AggregationExpandableTeaserDetails__headline {
  font-weight: 300;
  font-size: 1.35rem;
}

.sh-smarthome-main .A-Teaser-AggregationExpandableTeaserDetails__text {
  font-size: 1rem;
  line-height: 1.65;
}

.sh-smarthome-main .sh-security-products-link {
  margin-top: 1.5rem;
  text-align: center;
}

.sh-smarthome-main .sh-security-products-link__button {
  display: inline-block;
  min-width: 180px;
  padding: 0.9rem 2.4rem;
  border: 1px solid #005791;
  border-radius: 999px;
  background: #005791;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.sh-smarthome-main .sh-security-products-link__button:hover,
.sh-smarthome-main .sh-security-products-link__button:focus {
  background: #00446f;
  border-color: #00446f;
  color: #fff;
  text-decoration: none;
}

.sh-smarthome-main .sh-teaser-system .A-Collapsable__wrapper {
  display: block;
}

/* Teaser 详情：接近 like-a-bosch 官页（max-height 由 main.css 的 collapsables 过渡 + 静态页补充淡入） */
.sh-smarthome-main
  .sh-teaser-system
  .A-Teaser-AggregationExpandableTeaserDetails__collapsables {
  transition: max-height 0.75s cubic-bezier(0.38, 0.04, 0.35, 0.96),
    opacity 0.55s cubic-bezier(0.38, 0.04, 0.35, 0.96);
}

.sh-smarthome-main .sh-teaser-system .M-AggregationExpandableTeaserGroup__details.sh-details-reveal {
  animation: sh-teaser-detail-reveal 0.6s cubic-bezier(0.38, 0.04, 0.35, 0.96)
    forwards;
}

@keyframes sh-teaser-detail-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 图片在 16:9 框内自动填满、裁切（任意分辨率素材） --- */
.sh-rsp-img {
  object-fit: cover;
  object-position: center;
}

picture.A-Image__picture {
  display: block;
  position: absolute;
  inset: 0;
}

picture.A-Image__picture .sh-rsp-img {
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .A-Teaser-AggregationExpandableTeaser__toggleIcon,
  .A-Teaser-AggregationExpandableTeaser::after,
  .A-Collapsable {
    transition: none !important;
  }

  .sh-smarthome-main .M-AggregationExpandableTeaserGroup__teaser .A-Teaser-AggregationExpandableTeaser {
    transition: none;
  }

  .sh-smarthome-main .sh-teaser-system .M-AggregationExpandableTeaserGroup__details.sh-details-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
