/* T54E · 客户服务平台手机号认证页（本地演示入口）局部样式。
   叠加在 cxy-ds.css（财小云设计底座）之上：颜色沿用设计系统令牌，
   仅补卡片布局、表单控件与状态样式。 */

.ph-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ztc-bg, #f4f5f6);
  color: var(--ztc-text, #2d3142);
}

.ph-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--ztc-white, #ffffff);
  border-bottom: 1px solid var(--ztc-border, #e4e7ec);
}

.ph-logo {
  height: 32px;
  width: auto;
  display: block;
}

.ph-brand {
  font-weight: 500;
  font-size: 15px;
}

/* T140：没登录的页面也能回官网 */
.ph-back {
  margin-left: auto;
  font-size: 14px;
  color: var(--ztc-text, #2d3142);
  text-decoration: none;
  white-space: nowrap;
}
.ph-back:hover { color: var(--ztc-action, #006ED6); }

.ph-demo-banner {
  background: var(--ztc-tint-warning-bg, rgba(255, 192, 0, 0.15));
  color: var(--ztc-tint-warning-fg, #8a6200);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 16px;
}

.ph-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 56px;
}

.ph-card {
  width: 100%;
  max-width: 480px;
  background: var(--ztc-white, #ffffff);
  border: 1px solid var(--ztc-border, #e4e7ec);
  border-radius: 24px;
  padding: 32px 28px;
}

.ph-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.3;
}

.ph-switch {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ztc-text-muted, #58595b);
}

.ph-field {
  margin-bottom: 18px;
}

.ph-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.ph-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.4;
  color: inherit;
  background: var(--ztc-white, #ffffff);
  border: 1px solid var(--ztc-border, #e4e7ec);
  border-radius: 14px;
  box-sizing: border-box;
}

.ph-input:focus-visible {
  outline: 2px solid var(--ztc-action, #0067b4);
  outline-offset: 1px;
  border-color: var(--ztc-action, #0067b4);
}

.ph-code-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.ph-code-row .ph-input {
  flex: 1 1 auto;
  min-width: 0;
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.ph-btn:focus-visible {
  outline: 2px solid var(--ztc-action, #0067b4);
  outline-offset: 2px;
}

.ph-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ph-btn-primary {
  width: 100%;
  background: var(--ztc-action, #0067b4);
  color: var(--ztc-text-on-dark, #ffffff);
}

.ph-btn-primary:hover:not(:disabled) {
  background: var(--ztc-action-hover, #00558f);
}

.ph-btn-secondary {
  flex: 0 0 auto;
  background: var(--ztc-white, #ffffff);
  border-color: var(--ztc-action, #0067b4);
  color: var(--ztc-action, #0067b4);
}

.ph-btn-secondary:hover:not(:disabled) {
  background: var(--ztc-tint-info-bg, rgba(0, 142, 211, 0.1));
}

.ph-btn-ghost {
  min-height: 44px;
  padding: 8px 4px;
  background: transparent;
  color: var(--ztc-action, #0067b4);
}

.ph-hint {
  margin: 8px 0 0;
  min-height: 20px;
  font-size: 13px;
  color: var(--ztc-text-muted, #58595b);
}

.ph-alert {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--cxy-tint-red-bg);
  color: var(--cxy-negative-ink);
  font-size: 14px;
  line-height: 1.5;
}

.ph-alert ul,
ul.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.errorlist {
  margin-top: 6px;
  color: var(--cxy-negative-ink);
  font-size: 13px;
  line-height: 1.5;
}

.ph-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ph-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--ztc-action, #0067b4);
}

.ph-checkbox:focus-visible {
  outline: 2px solid var(--ztc-action, #0067b4);
  outline-offset: 2px;
}

.ph-consent-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ztc-text-muted, #58595b);
}

.ph-footer {
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--ztc-text-muted, #58595b);
}
.ph-footer a { color: inherit; }
/* T78：客服电话整体不折行（窄屏下“400-900-”与“5123”曾被拆开） */
.ph-nowrap { white-space: nowrap; }

/* 375 小屏：卡片贴边、按钮整行 */
@media (max-width: 480px) {
  .ph-main {
    padding: 24px 12px 40px;
  }
  .ph-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  /* T178：手机上“获取验证码”留在验证码框右边，不再单独占一行 */
  .ph-code-row .ph-btn-secondary {
    flex: none;
    min-width: 7.6em;   /* 倒计时“60s 后可重发”与“获取验证码”同宽，验证码框不跟着伸缩 */
    padding: 10px 14px;
    white-space: nowrap;
  }
}

/* 768 中屏及以上：卡片固定舒适宽度 */
@media (min-width: 768px) {
  .ph-card {
    max-width: 480px;
    padding: 36px 32px;
  }
}

/* 1280 桌面：保持阅读宽度，不拉宽表单 */
@media (min-width: 1280px) {
  .ph-main {
    padding-top: 64px;
  }
}

/* ── T64 开通一步与说明文字间距 ── */
.ph-lead {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ztc-text-muted, #58595b);
}

.ph-lead + .ph-switch {
  margin-top: -12px;
}

.ph-card form + .ph-switch {
  margin: 16px 0 0;
}

/* T149 · 登录页与出错页的求助块：在卡片底部，分隔线以下；文字在左、二维码在右 */
.ph-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--ztc-border, #e4e7ec);
}
.ph-help h2 { margin: 0 0 4px; font-size: 15px; line-height: 1.4; }
.ph-help p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: var(--ztc-text-muted, #58595b); }
.ph-help-text { min-width: 0; }
.ph-btn.ph-help-btn { width: auto; padding: 8px 14px; font-size: 14px; margin-bottom: 8px; }
.ph-help-line { margin: 0; }
.ph-help-line a { color: inherit; font-weight: 500; white-space: nowrap; }
.ph-help-qr { margin: 0; text-align: center; font-size: 12px; color: var(--ztc-text-muted, #58595b); }
.ph-help-qr img { display: block; width: 104px; height: 104px; margin: 0 auto 4px; padding: 4px; background: var(--ztc-white, #ffffff); border: 1px solid var(--ztc-border, #e4e7ec); border-radius: 14px; }
.ph-help-hint { display: none; }  /* “在微信里可长按识别”只在手机上显示 */
@media (max-width: 480px) {
  .ph-help { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ph-help-qr { display: flex; align-items: center; gap: 12px; text-align: left; }
  .ph-help-qr img { width: 84px; height: 84px; margin: 0; flex: none; }
  .ph-help-hint { display: inline; }
}

/* T247 · v1.6 登录入口：轻画布与清楚的主操作。 */
.ph-body { background: var(--cxy-surface-subtle); }
.ph-topbar { min-height: 72px; border: 0; padding-inline: clamp(20px,4vw,56px); }
.ph-logo { width: 100px; height: auto; }
.ph-brand { font-size: 14px; font-weight: 400; color: var(--cxy-text); }
.ph-card { border: 0; box-shadow: 0 8px 40px rgba(11,31,58,.05); }
.ph-title { font-weight: 700; margin-bottom: 12px; }
.ph-lead { margin-bottom: 28px; line-height: 1.75; }
.ph-field { margin-bottom: 22px; }
.ph-input { min-height: 48px; border-color: var(--cxy-border-strong); }
.ph-btn-primary { min-height: 48px; }
.ph-help { margin-top: 32px; padding-top: 24px; }
.ph-help h2 { font-size: 17px; }
.ph-help p { font-size: 14px; }
@media (max-width:600px) { .ph-brand { display:none; } .ph-main { padding-top:28px; } .ph-card { padding:28px 20px; } .ph-topbar { min-height:64px; } }

/* T247: keep complete legal titles together on mobile. */
.ph-legal-title { white-space: nowrap; }
