/* ============================================================
   pricing.css
   仅价格页特有样式；导航 / CTA banner / Footer / .reveal /
   .page / .stage / .center-frame 等共享部分继承自 main.css。
   ============================================================ */

/* 当前页菜单高亮 */
.menu a.active {
  color: #1677ff;
}

.menu a.active::after {
  width: 100%;
}

/* ---------- 顶部浅蓝渐变背景 ---------- */
.pricing-bg {
  left: 0;
  top: 0;
  width: 100%;
  height: 1040px;
  background: linear-gradient(180deg, #f0f9ff 0%, #e3f3fd 32%, #d6f1fb 70%, #d8eefb 100%);
  z-index: 0;
}

.pricing-bg::before,
.pricing-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
}

.pricing-bg::before {
  left: -60px;
  top: 220px;
  width: 360px;
  height: 320px;
  background: radial-gradient(closest-side, #b9e6ff, transparent);
}

.pricing-bg::after {
  right: -40px;
  top: 120px;
  width: 320px;
  height: 280px;
  background: radial-gradient(closest-side, #cdeaff, transparent);
}

/* ---------- Hero 标题 ---------- */
.pricing-title {
  margin: 0;
  left: 0;
  right: 0;
  top: 178px;
  text-align: center;
  font-size: 56px;
  line-height: 72px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #00080c;
}

.pricing-sub {
  margin: 0;
  left: 0;
  right: 0;
  top: 280px;
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  color: rgba(0, 8, 12, .65);
}

/* ---------- 价格卡片整体容器 ---------- */
.plans-section {
  left: 0;
  top: 360px;
  width: 100%;
  height: 660px;
  z-index: 1;
}

/* ---------- 三张价格卡 ---------- */
.plan-card {
  width: 320px;
  height: 560px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 32, 72, .08);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}

.plan-card > * {
  flex-shrink: 0;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(22, 119, 255, .18);
}

.plan-card-basic {
  left: 208px;
  top: 24px;
}

.plan-card-pro {
  left: 552px;
  top: 0;
  width: 336px;
  height: 600px;
  background: linear-gradient(180deg, #1677ff 0%, #016afe 100%);
  color: #fff;
  box-shadow: 0 28px 70px rgba(22, 119, 255, .35);
}

.plan-card-enterprise {
  left: 912px;
  top: 24px;
}

/* ---------- 卡片内容 ---------- */
.plan-title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.plan-desc {
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 22px;
  color: var(--c-muted);
  min-height: 66px;
}

.plan-card-pro .plan-desc {
  color: rgba(255, 255, 255, .82);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
  height: 64px;
}

.plan-price .price-currency {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.plan-price .price-main {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}

.plan-price .price-period {
  font-size: 14px;
  color: var(--c-muted);
  margin-left: 4px;
}

.plan-card-pro .plan-price .price-period {
  color: rgba(255, 255, 255, .75);
}

/* ---------- 按钮 ---------- */
.plan-btn {
  height: 44px;
  border-radius: 22px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #eaf4ff;
  color: #1677ff;
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft), background .25s;
}

.plan-btn:hover {
  transform: translateY(-1px);
  background: #d8eaff;
  box-shadow: 0 10px 22px rgba(22, 119, 255, .18);
}

.plan-btn-light {
  background: #fff;
  color: #1677ff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.plan-btn-light:hover {
  background: #f5faff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
}

/* ---------- 勾选列表 ---------- */
.plan-features {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.plan-features li {
  position: relative;
  padding: 10px 0 10px 34px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(0, 8, 12, .8);
}

.plan-card-pro .plan-features li {
  color: rgba(255, 255, 255, .92);
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("../../assets/img/Vector.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.plan-card-pro .plan-features li::before {
  background-image: url("../../assets/img/Vector2.png");
}

/* ---------- 右下角机器人装饰 ---------- */
.plans-mascot {
  right: 120px;
  bottom: 8px;
  width: 80px;
  height: 80px;
  animation: floatY 5s var(--ease-soft) infinite alternate;
}

.plans-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  filter: drop-shadow(0 14px 28px rgba(22, 119, 255, .25));
}

/* ============================================================
   覆盖：让首页里写死 top 的 cta-banner / footer 在价格页重新定位
   ============================================================ */
.stage--pricing .cta-banner {
  top: 1040px;
}

.stage--pricing footer {
  top: 1490px;
}

/* ============================================================
   H5 / 窄屏：跳出 main.css 的等比缩放，改为流式布局
   ============================================================ */
@media (max-width: 768px) {
  .page.page--pricing {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .page.page--pricing .stage--pricing {
    width: 100% !important;
    transform: none !important;
    transform-origin: top center;
    height: auto !important;
    min-height: 0;
    overflow: visible;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  /* 顶栏：固定 + 安全区 */
  .stage--pricing > .nav.abs {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 56px;
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 rgba(15, 32, 72, .06);
  }

  .stage--pricing > .nav.is-scrolled {
    left: 0;
    transform: none;
    animation: none;
  }

  .stage--pricing > .pricing-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: min(440px, 52vh);
    min-height: 300px;
    z-index: 0;
  }

  .stage--pricing > .pricing-title {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: calc(72px + env(safe-area-inset-top, 0px)) 20px 8px;
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.25;
    letter-spacing: -0.5px;
    z-index: 1;
  }

  .stage--pricing > .pricing-sub {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 0 20px 24px;
    font-size: 15px;
    line-height: 1.5;
    z-index: 1;
  }

  .stage--pricing > .plans-section {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    padding: 0 0 32px;
    z-index: 1;
  }

  .stage--pricing .plans-section .center-frame {
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .stage--pricing .plan-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    min-height: 0;
    padding: 28px 22px 32px;
    border-radius: 20px;
  }

  .stage--pricing .plan-card-pro {
    width: 100% !important;
    max-width: 420px;
    height: auto;
    order: -1;
  }

  .stage--pricing .plan-card-basic,
  .stage--pricing .plan-card-enterprise {
    order: 0;
  }

  .stage--pricing .plan-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .stage--pricing .plan-desc {
    min-height: 0;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  .stage--pricing .plan-price {
    height: auto;
    min-height: 48px;
    margin-bottom: 20px;
  }

  .stage--pricing .plan-price .price-main {
    font-size: 40px;
  }

  .stage--pricing .plan-price .price-currency {
    font-size: 22px;
  }

  .stage--pricing .plan-features {
    margin-top: 20px;
  }

  .stage--pricing .plan-features li {
    padding: 8px 0 8px 30px;
    font-size: 14px;
  }

  .stage--pricing .plans-mascot {
    display: none;
  }

  .stage--pricing .plan-card:hover {
    transform: none;
  }

  /* CTA 条 */
  .stage--pricing .cta-banner {
    position: relative;
    top: auto !important;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 240px;
    padding: 40px 20px 48px;
    overflow: hidden;
  }

  .stage--pricing .cta-banner .bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important;
  }

  .stage--pricing .cta-banner .cta-title {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 0 8px;
    font-size: clamp(20px, 5.5vw, 26px);
    line-height: 1.35;
    z-index: 1;
  }

  .stage--pricing .cta-banner .btn {
    position: relative;
    top: auto;
    left: auto;
    margin: 20px auto 0;
    display: block;
    z-index: 1;
  }

  /* 页脚 */
  .stage--pricing footer {
    position: relative;
    top: auto !important;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 36px 20px 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .stage--pricing footer .center-frame {
    position: static;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .stage--pricing footer .abs {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0 0 22px 0;
    transform: none !important;
  }

  .stage--pricing footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .stage--pricing footer .footer-brand img {
    width: 40px;
    height: auto;
  }

  .stage--pricing footer .footer-brand-text {
    font-size: 22px;
  }

  .stage--pricing footer .footer-contact-label-1,
  .stage--pricing footer .footer-contact-label-2 {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #9aa3af;
  }

  .stage--pricing footer .footer-contact-value-1,
  .stage--pricing footer .footer-contact-value-2 {
    display: block;
    font-size: 14px;
    margin-bottom: 16px;
  }

  .stage--pricing footer .col .col-title {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .stage--pricing footer .col a {
    font-size: 14px;
    line-height: 1.85;
  }

  .stage--pricing footer .footer-contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .stage--pricing footer .footer-contact-icon {
    width: 16px;
    height: 16px;
  }

  .stage--pricing footer .copy {
    position: static;
    display: block;
    text-align: center;
    margin: 28px 0 0;
    padding-top: 16px;
    font-size: 12px;
    color: #9aa3af;
  }
}
