/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #007AFF;
  --blue-dark: #0062cc;
  --bg: #f2f3f7;
  --card: #ffffff;
  --text: #1c1c1e;
  --dim: #8e8e93;
  --line: #e5e5ea;
  --green: #34c759;
  --orange: #ff9500;
  --red: #ff3b30;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶栏 ===== */
.topbar {
  background: linear-gradient(135deg, #0a84ff, #0060df);
  color: #fff;
  padding: 14px 0;
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 96, 223, 0.25);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-size: 17px; font-weight: 600;
}
.brand-icon { font-size: 22px; }
.topbar-link { color: rgba(255,255,255,.85); text-decoration: none; font-size: 13px; }

/* ===== 卡片 ===== */
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px 20px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.card h2 { font-size: 18px; margin-bottom: 10px; }
.card p { color: #3a3a3c; font-size: 14px; }
.card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 12px;
}
.success-card .card-icon { background: rgba(52,199,89,.15); color: var(--green); }
.warn-card .card-icon { background: rgba(255,149,0,.15); color: var(--orange); }
.get-card .card-icon { background: rgba(0,122,255,.15); color: var(--blue); }
.get-card { text-align: center; }
.get-card p { margin-bottom: 16px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  background: var(--card);
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 12px;
  padding: 10px 28px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { opacity: .8; }
.btn-primary {
  background: var(--blue); color: #fff; border: none;
  box-shadow: 0 4px 12px rgba(0,122,255,.35);
}
.btn-lg { font-size: 17px; padding: 14px 40px; width: 100%; max-width: 280px; }
.btn-ghost { margin-left: 8px; }

/* ===== UDID 展示 ===== */
.udid-box {
  background: #f6f8fb;
  border: 1px dashed #c7d2e0;
  border-radius: 10px;
  padding: 14px 12px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  word-break: break-all;
  color: #0a2540;
  margin: 14px 0;
  text-align: center;
}
.success-card .udid-box { text-align: left; }
.device-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.dim { color: var(--dim); }
.small { font-size: 12px; margin-top: 10px; }
.count { font-size: 13px; color: var(--dim); font-weight: 400; margin-left: 6px; }

/* ===== 步骤 ===== */
.steps { list-style: none; margin-top: 14px; }
.steps li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px; color: #3a3a3c;
}
.steps li span {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.warn-card .steps li span { background: var(--orange); }

/* ===== 详情表 ===== */
.detail-list { margin: 8px 0 16px; }
.detail-list dt {
  font-size: 12px; color: var(--dim); margin-top: 12px;
}
.detail-list dd { font-size: 15px; word-break: break-all; }
.detail-list .udid-box { margin: 6px 0 0; }

/* ===== 表格 ===== */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; color: var(--dim); font-weight: 500;
  padding: 8px 6px; border-bottom: 1px solid var(--line);
}
.table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table a { color: var(--blue); text-decoration: none; }
.mono { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 12px; white-space: nowrap;
}
.tag-done { background: rgba(52,199,89,.12); color: var(--green); }
.tag-pending { background: rgba(255,149,0,.12); color: var(--orange); }

/* ===== 页脚 ===== */
.footer { padding: 24px 0 36px; text-align: center; }
.footer p { font-size: 12px; color: var(--dim); }
