:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #e3e6ea;
  --text: #1f2328;
  --muted: #6b7280;
  --accent: #2563eb;
  --danger: #dc2626;
  --ok: #16a34a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 600; font-size: 16px; }
nav { display: flex; gap: 14px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
nav a.active { color: var(--accent); font-weight: 600; }
main { padding: 20px 16px 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
h1 { font-size: 18px; margin: 0 0 12px; }
h2 { font-size: 15px; margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 13px; }
label { display: block; margin: 10px 0 4px; font-size: 13px; }
input, textarea, select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; background: #fff; color: var(--text);
}
textarea { min-height: 90px; resize: vertical; }
button {
  padding: 8px 14px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 14px; cursor: pointer;
}
button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
button.danger { background: var(--danger); }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); }
.tag.ok { color: var(--ok); border-color: #bbf7d0; background: #f0fdf4; }
.tag.bad { color: var(--danger); border-color: #fecaca; background: #fef2f2; }
.tag.warn { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.msg { padding: 8px 10px; border-radius: 8px; font-size: 13px; margin: 10px 0; }
.msg.err { background: #fef2f2; color: var(--danger); }
.msg.ok { background: #f0fdf4; color: var(--ok); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button { background: #fff; color: var(--text); border: 1px solid var(--line); }
.tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.foot { padding-bottom: 32px; }
.sp { height: 8px; }

/* ticket screenshots */
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.t-imgs { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.t-img, .t-img-wrap img { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; cursor: zoom-in; }
.t-img-wrap { position: relative; }
.t-img-del { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border-radius: 50%; background: var(--danger); color: #fff; font-size: 12px; line-height: 1; }

/* changelog modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; z-index: 999; padding: 16px;
}
.modal {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  max-width: 540px; width: 100%; max-height: 80vh; overflow: auto; padding: 20px;
}
.modal h2 { margin-top: 0; }
.changelog-list { display: flex; flex-direction: column; gap: 14px; margin: 12px 0; }
.cl-item { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cl-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cl-title { font-weight: 600; font-size: 15px; }
.cl-time { color: var(--muted); font-size: 12px; margin: 2px 0 6px; }
.cl-body { font-size: 14px; white-space: normal; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

/* 新版本提示横幅 */
#update-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: var(--accent); color: #fff;
  padding: 8px 14px; font-size: 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
#update-banner button {
  margin-left: auto; background: #fff; color: var(--accent);
  padding: 4px 12px; font-size: 13px; border-radius: 6px;
}
