/* ===== 网页发信 全局样式（手机 + PC 响应式） ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #8a91a0;
  --primary: #2f6bff;
  --primary-dark: #2456d6;
  --line: #e5e8ef;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --wait: #94a3b8;
  --radius: 14px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== 登录页 ===== */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f7fb 60%, #eef6ff 100%);
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  box-shadow: 0 12px 40px rgba(31, 41, 55, 0.10);
  text-align: center;
}
.auth-logo { font-size: 44px; margin-bottom: 8px; }
.auth-card h1 { font-size: 21px; font-weight: 700; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.auth-foot { color: var(--muted); font-size: 12px; margin-top: 18px; }

/* ===== 顶栏 ===== */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 700; font-size: 16px; }

/* ===== 布局 ===== */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(31, 41, 55, 0.06);
}
.card h2 { font-size: 18px; margin-bottom: 18px; }

.hidden { display: none; }

/* ===== 表单 ===== */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .opt { color: var(--muted); font-weight: 400; font-size: 12px; }

input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fbfcfe;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
  background: #fff;
}
textarea { resize: vertical; min-height: 120px; }

.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s, opacity .15s;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.primary:disabled { opacity: .6; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); font-weight: 500; }
.btn.ghost:hover { background: #f0f2f7; }
.btn-block { width: 100%; padding: 13px; font-size: 16px; margin-top: 8px; }

/* ===== 进度卡片 ===== */
.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.progress-head h2 { margin-bottom: 0; }
.badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(47, 107, 255, 0.10);
  padding: 4px 12px;
  border-radius: 20px;
}

.progress-track {
  height: 10px;
  background: #eef0f5;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #6aa5ff);
  border-radius: 20px;
  transition: width .4s ease;
}

.result-list { list-style: none; }
.result-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  background: #fbfcfe;
  flex-wrap: wrap;
}
.result-list .addr { font-weight: 600; word-break: break-all; }
.result-list .st { white-space: nowrap; }
.st.waiting { color: var(--wait); }
.st.sending { color: var(--warn); }
.st.success { color: var(--ok); font-weight: 600; }
.st.failed  { color: var(--err); font-weight: 600; }
.row.failed { border-color: #fecaca; background: #fff7f7; }
.row.success { border-color: #bbf7d0; background: #f7fdf9; }

/* ===== 提示框 ===== */
.alert {
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  text-align: left;
}
.alert.error { background: #fef2f2; color: var(--err); border: 1px solid #fecaca; }

/* ===== 手机端适配 ===== */
@media (max-width: 520px) {
  .container { padding: 16px 14px 48px; }
  .card { padding: 18px; }
  .result-list li { flex-direction: column; align-items: flex-start; }
  .result-list .st { white-space: normal; }
}
