/* 悟空视觉 · 官网 V4.9.0：调色三档价格（月卡 / 季卡 / 年卡，年卡重点推荐）
   跟 site.css 同一套变量：白底柔光、苹果连续圆角、最宽 980。不写内联样式，兼容 CSP style-src 'self'。
   价格数字挂 data-wk-amount="color:month|quarter|year"，后台接口回了哪档就换哪档，没回的保持写死的价。 */

.tiers {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  list-style: none; margin: 0; padding: 0; text-align: left;
}
.tier {
  position: relative; display: grid; align-content: start; gap: 2px;
  min-width: 0; padding: 16px 14px 14px; border-radius: var(--r-card);
  background: rgb(255 255 255 / .78); box-shadow: 0 0 0 1px var(--tile-edge), 0 10px 28px -22px rgb(60 40 120 / .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tier-name { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-2); }
.tier-price {
  margin-top: 4px; font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 600;
  letter-spacing: -.01em; white-space: nowrap;
}
.tier-sub { font-size: 13px; line-height: 19px; color: var(--text-2); }
.tier-badge {
  justify-self: start; margin-top: 8px; padding: 1px 9px; border-radius: var(--r-pill);
  font-size: 12px; line-height: 19px; font-weight: 600; color: #6d28d9; background: rgb(124 58 237 / .1);
}
/* 年卡：重点推荐。柔光描边 + 右上角对勾，和软件收款页一致 */
.tier--best {
  background: #ffffff;
  box-shadow: 0 0 0 1.5px rgb(124 58 237 / .55), 0 16px 34px -20px rgb(109 40 217 / .55);
}
.tier--best .tier-name { color: #6d28d9; }
.tier-check {
  position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(135deg, #6d7cff, #a06bff); color: #ffffff;
}
.tier-check svg { width: 12px; height: 12px; }

/* 价格大块（调色页 #pricing）：上面标题，中间三张卡，下面按钮和清单 */
.tile--plans { display: grid; gap: 18px; padding: var(--tile-top) var(--gutter); }
.plans-head { display: grid; gap: 4px; }
.plans-head .plan-sub { max-width: 34em; margin-inline: auto; }
.tile--plans .cta { margin-top: 0; }
.tile--plans .checklist { max-width: 560px; margin-inline: auto; }

/* 首页价格小块、购买页订单卡：三档压成一列小行 */
.tier-rows { display: grid; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; text-align: left; }
.tier-rows li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-ctl); background: rgb(255 255 255 / .7); box-shadow: 0 0 0 1px var(--tile-edge);
  font-size: 14px; line-height: 20px;
}
.tier-rows b { font-weight: 600; }
.tier-rows .tier-per { color: var(--text-2); font-size: 13px; }
.tier-rows .tier-amt { font-weight: 600; white-space: nowrap; }
.tier-rows .is-best { box-shadow: 0 0 0 1.5px rgb(124 58 237 / .5); background: #ffffff; }
.tier-rows .is-best b { color: #6d28d9; }
.tier-rows .tier-badge { margin: 0 0 0 6px; padding: 0 7px; font-size: 11px; line-height: 17px; }

@media (min-width: 735px) {
  .tile--plans { padding: 36px 40px; gap: 22px; }
  .tiers { gap: 14px; }
  .tier { padding: 20px 18px 16px; }
  .tier-price { font-size: 30px; line-height: 36px; }
}
@media (max-width: 419px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .tier-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-top: 0; }
  .tier-check { display: none; }
}
@supports (corner-shape: squircle) { .tier, .tier-rows li { corner-shape: squircle; } }

/* 购买页订单卡：原来“月度会员 · ¥68”是一行字，现在换成三档小行 */
.order .order-plan { display: block; margin-top: 2px; }
.order .order-plan::after { content: none; }
.order .tier-rows { width: min(420px, 100%); margin-inline: auto; color: var(--text); }

/* 折合月价单独一行、不折行（窄屏下“约 63 元/月”曾被折成两行） */
.tier-avg { display: block; white-space: nowrap; }
