/* 楼凤详情页 — PC */

body.page-apt-detail {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main--apt-detail {
  flex: 1;
  padding-top: 16px;
  padding-bottom: 40px;
}

.apt-detail-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apt-detail-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.apt-detail-main {
  width: 748px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apt-detail-side {
  width: 368px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apt-detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.apt-detail-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.apt-detail-card__icon {
  flex-shrink: 0;
  display: block;
}

.apt-detail-card__title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text-primary);
}

/* 主信息区 */
.apt-detail-hero {
  padding: 12px;
}

.apt-detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.apt-detail-gallery img {
  width: 100%;
  aspect-ratio: 172 / 229;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #d1d5db;
}

.apt-detail-hero__divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(0, 0, 0, 0.06);
}

.apt-detail-hero__title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.apt-detail-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.apt-detail-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.apt-detail-hero__meta-item img {
  width: 14px;
  height: 12px;
}

.apt-detail-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.apt-detail-info__row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  font-size: 14px;
  line-height: 24px;
}

.apt-detail-info__row dt {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.apt-detail-info__row dd {
  color: var(--text-secondary);
}

.apt-detail-info__row--service dd {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

.apt-detail-actions {
  display: flex;
  gap: 12px;
}

.apt-detail-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 82px;
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
  font-family: inherit;
}

.apt-detail-actions__btn img {
  flex-shrink: 0;
  display: block;
}

.apt-detail-actions__btn--fav {
  background: var(--tag-bg);
  color: var(--primary);
}

.apt-detail-actions__btn--fav.is-active {
  background: rgba(236, 72, 153, 0.12);
}

.apt-detail-actions__btn--fav:disabled,
.apt-detail-actions__btn--fav.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.apt-detail-actions__btn--report {
  background: var(--bg-h5);
  color: var(--text-title);
}

/* 联系方式 */
.apt-detail-contact {
  overflow: hidden;
}

.apt-detail-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #595959;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.apt-detail-status.is-error {
  background: #fff1f0;
  color: #cf1322;
}

.apt-detail-contact__list {
  margin: 0;
  padding: 12px 12px 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apt-detail-contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-primary);
}

.apt-detail-contact__item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.apt-detail-contact__item-label {
  flex: 0 0 72px;
  color: var(--text-secondary);
}

.apt-detail-contact__item-value {
  font-weight: 500;
  word-break: break-all;
}

.apt-detail-contact__copy {
  display: none;
}

.apt-detail-contact--guest {
  min-height: 146px;
}

.apt-detail-contact__body {
  padding: 12px 12px 16px;
}

.apt-detail-contact__tip {
  padding: 12px 12px 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
}

.apt-detail-contact__tip--guest {
  padding: 0;
  margin: 0 0 14px;
}

.apt-detail-contact__login-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--primary);
  cursor: pointer;
}

.apt-detail-contact__actions {
  display: flex;
  gap: 12px;
  padding: 12px;
}

.apt-detail-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 32px;
  padding: 0 16px;
  border-radius: 2px;
  font-size: 14px;
  line-height: 22px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.apt-detail-contact__btn--outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.apt-detail-contact__btn--primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

/* 详细介绍 */
.apt-detail-desc__body {
  padding: 12px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
}

/* 侧边提示 */
.apt-detail-tips {
  padding: 12px;
}

.apt-detail-tips__line {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
}

.apt-detail-tips__line a {
  color: var(--primary);
}

.apt-detail-tips__actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.apt-detail-tips__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 110px;
  height: 32px;
  padding: 0 16px;
  border: 1px solid var(--primary);
  border-radius: 2px;
  font-size: 14px;
  line-height: 22px;
  color: var(--primary);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
}

.apt-detail-tips__btn img {
  flex-shrink: 0;
  display: block;
}

/* 附近区域 */
.apt-detail-nearby__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 0;
  padding: 12px;
  list-style: none;
}

.apt-detail-nearby__list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
}

.apt-detail-nearby__list a img {
  flex-shrink: 0;
  display: block;
  width: 14px;
  height: auto;
}

.apt-detail-nearby__empty {
  grid-column: 1 / -1;
  color: #8c8c8c;
  font-size: 14px;
  line-height: 22px;
}

.apt-detail-back {
  display: none;
}

/* PC / H5 显隐 */
.apt-detail--h5 {
  display: none;
}

/* ===== H5: apartmentDetail-h5.css ===== */

/* 楼凤详情页 — H5 */

@media (max-width: 767px) {
  body.page-apt-detail {
    background: var(--bg-h5);
  }

  .page-apt-detail .site-header,
  .page-apt-detail .site-header-h5,
  .page-apt-detail .h5-drawer,
  .apt-detail--pc {
    display: none !important;
  }

  .apt-detail--h5 {
    display: block;
  }

  /* 顶栏 */
  .apt-detail-h5-head {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 16px;
    background: var(--bg-card);
  }

  .apt-detail-h5-head__back {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }

  .apt-detail-h5-head__title {
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: #292929;
    text-align: center;
  }

  .page-main--apt-detail {
    padding-top: 0;
    padding-bottom: 24px;
    background: transparent;
  }

  .page-main--apt-detail .container {
    max-width: none;
    padding: 0;
  }

  .page-apt-detail .site-footer {
    flex-shrink: 0;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  }

  .apt-detail-page {
    gap: 0;
  }

  /* 顶部轮播 */
  .apt-detail-banner {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #d1d5db;
  }

  .apt-detail-banner-swiper {
    width: 100%;
    height: 100%;
  }

  .apt-detail-banner-swiper .swiper-slide {
    height: 100%;
  }

  .apt-detail-banner__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .apt-detail-banner__pagination {
    position: absolute;
    right: 16px;
    bottom: 10px;
    left: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding-right: 10px;
    z-index: 2;
  }

  .apt-detail-banner__dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 !important;
    border-radius: 3px;
    background: var(--primary);
    opacity: 0.5;
    cursor: pointer;
  }

  .apt-detail-banner__dot--active {
    width: 8px;
    opacity: 1;
  }

  /* 公告 */
  .apt-detail-notice-h5 {
    padding: 16px;
    background: var(--tag-bg);
  }

  .apt-detail-notice-h5 p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--tag-red);
  }

  /* 布局 */
  .apt-detail-layout {
    flex-direction: column;
    gap: 0;
  }

  .apt-detail-main,
  .apt-detail-side {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .apt-detail-card {
    border-radius: 0;
    box-shadow: none;
  }

  /* 主信息拆分 */
  .apt-detail-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .apt-detail-hero__title-wrap,
  .apt-detail-hero__info-wrap {
    background: var(--bg-card);
    padding: 16px;
  }

  .apt-detail-hero__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .apt-detail-hero__title {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-title);
    margin: 0;
  }

  .apt-detail-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-placeholder);
  }

  .apt-detail-hero__meta-item--date,
  .apt-detail-hero__meta-item--views {
    flex: 1;
  }

  .apt-detail-hero__meta-item--views {
    text-align: center;
  }

  .apt-detail-hero__meta-item--views span::after {
    content: " 浏览";
  }

  .apt-detail-hero__meta-item--author {
    flex: 0 0 auto;
    padding: 2px 8px;
    background: var(--tag-bg);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--tag-red);
  }

  .apt-detail-hero__info-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
  }

  .apt-detail-info {
    gap: 12px;
    margin: 0;
  }

  .apt-detail-info__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .apt-detail-info__row dt {
    font-weight: 500;
    color: var(--text-title);
  }

  .apt-detail-info__row dd {
    color: var(--text-secondary);
  }

  .apt-detail-info__row--price dd {
    color: var(--primary);
  }

  .apt-detail-info__row--service {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .apt-detail-info__row--service dt {
    flex: 1 1 0;
    min-width: 0;
  }

  .apt-detail-info__row--service dd {
    flex: 0 0 280px;
    width: 280px;
    max-width: calc(100% - 56px);
    word-wrap: break-word;
  }

  .apt-detail-actions {
    gap: 12px;
    padding-top: 8px;
  }

  .apt-detail-actions__btn {
    flex: 1;
    min-width: 0;
    height: auto;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    gap: 2px;
  }

  .apt-detail-actions__btn--report {
    background: #f3f4f6;
    color: var(--text-secondary);
  }

  /* 区块标题 */
  .apt-detail-section-title {
    margin: 0;
    padding: 16px 16px 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-title);
  }

  /* 联系方式 */
  .apt-detail-contact {
    padding-bottom: 16px;
    background: var(--bg-card);
  }

  .apt-detail-contact--guest {
    min-height: 0;
  }

  .apt-detail-contact__guest-h5 {
    margin: 12px 16px 0;
    padding: 16px;
    background: var(--tag-bg);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .apt-detail-contact__guest-tip-h5 {
    margin: 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: var(--tag-red);
  }

  .apt-detail-contact__login-btn-h5 {
    width: 100%;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    font-family: inherit;
  }

  .apt-detail-contact__body--vip {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 16px 0;
    padding: 16px;
    background: var(--tag-bg);
    border-radius: 12px;
  }

  .apt-detail-contact__body--vip .apt-detail-contact__tip {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--tag-red);
  }

  .apt-detail-contact__body--vip .apt-detail-contact__tip[data-contact-pay-modal-open] {
    cursor: pointer;
  }

  .apt-detail-contact__body--vip .apt-detail-contact__actions {
    padding: 0;
    gap: 12px;
  }

  .apt-detail-contact__body--vip .apt-detail-contact__btn {
    flex: 1;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: none;
  }

  .apt-detail-contact__body--vip .apt-detail-contact__btn--outline {
    border: none;
    background: var(--bg-card);
    color: var(--primary);
  }

  .apt-detail-contact__body--vip .apt-detail-contact__btn--primary {
    border: none;
  }

  .apt-detail-contact__body--unlocked {
    padding: 0 16px;
    margin-top: 12px;
  }

  .apt-detail-contact__list {
    padding: 0;
    gap: 12px;
  }

  .apt-detail-contact__item {
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    background: var(--tag-bg);
    overflow: hidden;
  }

  .apt-detail-contact__item-main {
    flex: 1 1 auto;
    gap: 8px;
    overflow: hidden;
  }

  .apt-detail-contact__item-label {
    flex: 0 0 auto;
    color: var(--tag-red);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
  }

  .apt-detail-contact__item-value {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
  }

  .apt-detail-contact__copy {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--tag-red);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }

  /* 详细介绍 */
  .apt-detail-desc {
    background: var(--bg-card);
    padding-bottom: 16px;
  }

  .apt-detail-desc__body {
    padding: 12px 16px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
  }

  /* 侧边提示 */
  .apt-detail-tips {
    padding: 16px;
    background: var(--bg-card);
  }

  .apt-detail-tips__line {
    font-size: 14px;
    line-height: 1.5;
  }

  .apt-detail-tips__actions {
    margin-top: 12px;
  }

  .apt-detail-tips__btn {
    min-width: 110px;
    height: 32px;
    padding: 0 16px;
  }

  /* 附近区域 */
  .apt-detail-nearby {
    padding-bottom: 16px;
    background: var(--bg-card);
  }

  .apt-detail-nearby__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px 16px 0;
  }

  .apt-detail-nearby__list a img {
    width: 12px;
  }

  /* 底部广告 */
  .apt-detail-ad {
    padding: 16px;
    background: var(--bg-h5);
  }

  .apt-detail-ad .list-banner {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 9px;
    overflow: hidden;
  }

  .apt-detail-ad .list-banner__link {
    display: block;
    width: 100%;
  }

  .apt-detail-ad .list-banner__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 343 / 143;
    object-fit: cover;
  }

  .apt-detail-ad .list-banner__dots {
    position: absolute;
    right: 12px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0 10px;
    z-index: 1;
  }

  .apt-detail-ad .list-banner__dot {
    width: 4px;
    height: 4px;
    border-radius: 3px;
    background: var(--primary);
    opacity: 0.5;
  }

  .apt-detail-ad .list-banner__dot--active {
    width: 8px;
    opacity: 1;
  }
}
