/* H5 样式 —— 与小程序版同一套 iOS 令牌（rpx 换成 px，1pt≈2rpx 的取值直接除以 2） */

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

body {
  margin: 0;
  background: #F2F2F7;
  color: #000;
  font-size: 17px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Helvetica Neue", Helvetica, "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 手机优先；桌面浏览器上限制宽度并居中，看起来跟手机一致 */
.page {
  padding: 12px 0 32px;
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- 卡片与分组标题 ---------- */
.card {
  background: #fff;
  border-radius: 10px;
  margin: 0 12px 12px;
  padding: 12px 16px;
}

.section-title {
  font-size: 13px;
  color: #6D6D72;
  padding: 0 28px 5px;
  margin-top: 7px;
}

.card-title-lg { font-size: 20px; font-weight: 600; }
.sub { font-size: 13px; color: #8E8E93; margin-top: 4px; }

.row-between { display: flex; align-items: center; justify-content: space-between; }
.flex1 { flex: 1; }

/* ---------- 按钮 ---------- */
.btn {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  font-size: 17px;
  border: none;
  border-radius: 10px;
  background: #E9E9EB;
  color: #007AFF;
  padding: 0 16px;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
}
.btn:disabled { opacity: .4; }
.btn-primary { background: #007AFF; color: #fff; }
.btn-danger { background: #FF3B30; color: #fff; }
.btn-ghost { background: #E9E9EB; color: #000; }
.btn-second { margin-top: 10px; }

.btn-row { display: flex; align-items: center; margin-bottom: 10px; }
.btn-row:last-child { margin-bottom: 0; }
.btn-row .flex1 + .flex1 { margin-left: 10px; }

/* ---------- 分段控件 ---------- */
.tabs {
  display: flex;
  background: #E9E9EB;
  border-radius: 9px;
  padding: 2px;
  margin: 12px 0 4px;
}
.tab {
  flex: 1;
  text-align: center;
  font-size: 14px;
  line-height: 32px;
  height: 32px;
  border-radius: 7px;
  cursor: pointer;
}
.tab-on { background: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---------- 表单 ---------- */
.field { padding: 10px 0; border-bottom: 1px solid #E5E5EA; }
.field:last-of-type { border-bottom: none; }
.label { font-size: 13px; color: #6D6D72; }
.input {
  width: 100%;
  font-size: 17px;
  height: 32px;
  line-height: 32px;
  margin-top: 3px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
}
.code-row { display: flex; align-items: center; }
.btn-code {
  width: auto;
  margin-left: 10px;
  height: 36px;
  line-height: 36px;
  font-size: 14px;
  border-radius: 8px;
  padding: 0 12px;
  flex-shrink: 0;
}

/* ---------- 文字 ---------- */
.link { color: #007AFF; font-size: 16px; cursor: pointer; }
.link-on { color: #34C759; font-weight: 600; }
.hint { font-size: 13px; color: #8E8E93; line-height: 1.5; margin-top: 8px; }
.hint-strong { color: #FF9500; }

/* ---------- 设备 ---------- */
.dev-line { font-size: 17px; line-height: 1.45; }
.dev-mac { font-size: 13px; color: #8E8E93; margin-top: 2px; }
.dev-state { font-size: 14px; color: #3C3C43; }

.tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  background: #E9E9EB;
  color: #8E8E93;
  margin-right: 8px;
}
.tag-ok { background: rgba(52,199,89,.15); color: #34C759; }
.tag-off { background: #E9E9EB; color: #8E8E93; }

.account-name { font-size: 18px; font-weight: 600; }
.account-sub { font-size: 13px; color: #8E8E93; margin-top: 3px; }

/* ---------- 日志 ---------- */
.logbox {
  max-height: 260px;
  overflow-y: auto;
  background: #F2F2F7;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.logline { color: #3C3C43; word-break: break-all; }
.logtime { color: #AEAEB2; margin-right: 4px; }
.log-ok { color: #34C759; }
.log-warn { color: #FF9500; }
.log-err { color: #FF3B30; }

/* ---------- 页脚 ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 28px;
  font-size: 12px;
  color: #AEAEB2;
}
