/* 码道云 · 华为云助力 —— 大厂活动页风格 */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --主蓝: #0d6efd;
  --深蓝: #0a58ca;
  --浅蓝: #4facfe;
  --成功: #10b981;
  --失败: #ef4444;
  --文字: #1f2937;
  --次要: #6b7280;
  --浅字: #9ca3af;
  --边框: #e5e7eb;
  --底: #f9fafb;
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--文字);
  background: #f2f6fc;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 背景光晕 ---------- */
.背景 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.光晕 {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.光晕1 {
  width: 420px; height: 420px;
  top: -140px; left: -120px;
  background: radial-gradient(circle, #cfe3ff 0%, transparent 70%);
}
.光晕2 {
  width: 380px; height: 380px;
  bottom: -120px; right: -100px;
  background: radial-gradient(circle, #dbeafe 0%, transparent 70%);
}

/* ---------- 页面容器 ---------- */
.页面 {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 32px 20px 28px;
  display: flex;
  flex-direction: column;
}

/* ---------- 品牌区 ---------- */
.品牌 {
  text-align: center;
  padding: 8px 0 28px;
}
.标识 {
  display: inline-flex;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 14px rgba(13,110,253,.28));
}
.品牌 h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--文字);
}
.标语 {
  font-size: 13px;
  color: var(--次要);
  margin-top: 8px;
  letter-spacing: .5px;
}

/* ---------- 卡片 ---------- */
.卡片 {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, .07),
              0 1px 3px rgba(15, 23, 42, .04);
}

/* ---------- 屏幕切换 ---------- */
.屏 { display: none; }
.屏.显示 { display: block; animation: 淡入 .28s ease; }
@keyframes 淡入 {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.屏头 { margin-bottom: 26px; }
.屏头 h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.副 {
  font-size: 13.5px;
  color: var(--次要);
  line-height: 1.6;
}
.副 strong { color: var(--文字); font-weight: 600; }

/* ---------- 手机号输入 ---------- */
.输入组 {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--边框);
  border-radius: 12px;
  padding: 0 16px;
  margin-bottom: 22px;
  transition: border-color .18s, box-shadow .18s;
  background: #fff;
}
.输入组:focus-within {
  border-color: var(--主蓝);
  box-shadow: 0 0 0 4px rgba(13,110,253,.09);
}
.前缀 {
  font-size: 15px;
  color: var(--次要);
  padding-right: 12px;
  border-right: 1px solid var(--边框);
  margin-right: 12px;
  font-variant-numeric: tabular-nums;
}
.输入组 input {
  flex: 1;
  border: none;
  outline: none;
  padding: 17px 0;
  font-size: 17px;
  letter-spacing: 1.2px;
  font-family: inherit;
  color: var(--文字);
  background: transparent;
  font-variant-numeric: tabular-nums;
}
.输入组 input::placeholder {
  color: var(--浅字);
  letter-spacing: 0;
  font-size: 15px;
}

/* ---------- 验证码六格 ---------- */
.验证码组 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin-bottom: 26px;
}
.码格 {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border: 1.5px solid var(--边框);
  border-radius: 10px;
  text-align: center;
  font-size: 21px;
  font-weight: 600;
  color: var(--文字);
  outline: none;
  background: #fff;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  font-variant-numeric: tabular-nums;
}
.码格:focus {
  border-color: var(--主蓝);
  box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}
.码格.填充 {
  border-color: var(--主蓝);
  background: #f5f9ff;
}

/* ---------- 按钮 ---------- */
.主按钮 {
  width: 100%;
  padding: 17px;
  font-size: 16.5px;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--浅蓝) 0%, var(--主蓝) 55%, var(--深蓝) 100%);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .5px;
  box-shadow: 0 6px 18px rgba(13,110,253,.28);
  transition: transform .1s, box-shadow .18s, opacity .18s;
  position: relative;
  overflow: hidden;
}
.主按钮:active:not(:disabled) {
  transform: scale(.985);
  box-shadow: 0 3px 10px rgba(13,110,253,.24);
}
.主按钮:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}
.主按钮.载入中 .按钮文字 { opacity: 0; }
.主按钮.载入中::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  top: 50%; left: 50%;
  margin: -10px 0 0 -10px;
  border: 2.4px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: 转 .7s linear infinite;
}
@keyframes 转 { to { transform: rotate(360deg); } }

.次按钮 {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  font-weight: 500;
  color: var(--主蓝);
  background: #eff6ff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
  transition: background .15s;
}
.次按钮:active { background: #dbeafe; }

/* ---------- 协议 ---------- */
.协议 {
  font-size: 12px;
  color: var(--浅字);
  text-align: center;
  margin-top: 18px;
  line-height: 1.7;
}
.协议 a {
  color: var(--主蓝);
  text-decoration: none;
}

/* ---------- 重发 ---------- */
.重发 {
  font-size: 13.5px;
  color: var(--次要);
  text-align: center;
  margin-top: 20px;
}
.重发 a {
  color: var(--主蓝);
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}
.重发 a.禁用 {
  color: var(--浅字);
  pointer-events: none;
}

/* ---------- 等待 ---------- */
.等待 {
  padding: 56px 0 40px;
  text-align: center;
}
.旋转 {
  width: 46px; height: 46px;
  margin: 0 auto 26px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--主蓝);
  border-radius: 50%;
  animation: 转 .9s linear infinite;
}
.等待文字 {
  font-size: 15px;
  color: var(--次要);
  letter-spacing: .3px;
}

/* ---------- 成功 ---------- */
.成功图标 {
  text-align: center;
  padding: 16px 0 22px;
  animation: 弹入 .45s cubic-bezier(.34,1.56,.64,1);
}
@keyframes 弹入 {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}
.成功标题 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.成功说明 {
  font-size: 14px;
  color: var(--次要);
  text-align: center;
  margin-bottom: 26px;
}
.结果卡 {
  background: var(--底);
  border-radius: 14px;
  padding: 4px 18px;
  margin-bottom: 20px;
}
.结果行 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 14.5px;
}
.结果行 span { color: var(--次要); }
.结果行 b {
  font-weight: 600;
  color: var(--文字);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 14px;
}

/* ---------- 失败 ---------- */
.错图标 { text-align: center; padding: 16px 0 20px; }
.错标题 {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}
.错说明 {
  font-size: 14px;
  color: var(--次要);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 26px;
  padding: 0 8px;
}

/* ---------- 页脚 ---------- */
.页脚 {
  padding-top: 28px;
  text-align: center;
}
.特性 {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 18px;
}
.特性项 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--浅字);
}
.特性项 svg { opacity: .65; }
.版权 {
  font-size: 11.5px;
  color: #c7cdd6;
  letter-spacing: .3px;
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 360px) {
  .页面 { padding: 24px 16px 20px; }
  .卡片 { padding: 26px 18px; border-radius: 16px; }
  .验证码组 { gap: 7px; }
  .码格 { font-size: 19px; }
  .品牌 h1 { font-size: 21px; }
}