/* 免费试用 (3.2): § 09 pricing cards and the trial dialog (js/trial.js). */

/* ================================================================ § 09 pricing
   Renders completely without JS and without WebGL. Cards in a row share their row tracks
   (subgrid), so names, prices, lists and buttons line up; the cards are equally tall. */
.pricing-head { text-align: center; margin-bottom: clamp(34px, 4.4vw, 64px); }
.pricing-head .lead { margin: clamp(16px, 1.6vw, 24px) auto 0; }
.plans {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  max-width: 1200px; margin-inline: auto;
}
.plan {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 28px 24px 24px; border-radius: var(--r-l); border: 1px solid var(--hair);
  background: linear-gradient(170deg, rgba(156, 193, 255, 0.055), rgba(156, 193, 255, 0) 70%);
}
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
}
.plan.is-featured {
  border-color: rgba(76, 139, 255, 0.72);
  background: linear-gradient(160deg, rgba(36, 111, 241, 0.24), rgba(36, 111, 241, 0.04) 66%);
  box-shadow: 0 34px 64px -40px rgba(36, 111, 241, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.plan-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 500 clamp(20px, 1.6vw, 24px)/1.35 var(--serif); color: var(--text-1); }
.plan-badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--blue); color: #fff;
  font: 600 12px/1.6 var(--sans); letter-spacing: 0.1em; box-shadow: 0 6px 16px -8px rgba(36, 111, 241, 0.9);
}
.plan-for { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 22px; }
.plan-price b { font: 500 clamp(30px, 2.5vw, 38px)/1.15 var(--serif); letter-spacing: -0.02em; color: var(--text-1); white-space: nowrap; }
.plan-price span { font-size: 14px; color: var(--text-3); white-space: nowrap; }
.plan-points { display: grid; align-content: start; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hair); }
.plan-points li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.65; color: var(--text-2); overflow-wrap: anywhere; }
.plan-points li::before {
  content: ""; position: absolute; left: 2px; top: 0.52em; width: 10px; height: 5px;
  border-left: 1.6px solid var(--blue-soft); border-bottom: 1.6px solid var(--blue-soft); transform: rotate(-45deg);
}
.plan-cta { align-self: end; width: 100%; min-height: 50px; margin-top: 26px; padding-inline: 18px; }
.plan .button-outline { padding-inline: 18px; }
.plans-note { margin-top: 28px; text-align: center; font-size: 13px; color: var(--text-3); text-wrap: balance; }
.pricing .cta-note { margin-top: 10px; text-align: center; text-wrap: balance; }
/* Without JS the dialog cannot open: say so where the trial links lead (#trial). */
.trial-noscript {
  max-width: 40em; margin: 0 auto 22px; padding: 12px 18px; text-align: center;
  border: 1px dashed var(--hair-3); border-radius: var(--r-m); font-size: 14px; color: var(--text-2);
}
.trial-noscript a, .inline-link { color: var(--blue-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.inline-link:hover { color: var(--blue-mist); }

@media (max-width: 1099.98px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
}
@media (max-width: 639.98px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; gap: 14px; }
  .plan { padding: 24px 20px 20px; }
  .plan-cta { margin-top: 22px; }
}

/* 企业微信联系弹层：原图保持比例与白色静区，便于扫码。 */
dialog.trial-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: hidden; color-scheme: light; }
dialog.trial-dialog[open] { display: flex; flex-direction: column; }
.trial-sheet { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 32px 36px 28px; }
.trial-close { z-index: 2; background: var(--paper); }
.trial-head { padding-right: 32px; }
.trial-head .folio { margin: 0 0 8px; }
dialog.trial-dialog h2 { font: 500 28px/1.4 var(--serif); letter-spacing: -0.02em; }
.trial-sheet .dialog-lead { margin-top: 12px; line-height: 1.75; }
.trial-contact { margin: 22px auto 0; max-width: 264px; text-align: center; }
.trial-contact img { display: block; width: 100%; height: auto; background: #fff; }
.trial-contact figcaption { margin-top: 12px; font-size: 14px; color: var(--paper-ink-2); }
.trial-mobile-hint { margin: 16px auto 0; max-width: 28em; font-size: 13px; line-height: 1.7; color: var(--paper-ink-3); text-align: center; }
.trial-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: 18px; }
.trial-login { margin-top: 20px; text-align: center; font-size: 14px; color: var(--paper-ink-2); }
.trial-dialog .inline-link { color: var(--blue); }
.trial-login a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639.98px) {
  dialog.trial-dialog { width: calc(100% - 24px); max-height: calc(100% - 24px); border-radius: var(--r-m); }
  .trial-sheet { padding: 26px 20px 24px; }
  .trial-close { top: 8px; right: 8px; }
  dialog.trial-dialog h2 { font-size: 24px; }
  .trial-contact { max-width: 240px; }
}
