/* 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: 600;
  font-size: 15px;
}

.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: 420px;
  background: var(--ztc-white, #ffffff);
  border: 1px solid var(--ztc-border, #e4e7ec);
  border-radius: 12px;
  padding: 32px 28px;
}

.ph-title {
  margin: 0 0 8px;
  font-size: 22px;
  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: 8px;
  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: 8px;
  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: 8px;
  background: #fdecea;
  color: #b3261e;
  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: #b3261e;
  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: 10px;
  }
  .ph-code-row {
    flex-direction: column;
  }
  .ph-btn-secondary {
    width: 100%;
  }
}

/* 768 中屏及以上：卡片固定舒适宽度 */
@media (min-width: 768px) {
  .ph-card {
    max-width: 440px;
    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;
}
