.signup-body { min-height: 100vh; }
.signup-shell {
  width: min(980px, calc(100% - 2rem));
  margin: 2.5rem auto 4rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: start;
}
.signup-copy h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.75rem;
}
.signup-copy p { color: var(--ink-soft); }

/* 两栏版式的左栏只有 260–290px 宽，标题按 2.8rem 会逐字换行，
   这里单独收小并交给 balance 控制断行 */
.signup-shell--plan .signup-copy h1,
.signup-shell--wide .signup-copy h1 {
  font-size: clamp(1.55rem, 2.3vw, 1.95rem);
  line-height: 1.25;
  text-wrap: balance;
}
.signup-bullets {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
}
.signup-bullets li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.signup-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.signup-card--with-plans { padding-top: 1.25rem; }
.signup-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.signup-entitlement-panel {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.signup-entitlement-panel .pricing-picker { margin: 0; }
.signup-entitlement-panel .plan-spec-grid {
  /* auto-fit：套餐少于列数时不留空轨道，卡片等分铺满；
     210px 下三张卡在 900px 面板里也能并排 */
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

/* portal.css 给 stacked/wide 开通页写死了两列（为旧的"两个套餐"设计），
   现在常驻 3 个套餐会变成 2+1 并留出空洞；这里改成自适应列，
   3 张卡在宽屏下等分铺满，窄屏自然回落。 */
@media (min-width: 900px) {
  .signup-shell--stacked .signup-card--with-plans .plan-spec-grid,
  .signup-shell--wide .signup-card--with-plans .plan-spec-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }
}
.signup-entitlement-panel .pricing-checkout-bar {
  position: static;
  box-shadow: none;
}
.signup-entitlement-panel.is-guide-pulse {
  animation: signup-entitlement-pulse 1.2s ease-in-out 2;
}
@keyframes signup-entitlement-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px rgba(31, 107, 74, 0.25); }
}
.signup-secondary-actions { margin: 0 0 0.75rem; }
.signup-shop-panel { margin-top: 0.5rem; }
.signup-step a { color: inherit; text-decoration: none; }
.signup-step a:hover { text-decoration: underline; }
.signup-card .field--subscription select {
  min-height: 2.75rem;
}
.signup-card .field label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}
.signup-card .field label:has(input[type="checkbox"]) input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}
.slug-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.slug-suffix {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.hint { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.85rem; }
.hint.ok { color: var(--accent); }
.hint.bad { color: #a33; }
.fineprint { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.8rem; text-align: center; }

@media (max-width: 820px) {
  .signup-shell { grid-template-columns: 1fr; }
}

/* Signup plan step / unified page: wide shell for side-by-side plan cards */
.signup-shell.signup-shell--plan,
.signup-shell.signup-shell--wide {
  width: min(1280px, calc(100% - 3rem));
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1.58fr);
  gap: 2.25rem;
}
.signup-card.signup-card--plan,
.signup-card.signup-card--with-plans {
  min-width: 0;
  padding: 1.35rem 1.25rem 1.1rem;
}
.signup-card--plan .pricing-picker,
.signup-card--with-plans .pricing-picker {
  margin: 0;
}
.signup-card--plan .pricing-plan-tabs,
.signup-card--with-plans .pricing-plan-tabs {
  margin-top: 0.25rem;
}
.signup-card--plan .account-bar,
.signup-card--with-plans .account-bar {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}
.signup-card--with-plans .signup-entitlement-panel .plan-spec-grid {
  gap: 0.75rem;
}
@media (max-width: 820px) {
  .signup-shell.signup-shell--plan,
  .signup-shell.signup-shell--wide {
    width: min(980px, calc(100% - 2rem));
    grid-template-columns: 1fr;
  }
}

/* Stacked full-width signup (hero top, plans below) */
.signup-shell.signup-shell--stacked {
  width: min(1280px, calc(100% - 3rem));
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  grid-template-columns: unset;
}
.signup-hero {
  width: 100%;
  max-width: none;
}
.signup-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.75rem;
}
.signup-hero p { color: var(--ink-soft); margin: 0; }
.signup-hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
}
.signup-hero-bullets li {
  border-bottom: none;
  padding: 0;
  flex: 1 1 12rem;
}
.signup-shell--stacked .signup-card--with-plans {
  width: 100%;
}
.signup-form-fineprint { margin-top: 1rem; }
.signup-checkout-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.signup-checkout-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}
.signup-checkout-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.signup-checkout-footer .signup-form-submit {
  min-width: 10rem;
}
@media (max-width: 640px) {
  .signup-checkout-footer-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .signup-checkout-footer .signup-form-submit {
    width: 100%;
  }
}
.signup-shop-panel .pricing-checkout-bar--signup {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.signup-body--stacked .pricing-checkout-bar--signup .pricing-checkout-inner {
  width: 100%;
  max-width: none;
}
.signup-body--stacked .pricing-checkout-bar--signup.pricing-checkout-bar--owned-tab .pricing-checkout-row,
.signup-body--stacked .pricing-checkout-bar--signup.pricing-checkout-bar--owned-tab .pricing-year-savings {
  display: none;
}

/* P2-8 固定店铺子域名前缀：仅开通页在配置了 domainPrefix 时启用三列布局，
   不影响其它使用 .slug-row 的页面（如 article-editor）。 */
.slug-row--prefixed { grid-template-columns: auto 1fr auto; }
.slug-prefix {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* P2-7 草稿恢复提示 */
.signup-draft-restored {
  border-color: var(--accent);
  background: rgba(31, 122, 92, 0.08);
  color: var(--ink, #14201b);
}

/* ── 注册页手机验证：图形验证码与短信验证码同排 ───────────────────────────
   两个控件都是「输入 + 一个附属动作（换一张 / 发送）」，竖排会把表单拉得很长，
   手机上要多滚一屏；并排后「填完即可点」，符合收码→填码的连续动作。
   用 align-items:stretch 对齐而不是写死高度：输入框高度由 padding 决定，
   写死 44px 会和它差 2~6px，看起来像没对齐。 */
.signup-card .field-inline {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}

.signup-card .field-inline input {
  flex: 1 1 auto;
  min-width: 0;
}

.signup-card .field-captcha {
  flex: 0 0 auto;
  width: 132px;
  align-self: stretch;
  /* contain 而不是 cover：cover 会把 4 位数字裁掉一位，用户看不懂 */
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line, #dfe5e0);
  cursor: pointer;
  background: #f3f7f4;
}

.signup-card .field-captcha:focus-visible {
  outline: 2px solid var(--accent, #1f6b4a);
  outline-offset: 2px;
}

.signup-card .field-sms-btn {
  flex: 0 0 auto;
  align-self: stretch;
  height: auto;
  white-space: nowrap;
  padding: 0 1rem;
}

.signup-card .field-sms-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 与 .field 的说明文字区别于「整段居中」，这里贴着输入框左对齐 */
.signup-card .field-hint {
  text-align: left;
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
}

.signup-card .field-hint.is-error {
  color: #b42318;
}

.signup-card .field-hint.is-ok {
  color: #1f6b4a;
}
