/* ============================================================
   适老智家 · 改造前后对比页
   只放本页专有版式，公共部分复用 styles.css
   ============================================================ */

/* ---- 页头补充：对比方式说明 ------------------------------ */
.howto {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 24px;
  padding: .7rem 1.3rem;
  border: 2px dashed var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-2);
}
.howto b { color: var(--brand-strong); }
.howto svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--brand); }

/* ============================================================
   一组对比
   ============================================================ */
.ba-list {
  display: flex;
  flex-direction: column;
  gap: 54px;
  margin-top: 8px;
}

.ba-item {
  padding: 26px 22px 28px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* 房间标题行 */
.ba-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.ba-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.ba-head h2 {
  margin: 0 0 3px;
  font-size: clamp(1.5rem, 4.4vw, 1.95rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .02em;
}
.ba-head p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* ---- 两张图并排 ------------------------------------------ */
.ba-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.ba-shot {
  position: relative;
  margin: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 3px solid var(--line);
  background: #efe7de;
  line-height: 0;
}
.ba-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 改前：冷静的灰调边框 + 深红角标 */
.ba-shot.is-before { border-color: #d9cec3; }
.tag-before {
  background: var(--warn);
}
/* 改后：绿色边框 + 绿角标，一眼分得开 */
.ba-shot.is-after {
  border-color: var(--ok);
  box-shadow: 0 0 0 3px rgba(47, 125, 79, .12);
}
.tag-after {
  background: var(--ok);
}

.ba-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.05rem .55rem;
  border-bottom-right-radius: 14px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.2;
}
.ba-tag svg { width: 1.15rem; height: 1.15rem; }

/* ---- 改了什么 -------------------------------------------- */
.ba-changes {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ba-changes li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}
.ba-changes svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: .12rem;
  color: var(--ok);
}

/* ============================================================
   效果示意说明
   ============================================================ */
.note-sec { padding: 8px 0 0; }
.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 0;
  padding: 20px 22px;
  border: 2px dashed var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: .98rem;
  line-height: 1.6;
  font-weight: 700;
  color: var(--ink-2);
}
.disclaimer svg {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: .12rem;
  color: var(--brand);
}

/* ============================================================
   响应式：桌面左右并排
   ============================================================ */
@media (min-width: 760px) {
  .ba-pair { grid-template-columns: 1fr 1fr; gap: 18px; }
  .ba-item { padding: 30px 28px 30px; }
  .ba-changes {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 26px;
  }
  .ba-changes li { flex: 1 1 30%; min-width: 15rem; }
}

@media (max-width: 560px) {
  .ba-list { gap: 38px; }
  .ba-item { padding: 22px 16px 24px; }
  .ba-head { gap: 11px; margin-bottom: 16px; }
  .ba-num {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 13px;
    font-size: 1.18rem;
  }
  .ba-head h2 { font-size: 1.45rem; }
  .ba-head p { font-size: .96rem; }
  .ba-tag { font-size: .95rem; padding: .45rem .9rem .48rem; }
  .ba-changes li { font-size: .99rem; }
  .howto {
    flex-direction: column;
    gap: .3rem;
    align-items: center;
    padding: .8rem 1.1rem;
    text-align: center;
    line-height: 1.5;
  }
}
