/* ========== 别墅电梯页面独立样式 - product-villa.html ========== */

/* ---------- 占位符（页面级增强） ---------- */
.img-placeholder {
  /* background: linear-gradient(135deg, #e8eef3 0%, #cdd9e2 100%); */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8a99;
  font-size: var(--fs-caption);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  animation: placeholderShimmer 3s infinite;
}
@keyframes placeholderShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========== Hero ========== */
.villa-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3a52 0%, #2d5a7b 40%, #4a7a9a 70%, #6b9ab8 100%);
}
.villa-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.villa-hero .hero-bg .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(30,60,85,0.3), rgba(45,90,123,0.5));
}
.villa-hero .hero-bg .img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.villa-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 50px 4%;
}
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35), 0 6px 18px rgba(0,0,0,0.45);
}
.hero-subtitle {
  font-size: var(--fs-h4);
  color: #fff;
  max-width: 500px;
  line-height: 1.8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 3px 10px rgba(0,0,0,0.35);
}

/* ========== Section 通用 ========== */
.sec {
  padding: 90px 0;
  width: 100%;
}
.sec-gray { background: #f5f7fa; }
.sec-white { background: #fff; }
.c {
  width: 100%;
  padding: 0 80px;
}
/* 标题样式 - 参照 product-home */
.tit {
  font-size: var(--fs-h1);
  font-weight: 600;
  color: #111;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 0.5px;
}

/* ========== 联动智在生活 ========== */
.smart-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
/* 第一行：左宽右窄 3:2 */
.smart-grid--wide-left {
  grid-template-columns: 3fr 2fr;
}
/* 第二行：左窄右宽 2:3 */
.smart-grid--wide-right {
  grid-template-columns: 2fr 3fr;
}
.smart-card {
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.smart-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.smart-img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f7fa;
}
.smart-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.smart-label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 16px 20px;
  font-size: var(--fs-lead);
  font-weight: 600;
  color: #000;
  letter-spacing: 0.3px;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ========== 联动守护安全 ========== */
.safe-layout {
  display: flex;
  gap: 40px;
  align-items: stretch;
}
.safe-left {
  flex: 0 0 64%;
}
.safe-left .img-placeholder,
.safe-left img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 10px;
}
.safe-right {
  flex: 1;
}
.safe-intro {
  font-size: var(--fs-h4);
  color: #555;
  line-height:1.2;
  margin-bottom: 24px;
  
}
.safe-right h2{
     font-size: var(--fs-h2);
  color: #000;
  font-weight: 600;
}
.safe-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.safe-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.safe-item:last-child {
  border-bottom: none;
}
.safe-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e8f4fd, #d0ebfa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0092d8;
  font-size: 18px;
}
.safe-text h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.safe-text p {
  font-size: var(--fs-body);
  color: #777;
  line-height: 2;
  margin: 0;
}

/* ========== 结构安全 ========== */
.struct-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 450px;
}
.struct-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.struct-bg .img-placeholder,
.struct-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.struct-cnt {
  position: relative;
  z-index: 2;
  padding: 40px 35px;
  max-width: 50%;
  padding-bottom: 0;
}
.struct-cnt h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.struct-sub {
  font-size: var(--fs-body);
  color: #444;
  margin-bottom: 28px;
}
.struct-items {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}
.struct-icon {
  flex-shrink: 0;
  width: 72px;
}
.struct-icon img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.struct-items-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.struct-item-text h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.struct-item-text p {
  font-size: var(--fs-body);
  color: #555;
  line-height: 1.65;
  margin: 0;
}
.struct-btm {
  position: relative;
  z-index: 2;
  margin: 0 35px 28px;
  border-radius: 10px;
  overflow: hidden;
   width: 45%;
}
.struct-btm .img-placeholder,
.struct-btm img {
 width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ========== 联动舒适体验 ========== */
.comf-sec {
  /* background: #f5f7fa; */
  overflow: hidden;
}
.comf-wrap {
  position: relative;
  overflow: hidden;
}
.comf-track {
  display: flex;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.comf-slide {
  flex: 0 0 55%;
  max-width: 50%;
  padding-right: 20px;

}
.comf-show {
   background: #f5f7fa;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  display: flex;
  gap: 24px;
  align-items: center;
}
.comf-img {
  flex: 0 0 60%;
  max-width: 480px;
}
.comf-img .img-placeholder,
.comf-img img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.comf-info {
  flex: 1;
}
.comf-name {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: #0092d8;
  margin-bottom: 10px;
}
.comf-desc {
  font-size: var(--fs-body);
  color: #666;
  line-height: 1.7;
  margin: 0;
}
.comf-arrows {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.comf-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #0092d8;
  color: #0092d8;
  font-size: var(--fs-lead);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
}
.comf-btn:hover {
  background: #0092d8;
  color: #fff;
}
.comf-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.comf-btn:disabled:hover {
  background: transparent;
  color: #0092d8;
}

/* ========== 空间美学 ========== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab {
  padding: 9px 26px;
  border: 1.5px solid #0092d8;
  border-radius: var(--btn-radius);
  background: #fff;
  color: #0092d8;
  font-size: var(--fs-lead);
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
}
.tab:hover {
  background: #e8f4fd;
}
.tab.on {
  background: #0092d8;
  color: #fff;
}
.panel {
  display: none;
  animation: fadeUp .4s ease;
}
.panel.on {
  display: block;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.door-wrap {
  position: relative;
  overflow: hidden;
}
.door-grid {
  display: flex;
  gap: 16px;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.door-card {
  flex: 0 0 calc((100% - 64px) / 5);
  max-width: calc((100% - 64px) / 5);
  text-align: center;
}
.door-card .door-img {
  margin-bottom: 10px;
  border-radius: 8px;
  /* background: #f8f9fa; */
  padding: 18px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.door-card .door-img .img-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
}
.door-card .door-img .img-placeholder::before {
  display: none;
}
.door-card .door-img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.door-name {
  font-size: var(--fs-body);
  color: #333;
}
.door-arrows {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  z-index: 5;
}
.door-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #0092d8;
  color: #0092d8;
  font-size: var(--fs-lead);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  line-height: 1;
}
.door-btn:hover {
  background: #0092d8;
  color: #fff;
}
.door-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.door-btn:disabled:hover {
  background: #fff;
  color: #0092d8;
}

/* ========== 产品选型 ========== */
.cfg-sec {
  background: #fafbfc;
  background: url(../images/p35b.png) no-repeat   center 100%;
}
.cfg-layout {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.cfg-left {
  flex: 0 0 45%;
}
.cfg-subtitle {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 18px;
  line-height: 1.4;
}
.cfg-desc {
  font-size: var(--fs-body);
  color: #555;
  line-height: 1.8;
  margin-bottom: 8px;
}
.cfg-table {
  width: 100%;
  font-size: var(--fs-body);
  border-collapse: collapse;
  margin-top: 80px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.cfg-table thead tr {
  background: #f5f7fa;
}
.cfg-table th,
.cfg-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.cfg-table th {
  color: #333;
  font-weight: 600;
}
.cfg-table td {
  color: #444;
}
.cfg-table tbody tr:last-child td {
  border-bottom: none;
}
.cfg-right {
  flex: 1;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.cfg-draw--main {
  flex: 0 0 55%;
}
.cfg-draws-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cfg-draw {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.draw-tag {
  display: inline-block;
  padding: 6px 22px;
  border: 1.5px solid #0092d8;
  border-radius: 25px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: #0092d8;
  margin-bottom: 16px;
}
.cfg-draw .img-placeholder,
.cfg-draw img {
  width: 80%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* ========== 品质保障 ========== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  transition: all .3s;
}
.feat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.1);
}
.feat-img {
  height: 390px;
  overflow: hidden;
}
.feat-img .img-placeholder,
.feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feat-body {
  padding: 20px 22px 24px;
}
.feat-body h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  text-align: center;
}
.feat-body p {
  font-size: var(--fs-body);
  color: #666;
  line-height: 1.65;
  margin: 0;
}

/* ========== 响应式 ========== */
@media (max-width: 1199px) {
  .smart-grid { gap: 16px; }
  .door-card { flex: 0 0 calc((100% - 32px) / 3); max-width: calc((100% - 32px) / 3); }
  .door-card .door-img { min-height: 300px; }
  .door-card .door-img img { max-height: 280px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-card:last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; }
  .comf-slide { flex: 0 0 50%; max-width: none; }
  .comf-show { flex-direction: column; padding: 22px; }
  .comf-img { flex: none; width: 100%; }
  .comf-img .img-placeholder, .comf-img img { height: 180px; }
  .cfg-layout { flex-direction: column; }
  .cfg-left { position: static; flex: none; width: 100%; }
  .cfg-right { flex-direction: row; gap: 20px; }
  .cfg-draw--main { flex: 0 0 50%; }
  .c { padding: 0 60px; }
  .tit { font-size: var(--fs-h1); }
}

@media (max-width: 991px) {
  .villa-hero { height: 78vh; min-height: 620px; }
  .hero-title { font-size: var(--fs-hero); }
  .hero-subtitle { font-size: var(--fs-h4); }
  .sec { padding: 60px 0; }
  .tit { font-size: var(--fs-h1); margin-bottom: 30px; }
  .c { padding: 0 30px; }
  .smart-grid,
  .smart-grid--wide-left,
  .smart-grid--wide-right { grid-template-columns: 1fr; }
  .smart-img { min-height: 240px; }
  .safe-layout { flex-direction: column; gap: 24px; }
  .safe-left { flex: none; width: 100%; }
  .safe-left .img-placeholder, .safe-left img { height: 300px; }
  .struct-wrap { min-height: 380px; }
  .struct-cnt { padding: 30px 24px; max-width: 100%;  }
  .struct-btm { margin: 0 24px 24px; }
  .comf-slide { flex: 0 0 50%; }
  .comf-show { flex-direction: column; padding: 20px; }
  .comf-img { flex: none; width: 100%; }
  .comf-img .img-placeholder, .comf-img img { height: 160px; }
  .door-card { flex: 0 0 calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); }
  .door-card .door-img { min-height: 240px; padding: 14px 10px; }
  .door-card .door-img img { max-height: 220px; }
  .cfg-layout { flex-direction: column; }
  .cfg-right { flex-direction: row; gap: 16px; }
  .cfg-draw--main { flex: 0 0 48%; }
  .cfg-draws-side { flex: 1; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-card:last-child { grid-column: span 1; max-width: 100%; }
  .safety-tab-btn { width: auto; height: auto; padding: 12px 24px; font-size: var(--fs-lead); border-radius: var(--btn-radius); }
}

@media (max-width: 767px) {
  .villa-hero { height: 70vh; min-height: 500px; }
  .hero-title { font-size: var(--fs-hero); }
  .hero-subtitle { font-size: var(--fs-h4); }
  .sec { padding: 50px 0; }
  .tit { font-size: var(--fs-h1); margin-bottom: 24px; }
  .c { padding: 0 20px; }
  .safe-item { padding: 10px 0; }
  .safe-icon { width: 36px; height: 36px; font-size: 16px; }
  .struct-wrap { min-height: 340px; }
  .struct-cnt { padding: 24px 16px; }
  .struct-items { flex-direction: column; gap: 16px; }
  .struct-icon { width: 60px; }
  .struct-items-text { gap: 16px; }
  .struct-btm { margin: 0 16px 20px; }
  .struct-btm .img-placeholder, .struct-btm img { height: 150px; }
  /* 手机端图片列表：一行 2 个 */
  .smart-grid,
  .smart-grid--wide-left,
  .smart-grid--wide-right { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .smart-img { min-height: 160px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feat-card:last-child { grid-column: span 2; max-width: calc(50% - 6px); margin: 0 auto; }
  /* 舒适体验轮播：手机端一屏 1 个 */
  .comf-slide { flex: 0 0 100%; max-width: 100%; }
  .comf-show { flex-direction: column; padding: 14px; }
  .comf-img { flex: none; width: 100%; }
  .comf-img .img-placeholder, .comf-img img { height: 120px; }
  .comf-desc { font-size: 12px; line-height: 1.6; }
  .door-card { flex: 0 0 calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); }
  .door-card .door-img { min-height: 200px; padding: 12px 8px; }
  .door-card .door-img img { max-height: 180px; }
  .feat-img { height: 140px; }
  .feat-body { padding: 16px 18px 20px; }
  .draw-tag { font-size: var(--fs-body); padding: 5px 16px; }

  /* 空间美学分类按钮：手机端一行 2 个 */
  .tabs { gap: 10px; margin-bottom: 24px; }
  .tab {
    flex: 0 0 calc(50% - 5px);
    padding: 10px 8px;
    text-align: center;
    font-size: var(--fs-lead);
  }
}

/* 手机端：覆盖 components.css 对 [class*="-grid"]/[class*="-card"] 的全局纵向堆叠规则，
   door-grid 轮播保持横向、一屏 1 个（露一点下一张） */
@media (max-width: 767.98px) {
  .door-wrap .door-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
  }
  .door-wrap .door-card {
    flex: 0 0 88% !important;
    max-width: 88% !important;
    width: auto !important;
  }
}