/**
 * diff.html / diff2.html 价格计算器 · 对齐 lc-compare 浅色壳层
 * v20260626
 */

/* 不用 unified-hero 深色壳，走 lc-compare 绿渐变 */
body.lc-hub-page #hero.hero.hero-compact {
  background: linear-gradient(165deg, #f0fdf4 0%, #ecfdf5 55%, #f8fafc 100%) !important;
  color: #1d2129;
  padding: 1.25rem 0 1.5rem !important;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
}

body.lc-hub-page #hero.hero.hero-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

body.lc-hub-page #hero.hero.hero-compact > .container,
body.lc-hub-page #hero.hero.hero-compact > .max-w-\[1400px\] {
  position: relative;
  z-index: 1;
}

body.lc-hub-page #hero.hero.hero-compact h1 {
  color: #1d2129 !important;
  text-shadow: none !important;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem) !important;
  white-space: normal !important;
}

body.lc-hub-page #hero.hero.hero-compact h1 a {
  color: #047857 !important;
  text-decoration: underline;
  text-decoration-color: rgba(16, 185, 129, 0.45);
}

body.lc-hub-page #hero.hero.hero-compact .hero-lead {
  color: #475569 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  white-space: normal !important;
  max-width: 42rem;
}

body.lc-hub-page #hero.hero.hero-compact .hero-intro .inline-block {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  color: #047857 !important;
  backdrop-filter: none !important;
}

body.lc-hub-page #hero.hero.hero-compact .hero-intro a[href="#version-diff"] {
  background: #fff !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

body.lc-hub-page #hero.hero.hero-compact .tldr {
  background: #fff;
  border-left: 4px solid #10b981;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  max-width: 42rem;
  text-align: left;
}

body.lc-hub-page #hero.hero.hero-compact .tldr-title,
body.lc-hub-page #hero.hero.hero-compact .tldr p {
  white-space: normal !important;
}

body.lc-hub-page #hero.hero.hero-compact .organic-snippet {
  margin-bottom: 0.75rem;
}

body.lc-hub-page #hero.hero.hero-compact .lc-pair-bar {
  max-width: var(--lc-shell-max, 1100px);
  margin: 0.75rem auto 1rem;
  padding: 0;
}

body.lc-hub-page #hero.hero.hero-compact .max-w-\[1400px\] {
  max-width: var(--lc-shell-max, 1100px);
}

body.lc-hub-page #hero.hero.hero-compact .calc-panel {
  padding: 1rem 1.125rem !important;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
  background: #fff !important;
}

body.lc-hub-page #results,
body.lc-hub-page #version-diff,
body.lc-hub-page .lc-pair-bar--post-hero {
  max-width: var(--lc-shell-max, 1100px);
  margin-left: auto;
  margin-right: auto;
}

body.lc-hub-page #results .max-w-\[1400px\],
body.lc-hub-page #version-diff .max-w-\[1400px\] {
  max-width: 100%;
}

body.lc-hub-page .calc-tab,
body.lc-hub-page #calculateBtn,
body.lc-hub-page #countMinus,
body.lc-hub-page #countPlus,
body.lc-hub-page .filter-btn {
  min-width: unset !important;
  min-height: unset !important;
}

body.lc-hub-page #resultContainer {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

body.lc-hub-page #results {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

body.lc-hub-page #filterToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.lc-hub-page .lc-pair-bar--post-hero {
  max-width: var(--lc-shell-max, 1100px);
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

/* 右侧浮动咨询 QR（原无 CSS 导致落在正文流里） */
.float-panel {
  position: fixed;
  right: 12px;
  bottom: 72px;
  z-index: 880;
  width: 132px;
  max-width: calc(100vw - 24px);
}

.float-panel .float-inner {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 0.65rem;
  text-align: center;
}

.float-panel .float-qr {
  width: 88px !important;
  height: 88px !important;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.float-panel .float-text {
  font-size: 0.6875rem;
  line-height: 1.35;
  color: #64748b;
  margin: 0.35rem 0 0;
}

.float-panel .float-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .float-panel {
    right: max(12px, calc((100vw - 1100px) / 2 - 148px));
  }
}

@media (max-width: 767px) {
  .float-panel {
    display: none;
  }
}

@media (max-width: 767px) {
  body.lc-hub-page {
    --lc-page-offset: 108px;
  }

  body.lc-hub-page #hero.hero.hero-compact {
    padding: 0.75rem 0 1rem !important;
  }

  body.lc-hub-page #hero.hero.hero-compact h1 {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem) !important;
    line-height: 1.35 !important;
  }

  body.lc-hub-page #hero.hero.hero-compact .tldr {
    margin-left: 0;
    margin-right: 0;
  }

  body.lc-hub-page #hero.hero.hero-compact .lc-pair-bar {
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding: 0 12px !important;
  }

  body.lc-hub-page #hero .organic-snippet {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}
