/* ============================================================
   商脉通 · 视觉升华覆盖层（nginx 注入，不改应用本体）
   方向：智己式浅色大气 —— 大视频、大留白、大字号、玻璃质感
   ============================================================ */

/* ---------- 全局排版 ---------- */
h1, h2, h3 {
  letter-spacing: -0.02em !important;
}
section h2 {
  font-size: clamp(30px, 3.4vw, 46px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

/* ---------- Hero：浅色大气质感背景 + 超大标题 ---------- */
.hero.market-hero {
  position: relative !important;
  min-height: 92vh !important;
  align-items: end !important;
  padding-bottom: 88px !important;
  overflow: hidden !important;
  isolation: isolate;
  background:
    linear-gradient(100deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.45) 45%, rgba(255,255,255,0.05) 78%),
    linear-gradient(to top, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 30%),
    url('/smt-assets/hero-bg.jpg') center / cover no-repeat,
    #f5f7fa !important;
}
.hero .hero-atmosphere {
  opacity: 0;
  visibility: hidden;
}
.hero h1 {
  font-size: clamp(42px, 5vw, 76px) !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.035em !important;
}
.hero .market-label small {
  letter-spacing: 0.32em !important;
}

/* ---------- 按钮：圆角胶囊 + 品牌蓝 ---------- */
.button {
  border-radius: 999px !important;
  padding-inline: 28px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease !important;
}
.button:not(.secondary):not(.compact) {
  background: linear-gradient(120deg, #2f7df6, #245be8) !important;
  box-shadow: 0 10px 26px rgba(36, 91, 232, 0.28) !important;
}
.button:hover {
  transform: translateY(-2px);
}
.button:not(.secondary):hover {
  box-shadow: 0 14px 32px rgba(36, 91, 232, 0.38) !important;
}
.button.secondary {
  border-radius: 999px !important;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.65) !important;
}

/* ---------- 数据指标区：更大更自信 ---------- */
.home-metrics .home-metric-value {
  font-size: clamp(40px, 4.4vw, 60px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #2f7df6, #1e40af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

/* ---------- 隐藏「暂未开放」的 AI 分析模块 ---------- */
section.ai-analysis,
.ai-analysis {
  display: none !important;
}
a[href="#ai-analysis"] {
  display: none !important;
}

/* ---------- 注入的视差大图区块 ---------- */
.smt-parallax {
  position: relative;
  height: 82vh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}
.smt-parallax .smt-parallax-img {
  position: absolute;
  inset: -12% 0;
  z-index: -1;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.smt-parallax .smt-parallax-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.45) 45%, rgba(255,255,255,0.05) 80%);
}
.smt-parallax .smt-parallax-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 max(24px, calc((100vw - 1180px) / 2)) 88px;
}
.smt-parallax .smt-parallax-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(36, 91, 232, 0.75);
}
.smt-parallax .smt-parallax-title {
  margin-top: 18px;
  max-width: 760px;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #111927;
}
.smt-parallax .smt-parallax-sub {
  margin-top: 16px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.8;
  color: #46546a;
}

/* ---------- 滚动进场 ---------- */
.smt-reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.smt-reveal.smt-in {
  opacity: 1;
  transform: none;
}

/* ---------- 减弱动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .smt-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .hero.market-hero {
    min-height: 88vh !important;
    padding-bottom: 56px !important;
  }
}

/* ---------- 联系顾问浮层 ---------- */
.smt-contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(18, 26, 43, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .28s ease;
}
.smt-contact-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 9999;
  width: min(400px, calc(100vw - 40px));
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(18, 26, 43, 0.28);
  padding: 36px 32px 32px;
  text-align: center;
  transform: translate(-50%, -48%) scale(.96);
  opacity: 0;
  transition: transform .32s cubic-bezier(.22,.61,.36,1), opacity .28s ease;
}
.smt-contact-open .smt-contact-backdrop { opacity: 1; }
.smt-contact-open .smt-contact-modal {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.smt-contact-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #17203a;
}
.smt-contact-sub {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #68738c;
}
.smt-contact-qr {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: cover;
  margin: 0 auto 20px;
  border-radius: 16px;
  border: 1px solid #eef1f7;
  box-shadow: 0 8px 24px rgba(18, 26, 43, 0.08);
}
.smt-contact-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 11px 22px;
  border: 1.5px solid #dce3f0;
  border-radius: 999px;
  background: #f7f9fd;
  color: #245be8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.smt-contact-copy:hover { background: #eef3fe; border-color: #b9ccf7; }
.smt-contact-copy.copied { color: #0f9d63; border-color: #b6e6cf; background: #f0fbf6; }
.smt-contact-tip {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #98a2b8;
}
.smt-contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f2f4f9;
  color: #68738c;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.smt-contact-close:hover { background: #e6eaf3; color: #17203a; }
body.smt-contact-locked { overflow: hidden; }
.smt-contact-qr-link { display: block; }
.smt-contact-qr-link .smt-contact-qr {
  transition: transform .25s ease, box-shadow .25s ease;
}
.smt-contact-qr-link:hover .smt-contact-qr {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(18, 26, 43, 0.14);
}
