/* 极简样式，无外部依赖（不引 CDN / 字体），深浅色自适应 */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --fg: #1b1d21;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2f6bff;
  --accent-fg: #ffffff;
  --ok-bg: #eaf7ee;
  --ok-fg: #1a7f37;
  --warn-bg: #fff5e5;
  --warn-fg: #8a5300;
  --err-bg: #fdecec;
  --err-fg: #b42318;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --card: #1e2127;
    --fg: #e8eaed;
    --muted: #9aa2ad;
    --line: #2c3038;
    --accent: #5b8cff;
    --accent-fg: #10131a;
    --ok-bg: #16301f;
    --ok-fg: #6ee787;
    --warn-bg: #33270f;
    --warn-fg: #ffd479;
    --err-bg: #3a1a1a;
    --err-fg: #ff9b9b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }

.wrap { max-width: 620px; margin: 0 auto; padding: 20px 16px 56px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 6px;
}
header.site .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
}
/* 站标：用 admin 的 app 图标（自带圆角白底，浅/深色页头都成立） */
header.site .brand-logo { width: 24px; height: 24px; border-radius: 6px; display: block; }
header.site nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  /* 触控目标：移动端别只剩一行小字（语言切换就是这条） */
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
header.site nav a:hover { color: var(--fg); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 16px;
}

h1 { font-size: 24px; line-height: 1.3; margin: 8px 0 10px; }
h2 { font-size: 18px; margin: 22px 0 8px; }
p { margin: 8px 0; }
.lead { color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.hidden { display: none !important; }

label.field { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 14px; }
label.field .opt { font-weight: 400; color: var(--muted); }

input[type="email"], input[type="text"], textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--fg);
  font: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 130px; resize: vertical; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

button {
  font: inherit;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
  width: 100%;
}
button:hover:not(:disabled) { filter: brightness(1.06); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary { background: transparent; color: var(--fg); border-color: var(--line); }
button.small-btn { width: auto; padding: 9px 14px; font-size: 14px; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; }

.banner {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 14px;
}
.banner.ok { background: var(--ok-bg); color: var(--ok-fg); }
.banner.warn { background: var(--warn-bg); color: var(--warn-fg); }
.banner.err { background: var(--err-bg); color: var(--err-fg); }
.banner strong { display: block; margin-bottom: 2px; }

.status-line { display: flex; gap: 8px; align-items: baseline; margin: 6px 0; font-size: 15px; }
.status-line .k { color: var(--muted); min-width: 60px; }

.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; padding: 0;
  font-size: 12px; line-height: 1; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff;
}

ol.steps { padding-left: 20px; }
ol.steps li { margin: 10px 0; }

.spinner { color: var(--muted); font-size: 14px; }
