/* ===== realestatepro 增强层（自托管后追加，纯 CSS，不依赖 Framer） ===== */

html { scroll-behavior: smooth; }
::selection { background: #0a2540; color: #fff; }

/* 顶部滚动进度条 */
#enh-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 99998;
  background: linear-gradient(90deg, #0a2540, #2f6df6, #6ea8ff);
  box-shadow: 0 0 12px rgba(47, 109, 246, .55);
  transition: width .12s linear; pointer-events: none;
}

/* 回到顶部按钮 */
#enh-top {
  position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; z-index: 99998;
  border: 0; border-radius: 50%; cursor: pointer; color: #fff; font: 600 22px/50px system-ui, sans-serif;
  background: rgba(10, 37, 64, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(22px) scale(.82);
  transition: opacity .4s, transform .4s, background .25s;
}
#enh-top.show { opacity: 1; transform: none; }
#enh-top:hover { background: #2f6df6; transform: translateY(-4px); box-shadow: 0 16px 36px rgba(47, 109, 246, .45); }

/* 滚动渐显 */
.enh-prep { opacity: 0; transform: translateY(36px); filter: blur(5px); }
.enh-in {
  opacity: 1 !important; transform: none !important; filter: none !important;
  transition: opacity .85s cubic-bezier(.2, .7, .2, 1), transform .85s cubic-bezier(.2, .7, .2, 1), filter .85s ease;
}

/* 房产卡片：悬浮抬升 + 图片放大 */
a[href*="properties/"] { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease !important; }
a[href*="properties/"]:hover { transform: translateY(-10px) !important; box-shadow: 0 30px 60px -20px rgba(8, 28, 52, .45) !important; z-index: 6; }
a[href*="properties/"] [data-framer-name="Property Image Wrap"] { overflow: hidden !important; }
a[href*="properties/"] [data-framer-name="Property Image"] { transition: transform .75s cubic-bezier(.2, .7, .2, 1) !important; }
a[href*="properties/"]:hover [data-framer-name="Property Image"] { transform: scale(1.07) !important; }

/* CTA 药丸 / 圆形箭头微交互 */
[data-framer-name="Nav Button Wrap"] { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s !important; }
[data-framer-name="Nav Button Wrap"]:hover { transform: translateY(-2px) scale(1.03) !important; box-shadow: 0 12px 28px rgba(0, 0, 0, .28) !important; }
[data-framer-name="Button Circle"] { transition: transform .4s cubic-bezier(.2, .7, .2, 1) !important; }
a:hover [data-framer-name="Button Circle"], button:hover [data-framer-name="Button Circle"] { transform: rotate(45deg) scale(1.12) !important; }

/* 导航链接下划线（从中间展开） */
nav a[href*="#"] { position: relative; }
nav a[href*="#"]::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -4px; height: 2px;
  background: #2f6df6; transition: left .3s ease, right .3s ease; border-radius: 2px;
}
nav a[href*="#"]:hover::after { left: 0; right: 0; }

/* 媒体偏好：减少动效 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enh-prep { opacity: 1; transform: none; filter: none; }
  * { transition: none !important; }
}

/* === Hero 高清图 + 电影感遮罩 + Ken Burns 推拉（更炫酷） === */
[data-framer-name="Hero BG Wrap"]{position:relative;overflow:hidden;}
[data-framer-name="Hero BG Wrap"]::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(99deg,rgba(6,10,22,.82) 0%,rgba(6,10,22,.56) 26%,rgba(6,10,22,.20) 52%,rgba(6,10,22,.02) 74%,transparent 100%),
    linear-gradient(to top,rgba(0,0,0,.46),transparent 26%),
    radial-gradient(140% 120% at 50% 44%,transparent 54%,rgba(0,0,0,.30) 100%);
}
[data-framer-name="Hero BG Wrap"] img{
  animation:enhKen 26s ease-in-out infinite alternate;will-change:transform;
}
@keyframes enhKen{from{transform:scale(1.0)}to{transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){[data-framer-name="Hero BG Wrap"] img{animation:none;transform:scale(1.02)}}

/* === 底部 Contact 区收紧留白（天空图块 1376px -> 标准高度） === */
[data-framer-name="Contact BG Wrap"]{max-height:430px!important;overflow:hidden!important;}
@media(max-width:809px){[data-framer-name="Contact BG Wrap"]{max-height:300px!important;}}
