/* =========================================================
   信联天地 · 响应式
   断点：1440 / 1024 / 768 / 430 / 390
   ========================================================= */

/* 大屏 → 中屏 */
@media (max-width: 1280px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .property-grid--feat { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__grid > div:nth-child(4) { grid-column: 1 / -1; }
}

/* 中屏 → 平板 */
@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .hero { min-height: 86vh; }
  .hero__inner { padding: 156px 0 72px; }
  .stat-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid,
  .detail-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-side { position: static; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .detail-hero__strip { grid-template-columns: repeat(2, 1fr); }
  .detail-hero__strip > div:nth-child(2) { border-right: none; }
  .detail-hero__strip > div { border-bottom: 1px solid rgba(255,255,255,.12); }
  .detail-hero__strip > div:nth-last-child(-n+2) { border-bottom: none; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta .btn--ghost { display: none; }
  .gallery-mosaic { grid-auto-rows: 160px; }
}

/* 平板 → 手机 */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-sub { margin-bottom: 32px; }
  .hero { min-height: 78vh; }
  .hero__inner { padding: 130px 0 56px; }
  .hero__title { font-size: clamp(32px, 8vw, 44px); }
  .hero__sub { font-size: 15px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .property-grid { grid-template-columns: 1fr; gap: 16px; }
  .property-card--feat { grid-template-columns: 1fr; }
  .property-card--feat .property-card__media { min-height: 240px; }
  .property-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .property-row__media { aspect-ratio: 16 / 10; }
  .property-row__cta {
    border-left: none;
    border-top: 1px dashed var(--c-gray-200);
    flex-direction: row;
    justify-content: space-between;
  }
  .property-row__cta .btn { flex: 1; }
  .gallery-mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
    gap: 8px;
  }
  .gallery-mosaic > a:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .gallery-mosaic > a:nth-child(2) { grid-column: span 2; }
  .gallery-mosaic > a:nth-child(3) { grid-column: span 2; }
  .gallery-mosaic > a:nth-child(4) { grid-column: span 2; }
  .gallery-mosaic > a:nth-child(5) { grid-column: span 2; }
  .gallery-mosaic > a:nth-child(6) { grid-column: span 2; }
  .gallery-mosaic > a:nth-child(7) { grid-column: span 2; }
  .gallery-mosaic > a:nth-child(8) { grid-column: span 2; }
  .gallery-strip { grid-template-columns: 1fr; }
  .gallery-strip > a:first-child { grid-column: span 1; aspect-ratio: 16 / 9; }
  .feature-list { grid-template-columns: 1fr; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding: 12px 0; -webkit-overflow-scrolling: touch; }
  .filter-bar__chip { flex: 0 0 auto; }
  .contact-card { padding: 32px 24px; }
  .contact-card h2 { font-size: 24px; }
  .form-card { padding: 24px; }
  .location-card { padding: 24px; }
  .service-card { padding: 24px; flex-direction: column; gap: 16px; }
  .service-card__icon { width: 48px; height: 48px; font-size: 22px; }
  .site-footer { padding: 48px 0 24px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__grid > div:nth-child(4) { grid-column: auto; }
  .advantage { padding: 24px 20px; }
  .floating-cta { display: none; }
  .mobile-bottom-cta { display: flex; }
  .back-top { display: none !important; }
  body { padding-bottom: 72px; }
  .hero__scroll { display: none; }

  /* 高德地图 · 移动端 */
  .amap-map, .amap-fallback { min-height: 300px; aspect-ratio: 4 / 3; }
  .amap-tools { padding: 18px; }
  .amap-tools__head { flex-direction: column; align-items: stretch; gap: 12px; }
  .amap-route-bar, .amap-poi-bar { gap: 6px; }
  .amap-input { min-width: 0; width: 100%; }
  .amap-poi-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .amap-poi-bar .chip { flex: 0 0 auto; }
  .amap-poi-list { grid-template-columns: 1fr; }
  .amap-panel { max-height: 240px; }
  .amap-status { font-size: 11px; padding: 6px 10px; left: 10px; top: 10px; }
}

/* 手机 → 小屏 */
@media (max-width: 430px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero__inner { padding: 116px 0 48px; }
  .hero__title { font-size: 30px; }
  .stat-strip__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-strip__item .num { font-size: 26px; }
  .detail-hero__strip { grid-template-columns: 1fr 1fr; }
  .property-card__body { padding: 18px; }
  .property-card__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .property-card__cta .btn { width: 100%; }
  .gallery-mosaic { grid-auto-rows: 96px; }
}

@media (max-width: 390px) {
  .hero__title { font-size: 28px; }
  .property-card__body { padding: 16px; }
  .detail-hero__strip .value { font-size: 18px; }
  .filter-bar__chip { font-size: 13px; padding: 6px 12px; }
}

/* 横屏微调 */
@media (max-height: 600px) and (orientation: landscape) {
  .hero { min-height: 100vh; }
  .hero__inner { padding: 110px 0 48px; }
}