/* ============================================================
   适老智家 · 方案与套餐页
   只放本页专有版式，公共部分（页头/返回/导航）全部复用 styles.css
   ============================================================ */

/* ============================================================
   三档套餐
   ============================================================ */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 26px 30px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.plan-card.best {
  border: 3px solid var(--brand);
  box-shadow: 0 2px 3px rgba(60, 35, 20, .06), 0 22px 44px -22px rgba(138, 56, 20, .55);
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 24px;
  transform: translateY(-52%);
  padding: .34rem 1rem;
  border-radius: 999px;
  background: var(--brand-strong);
  color: #fff;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}
.plan-badge.plain {
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink-2);
}

.plan-step {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--brand-strong);
  letter-spacing: .14em;
}
.plan-name {
  margin: 6px 0 10px;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.2;
}
.plan-sub {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 700;
}

.plan-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 13px;
}
.plan-list li {
  position: relative;
  padding-left: 2.15rem;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.5;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .12em;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a3814' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.4 4.4L18.5 6.8'/%3E%3C/svg%3E");
  background-size: 1.05rem;
  background-position: center;
  background-repeat: no-repeat;
}
/* 「包含上一档全部」这一条，加重显示 */
.plan-list li.inherit {
  font-weight: 900;
  color: var(--brand-strong);
}
.plan-list li.inherit::before {
  background-color: var(--brand-strong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.4 4.4L18.5 6.8'/%3E%3C/svg%3E");
}

.plan-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px dashed var(--line);
}
.plan-for {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 800;
}
.plan-for span { color: var(--brand-strong); }
.plan-note {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 700;
}

/* ============================================================
   单项加装
   ============================================================ */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.addon-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
}
.addon-item svg {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
  color: var(--brand-strong);
}
.addon-item b {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

/* ============================================================
   摄像头专讲
   ============================================================ */
.cam-sec {
  background: #fff;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.cam-box {
  padding: 40px 28px;
  border-radius: var(--r);
  background: var(--brand-soft);
  border: 2px solid #f0dccd;
}
.cam-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}
.cam-head svg {
  width: 3.2rem; height: 3.2rem; flex: none;
  color: var(--brand-strong);
}
.cam-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 4.4vw, 2.05rem);
  font-weight: 900;
  line-height: 1.25;
}
.cam-head p {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink-2);
}

.cam-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cam-grid li {
  display: flex;
  gap: 14px;
  padding: 22px 20px;
  background: #fff;
  border-radius: var(--r-sm);
  border: 2px solid #f0dccd;
}
.cam-grid svg {
  width: 1.85rem; height: 1.85rem; flex: none;
  margin-top: .1rem;
  color: var(--brand-strong);
}
.cam-grid b {
  display: block;
  margin-bottom: 5px;
  font-size: 1.16rem;
  font-weight: 900;
}
.cam-grid span {
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 700;
  color: var(--ink-2);
}

/* ============================================================
   按房间的改造清单
   ============================================================ */
.room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.room-card {
  padding: 26px 24px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r);
}
.room-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 1.3rem;
  font-weight: 900;
}
.room-card h3 svg {
  width: 1.7rem; height: 1.7rem; flex: none;
  color: var(--brand-strong);
}
.room-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.room-card li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-2);
}
.room-card li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: .68em;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--brand);
}

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 660px) {
  .addon-grid { grid-template-columns: repeat(3, 1fr); }
  .cam-grid   { grid-template-columns: repeat(2, 1fr); }
  .room-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .plan-grid  { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .addon-grid { grid-template-columns: repeat(4, 1fr); }
  .page-head  { padding: 66px 0 10px; }
  .cam-box    { padding: 52px 44px; }
  .cam-grid   { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .room-grid  { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (max-width: 560px) {
  /* 图标与标题改为上下排，标题才有整行宽度，不再断在中间 */
  .cam-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
  }
  .cam-head svg { width: 2.6rem; height: 2.6rem; }
  .cam-head h2 { font-size: 1.4rem; }
  .plan-card { padding: 34px 22px 26px; }
  .plan-name { font-size: 1.6rem; }
}
