/* SWU ID 中继 —— 轻量样式（浅色，手机优先） */
:root {
  --brand: #0f6b58;
  --brand-d: #0b5445;
  --brand-l: #e7f4f0;
  --ink: #16211f;
  --ink-2: #5b6b68;
  --line: #e3e8e6;
  --bg: #f5f7f6;
  --card: #ffffff;
  --warn: #b4531c;
  --danger: #c0392b;
  --ok: #1a7f5a;
  --r: 14px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  text-decoration: none;
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #17a07f);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
}
.brand .name { font-weight: 700; font-size: 17px; color: var(--ink); }
.brand .sub { font-size: 12px; color: var(--ink-2); margin-left: 2px; }

.card {
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(16, 32, 28, .04), 0 8px 28px rgba(16, 32, 28, .05);
  padding: 26px 22px;
}

h1 { font-size: 21px; margin: 0 0 6px; letter-spacing: -.2px; }
h2 { font-size: 15px; margin: 26px 0 10px; color: var(--ink); }
p.lead { margin: 0 0 20px; color: var(--ink-2); font-size: 13.5px; }

label.field { display: block; margin: 0 0 14px; }
label.field > span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 500;
}

input[type=text], input[type=password], input[type=email], input[type=tel] {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfc;
  font-size: 16px; /* iOS 不缩放 */
  color: var(--ink);
  outline: none;
  transition: border-color .15s, background .15s;
}
input:focus { border-color: var(--brand); background: #fff; }
input::placeholder { color: #a9b4b1; }

.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }

button, .btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  font-family: inherit;
}
button:hover, .btn:hover { background: var(--brand-d); text-decoration: none; }
button:disabled { opacity: .55; cursor: default; }
button.ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line);
}
button.ghost:hover { background: var(--brand-l); }
button.small { height: 36px; font-size: 13.5px; width: auto; padding: 0 14px; }
button.danger { background: transparent; color: var(--danger); border: 1px solid #f0d5d1; }
button.danger:hover { background: #fdf1ef; }

.tabs {
  display: flex;
  gap: 4px;
  background: #eef2f1;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}
.tabs button {
  flex: 1;
  height: 36px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
}
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.07); }

.hint { font-size: 12.5px; color: var(--ink-2); margin: -6px 0 14px; }
.err, .okmsg {
  font-size: 13px;
  border-radius: 9px;
  padding: 10px 12px;
  margin: 0 0 14px;
  display: none;
}
.err { background: #fdf1ef; color: var(--danger); border: 1px solid #f6ddd8; }
.okmsg { background: var(--brand-l); color: var(--ok); border: 1px solid #cfe9e0; }
.err.show, .okmsg.show { display: block; }

.foot {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-2);
  text-align: center;
}

/* 控制台 */
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.avatar {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, #0f6b58, #18a184);
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 18px; flex: none;
}
.who .nm { font-weight: 700; font-size: 16px; }
.who .meta { font-size: 12.5px; color: var(--ink-2); }

.kv { display: grid; grid-template-columns: 84px 1fr; gap: 8px 10px; font-size: 13.5px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; word-break: break-all; }

.pill {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-l);
  color: var(--brand-d);
  vertical-align: middle;
  margin-left: 6px;
}
.pill.off { background: #f0f2f1; color: var(--ink-2); }

section.box {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
section.box:first-of-type { border-top: 0; margin-top: 4px; padding-top: 0; }
section.box h2 { margin-top: 0; display: flex; align-items: center; justify-content: space-between; }

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.item:last-child { border-bottom: 0; }
.item .t { color: var(--ink); }
.item .d { color: var(--ink-2); font-size: 12px; }

.list-empty { font-size: 13px; color: #9aa6a3; padding: 6px 0; }

.switch { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }

.note {
  font-size: 12.5px;
  color: var(--ink-2);
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  margin-top: 10px;
}

.scope { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.scope li { margin: 4px 0; }

.spin {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sp .7s linear infinite;
  vertical-align: -2px;
  margin-right: 7px;
}
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .wrap { padding: 18px 12px 36px; }
  .card { padding: 22px 18px; border-radius: 12px; }
}
