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

body {
  margin: 0;
  background: #ededed;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: #1a1a1a;
  font-size: 15px;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 12px 40px;
}

.bar {
  background: #a9151a;
  color: #fff;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bar .who {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.9;
}

.bar .who a { color: #fff; margin-left: 10px; }

.group-title { font-size: 13px; color: #888; padding: 18px 6px 8px; }

.group { background: #fff; border-radius: 10px; padding: 0 14px; }

.item {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
  gap: 10px;
}

.item:last-child { border-bottom: none; }

.item label { width: 96px; flex: none; color: #333; font-size: 15px; }

.item input,
.item select,
.item textarea {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font: inherit;
  color: #555;
  text-align: right;
  background: transparent;
  padding: 6px 0;
}

.item textarea { resize: vertical; min-height: 56px; text-align: right; }

.item input[type="date"],
.item input[type="time"] { text-align: right; }

.item.switch { justify-content: space-between; }

.item.switch input { flex: none; width: 44px; height: 24px; }

.btns { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }

button {
  font: inherit;
  border: none;
  border-radius: 8px;
  padding: 13px;
  cursor: pointer;
}

button.primary { background: #a9151a; color: #fff; }
button.ghost { background: #fff; color: #444; }
button.link { background: #fff; color: #a9151a; }
button:disabled { opacity: .5; cursor: default; }

.links { margin-top: 10px; }

.link-item {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-item .url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1a5fb4;
}

.link-item .ttl { color: #888; flex: none; }

.link-item .kill { color: #a9151a; cursor: pointer; flex: none; }

.tip { color: #999; font-size: 12px; padding: 10px 6px; line-height: 1.7; }

/* 登录页 */
.login {
  max-width: 340px;
  margin: 18vh auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 26px 22px;
  text-align: center;
}

.login h1 { font-size: 18px; margin: 0 0 18px; font-weight: 500; }

.login input {
  width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  outline: none;
  text-align: center;
  margin-bottom: 14px;
}

.login .err { color: #a9151a; font-size: 13px; min-height: 18px; margin-bottom: 8px; }

.login button { width: 100%; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .8);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 50;
}

.toast[hidden] { display: none; }
