/* =========================
   DETAIL BASE
========================= */

.detail-page {
  width: 100%;
  overflow-x: clip;
  background: #f7fcff;
  color: #19334a;
}

@supports not (overflow: clip) {
  .detail-page {
    overflow-x: hidden;
  }
}

.detail-container {
  width: min(1320px, calc(100% - 96px));
  margin: 0 auto;
}

.detail-section {
  padding: 120px 0;
}

.detail-label {
  margin: 0 0 16px;

  color: var(--orange);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.detail-section-heading {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 80px;
  align-items: end;

  margin-bottom: 52px;
}

.detail-section-heading h2 {
  margin: 0;

  color: #19334a;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.35;
}

.detail-section-heading > p {
  margin: 0;

  color: #6d7e8c;
  font-size: 16px;
  line-height: 2;
}


/* =========================
   BREADCRUMB
========================= */

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;

  padding: 30px 0 24px;

  color: #8b9aa5;
  font-size: 15px;
}

.detail-breadcrumb a {
  color: #647987;
}

.detail-breadcrumb a:hover {
  color: var(--orange);
}


/* =========================
   DETAIL HERO
========================= */

.detail-hero {
  padding-bottom: 80px;
}

.detail-hero-card {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;

  width: 100%;
  height: 700px;
  overflow: hidden;

  background: #fff;
  border: 1px solid #dcebf3;
  border-radius: 36px;

  box-shadow:
    0 26px 70px rgba(47, 106, 142, 0.12);
}


/* 左侧主图 */

.detail-gallery {
  min-width: 0;
  height: 100%;
  padding: 11px;
  overflow: hidden;

  background: #eaf7ff;
}

.detail-main-image {
  position: relative;

  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;

  background: #dceef7;
  border-radius: 27px;
}

.detail-main-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.detail-status {
  position: absolute;
  top: 24px;
  left: 24px;

  padding: 8px 17px;

  background: #ffb000;
  border-radius: 999px;

  color: #fff;
  font-size: 14px;
  font-weight: 800;

  box-shadow:
    0 12px 28px rgba(245, 154, 0, 0.24);
}


/* 右侧信息区 */

.detail-summary {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 46px 45px 34px;
  overflow: hidden;
}

.detail-summary-top {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-bottom: 22px;
}

.detail-property-number {
  margin: 0;

  color: #2c7cd7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.detail-property-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 5px 15px;

  background: #edf7ff;
  border-radius: 999px;

  color: #5a91c3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.detail-property-type small {
  font-size: 12px;
  letter-spacing: 0;
}

.detail-summary h1 {
  margin: 0;

  color: #19334a;
  font-size: clamp(36px, 3vw, 49px);
  line-height: 1.22;
}

.detail-catch {
  margin: 15px 0 0;

  color: #19334a;
  font-size: clamp(23px, 2.1vw, 31px);
  font-weight: 800;
  line-height: 1.48;
}

.detail-address {
  margin: 22px 0 0;

  color: #748592;
  font-size: 14px;
}

.detail-access {
  display: grid;
  gap: 5px;

  margin-top: 16px;
}

.detail-access p {
  margin: 0;

  color: #83929d;
  font-size: 13px;
}

.detail-access strong {
  margin-left: 9px;

  color: #344d60;
  font-size: 15px;
}


/* 价格框 */

.detail-price-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;

  margin-top: 25px;
  padding: 10px 23px;

  background: #fff;
  border: 1px solid #e5edf2;
  border-radius: 21px;

  box-shadow:
    0 13px 30px rgba(53, 96, 121, 0.07);
}

.detail-price-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-price-icon {
  display: grid;
  place-items: center;

  flex: 0 0 50px;
  width: 50px;
  height: 50px;

  background: #fff0e6;
  border-radius: 50%;

  color: var(--orange);
  font-size: 22px;
  font-weight: 800;
}

.detail-price-main small,
.detail-price-sub small {
  display: block;

  margin-bottom: 5px;

  color: #7d8d98;
  font-size: 13px;
  font-weight: 700;
}

.detail-price-main strong {
  color: var(--orange);
  font-size: 27px;
}

.detail-price-main strong span {
  margin-left: 3px;
  font-size: 15px;
}

.detail-price-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;

  padding-left: 20px;
  border-left: 1px solid #dfe7ec;
}

.detail-price-sub strong {
  color: #263f52;
  font-size: 16px;
}


/* 四项基础数据 */

.detail-quick-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  margin-top: 12px;

  background: #fff8e8;
  border-radius: 19px;
}

.detail-quick-data div {
  padding: 13px 9px;

  text-align: center;
}

.detail-quick-data div + div {
  border-left: 1px solid rgba(227, 182, 85, 0.25);
}

.detail-quick-data small {
  display: block;

  margin-bottom: 6px;

  color: #8b826b;
  font-size: 15px;
}

.detail-quick-data strong {
  color: #334d5e;
  font-size: 16px;
}


/* 按钮 */

.detail-summary-buttons {
  display: grid;
  gap: 10px;

  margin-top: auto;
  padding-top: 18px;
}

.detail-main-button {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 15px 21px;

  background: var(--orange);
  border-radius: 999px;

  color: #fff;
  font-size: 13px;
  font-weight: 800;

  box-shadow:
    0 14px 30px rgba(225, 103, 29, 0.18);
}

.detail-phone-button {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 20px;

  background: #f1f9fd;
  border-radius: 16px;

  color: #19334a;
}

.detail-phone-button small {
  color: #78909f;
  font-size: 9px;
}

.detail-phone-button strong {
  font-size: 17px;
}


/* =========================
   PHOTOS
========================= */

.detail-photo-section {
  background:
    linear-gradient(
      180deg,
      #f2faff 0%,
      #f8fcff 100%
    );
}


/* 整体布局：左侧平面图，右侧照片 */

.detail-gallery-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}


/* =========================
   固定平面图
========================= */

.detail-plan-card {
  display: flex;
  flex-direction: column;

  padding: 28px;

  background: #fff;
  border: 1px solid #dfeaf0;
  border-radius: 28px;

  box-shadow:
    0 18px 45px rgba(47, 99, 128, 0.08);
}

.detail-plan-heading {
  margin-bottom: 20px;
}

.detail-plan-heading span {
  display: block;

  margin-bottom: 6px;

  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.detail-plan-heading strong {
  color: #19334a;
  font-size: 22px;
}

.detail-plan-image {
  display: block;

  width: 100%;
  height: 340px;
  padding: 15px;
  overflow: hidden;

  background: #f8fcfe;
  border: 1px solid #e4edf2;
  border-radius: 20px;

  cursor: zoom-in;
}

.detail-plan-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.detail-plan-data {
  display: grid;
  grid-template-columns: 1fr 1fr;

  margin-top: 20px;

  background: #fff8e8;
  border-radius: 17px;
}

.detail-plan-data div {
  padding: 16px 12px;

  text-align: center;
}

.detail-plan-data div + div {
  border-left: 1px solid rgba(226, 181, 82, 0.3);
}

.detail-plan-data small {
  display: block;

  margin-bottom: 5px;

  color: #8a826c;
  font-size: 9px;
}

.detail-plan-data strong {
  color: #19334a;
  font-size: 17px;
}

.detail-plan-note {
  margin: 15px 0 0;

  color: #83929c;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}


/* =========================
   主照片区域
========================= */

.detail-photo-viewer {
  min-width: 0;
  padding: 12px;

  background: #fff;
  border: 1px solid #dfeaf0;
  border-radius: 28px;

  box-shadow:
    0 18px 45px rgba(47, 99, 128, 0.08);
}

.detail-photo-main-wrap {
  position: relative;

  width: 100%;
  height: 520px;
}

.detail-photo-main {
  position: relative;

  display: block;

  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;

  background: #dfedf4;
  border: 0;
  border-radius: 21px;

  cursor: zoom-in;
}

.detail-photo-main img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  background: #edf5f9;

  transition:
    opacity 0.22s ease,
    transform 0.5s ease;
}

.detail-photo-main:hover img {
  transform: scale(1.015);
}

.detail-photo-main.is-changing img {
  opacity: 0.25;
}

.detail-photo-expand {
  position: absolute;
  right: 20px;
  bottom: 18px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 15px;

  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;

  color: #19334a;
  font-size: 11px;
  font-weight: 700;

  box-shadow:
    0 10px 25px rgba(25, 51, 74, 0.13);

  backdrop-filter: blur(8px);
}

.detail-photo-expand b {
  color: var(--orange);
  font-size: 17px;
}


/* 左右切换按钮 */

.detail-photo-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;

  display: grid;
  place-items: center;

  width: 46px;
  height: 46px;

  background: rgba(255, 255, 255, 0.93);
  border: 0;
  border-radius: 50%;

  color: #19334a;
  font-size: 31px;
  line-height: 1;

  box-shadow:
    0 10px 28px rgba(25, 51, 74, 0.16);

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.detail-photo-arrow:hover {
  background: var(--orange);
  color: #fff;

  transform:
    translateY(-50%)
    scale(1.06);
}

.detail-photo-arrow-prev {
  left: 18px;
}

.detail-photo-arrow-next {
  right: 18px;
}


/* 缩略图横排 */

.detail-photo-thumbnails {
  display: flex;
  gap: 11px;

  margin-top: 12px;
  padding: 3px 2px 4px;
  overflow-x: auto;

  scrollbar-width: thin;
  scrollbar-color: #bdcfda transparent;
}

.detail-photo-thumbnail {
  position: relative;

  flex: 0 0 132px;
  height: 92px;
  padding: 0;
  overflow: hidden;

  background: #edf5f9;
  border: 3px solid transparent;
  border-radius: 15px;

  cursor: pointer;

  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.detail-photo-thumbnail:hover {
  transform: translateY(-2px);
}

.detail-photo-thumbnail.is-active {
  border-color: var(--orange);
}

.detail-photo-thumbnail img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  background: #edf5f9;
}


/* =========================
   图片放大 Lightbox
========================= */

.detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 40px 90px;

  background: rgba(12, 27, 39, 0.88);

  backdrop-filter: blur(8px);
}

.detail-lightbox.is-open {
  display: flex;
}

.detail-lightbox-content {
  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;
}

.detail-lightbox-content img {
  display: block;

  max-width: 100%;
  max-height: 88vh;

  object-fit: contain;

  border-radius: 10px;

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.34);
}

.detail-lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;

  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;

  color: #fff;
  font-size: 28px;

  cursor: pointer;
}

.detail-lightbox-arrow {
  position: absolute;
  top: 50%;

  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;

  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;

  color: #fff;
  font-size: 34px;

  cursor: pointer;

  transform: translateY(-50%);
}

.detail-lightbox-prev {
  left: 24px;
}

.detail-lightbox-next {
  right: 24px;
}

body.detail-lightbox-open {
  overflow: hidden;
}

/* =========================
   PROPERTY INFO
========================= */

.detail-info-section {
  background: #fff;
}

.detail-info-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.detail-info-block {
  padding: 33px 38px;

  background: #f8fcfe;
  border: 1px solid #e2edf2;
  border-radius: 28px;
}

.detail-info-block h3 {
  margin: 0 0 25px;

  color: #19334a;
  font-size: 25px;
}

.detail-data-list {
  margin: 0;
}

.detail-data-list div {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 20px;

  padding: 15px 0;

  border-bottom: 1px solid #e1eaee;
}

.detail-data-list dt,
.detail-data-list dd {
  margin: 0;

  font-size: 16px;
}

.detail-data-list dt {
  color: #87949d;
}

.detail-data-list dd {
  color: #314858;
  font-weight: 700;
}

/* =========================
   LIVING INFORMATION
========================= */

.detail-living-section {
  background:
    linear-gradient(
      180deg,
      #f2faff 0%,
      #f8fcff 100%
    );
}


/* 左右两个信息板块 */

.detail-living-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}


/* 共通卡片 */

.detail-living-panel {
  padding: 30px;

  background: #fff;
  border: 1px solid #dfeaf0;
  border-radius: 28px;

  box-shadow:
    0 18px 45px rgba(47, 99, 128, 0.07);
}

.detail-living-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;

  margin-bottom: 27px;
}

.detail-living-panel-heading span {
  display: block;

  margin-bottom: 7px;

  color: var(--orange);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.detail-living-panel-heading h3 {
  margin: 0;

  color: #19334a;
  font-size: 26px;
}

.detail-living-panel-heading p {
  margin: 0;

  color: #84939d;
  font-size: 15px;
  line-height: 1.7;
}


/* 设备列表 */

.detail-facility-list {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(180px, 1fr)
    );

  gap: 12px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.detail-facility-list li {
  display: flex;
  align-items: center;
  gap: 13px;

  min-height: 72px;
  padding: 12px 16px;

  background: #f5fbff;
  border: 1px solid #e2edf3;
  border-radius: 17px;
}

.detail-item-icon {
  display: grid;
  place-items: center;

  flex: 0 0 40px;
  width: 40px;
  height: 40px;

  background: #e5f5ff;
  border-radius: 50%;

  color: #3d8fca;
  font-size: 19px;
}

.detail-facility-list strong {
  color: #314b5d;
  font-size: 15px;
  line-height: 1.5;
}


/* 周边环境列表 */

.detail-surrounding-list {
  display: grid;
  gap: 11px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.detail-surrounding-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  min-height: 59px;
  padding: 13px 19px;

  background: #fff9e9;
  border-radius: 15px;
}

.detail-surrounding-list span {
  color: #6f6b60;
  font-size: 15px;
}

.detail-surrounding-list strong {
  color: var(--orange);
  font-size: 15px;
}

/* =========================
   MAP
========================= */

.detail-map-section {
  background: #f2faff;
}

.detail-map-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 25px;
}

.detail-map {
  height: 440px;
  overflow: hidden;

  border-radius: 27px;
}

.detail-map iframe {
  width: 100%;
  height: 100%;

  border: 0;
}

.detail-map-info {
  padding: 38px;

  background: #fff;
  border: 1px solid #dfebf1;
  border-radius: 27px;
}

.detail-map-info h3 {
  margin: 0;

  color: #19334a;
  font-size: 25px;
  line-height: 1.6;
}

.detail-map-info ul {
  display: grid;
  gap: 0;

  margin: 28px 0;
  padding: 0;

  list-style: none;
}

.detail-map-info li {
  display: flex;
  justify-content: space-between;

  padding: 16px 0;

  border-bottom: 1px solid #e4ecef;

  color: #667b88;
  font-size: 15px;
}

.detail-map-info li strong {
  color: #263f51;
}

.detail-map-info > a {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 15px 20px;

  background: #edf7fc;
  border-radius: 999px;

  color: #2f759f;
  font-size: 13px;
  font-weight: 700;
}


/* =========================
   CTA
========================= */

.detail-cta-section {
  background: #f2faff;
}

.detail-cta-card {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
  align-items: center;

  padding: 65px 72px;

  background: #ffd45b;
  border-radius: 35px;
}

.detail-cta-card h2 {
  margin: 0;

  color: #202f39;
  font-size: clamp(42px, 4.5vw, 62px);
  line-height: 1.35;
}

.detail-cta-card > div > p:not(.detail-label) {
  margin: 24px 0 0;

  color: rgba(35, 48, 57, 0.72);
  font-size: 14px;
  line-height: 2;
}

.detail-cta-actions {
  display: grid;
  gap: 13px;
}

.detail-cta-main {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 17px 22px;

  background: var(--orange);
  border-radius: 999px;

  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.detail-cta-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 17px 22px;

  background: #fff;
  border-radius: 18px;

  color: #263d4e;
}

.detail-cta-phone small {
  color: #788b97;
  font-size: 10px;
}

.detail-cta-phone strong {
  font-size: 20px;
}

.detail-facility-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f6faff;
  color: #64768a;
  font-size: 14px;
  line-height: 1.9;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {

  .detail-container {
    width: min(860px, calc(100% - 56px));
  }

  .detail-hero-card,
  .detail-section-heading,
  .detail-info-layout,
  .detail-map-layout,
  .detail-cta-card {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    min-height: 590px;
  }

.detail-facility-grid {
  grid-template-columns: repeat(2, 1fr);
}

  .detail-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 380px 240px 240px;
  }

  .detail-photo-large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .detail-cta-card {
    gap: 38px;
  }

}


@media (max-width: 700px) {

  .detail-container {
    width: calc(100% - 32px);
  }

  .detail-section {
    padding: 85px 0;
  }

  .detail-breadcrumb {
    padding-top: 20px;
  }

  .detail-hero-card {
    border-radius: 26px;
  }

  .detail-gallery {
    display: block;

    min-height: auto;
    padding: 8px;
  }

  .detail-main-image {
    height: 390px;
    border-radius: 20px;
  }

  .detail-gallery-side {
    display: none;
  }

  .detail-summary {
    padding: 38px 24px;
  }

  .detail-price-card {
    grid-template-columns: 1fr;
  }

  .detail-price-sub {
    padding: 20px 0 0;
    border-top: 1px solid #dfe7ec;
    border-left: 0;
  }

  .detail-quick-data {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-quick-data div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(227, 182, 85, 0.25);
  }

  .detail-quick-data div:nth-child(4) {
    border-top: 1px solid rgba(227, 182, 85, 0.25);
  }

  .detail-section-heading {
    gap: 20px;
  }

  .detail-facility-grid,
  .detail-surrounding-grid {
  grid-template-columns: 1fr;
}

  .detail-photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .detail-photo-grid figure {
    height: 280px;
  }

  .detail-info-block {
    padding: 28px 22px;
  }

  .detail-data-list div {
    grid-template-columns: 105px 1fr;
  }

  .detail-map {
    height: 350px;
  }

  .detail-comment-card,
  .detail-cta-card {
    padding: 45px 26px;
  }

}