:root {
  --bg: #f4f4f7;
  --card: #fff;
  --line: #e6e6ec;
  --ink: #1a1a22;
  --ink-2: #5a5a6b;
  --ink-3: #9191a3;
  --brand: #0f766e;
  --brand-soft: #e2f2f0;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; padding-bottom: 40px;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 0; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 18px; }
.brand { display: flex; align-items: center; gap: 9px; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.brand h1 { font-size: 17px; font-weight: 600; margin: 0; }
.weak { font-size: 12px; color: var(--ink-3); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.card h2 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 12px; letter-spacing: .3px; }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.card-head h2 { margin: 0 0 12px; }

/* 主输出 */
.hero { text-align: center; }
.out {
  display: flex; align-items: center; gap: 10px;
  background: #f8f8fb; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
}
#pwd {
  flex: 1; min-width: 0; text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px; line-height: 1.4; word-break: break-all; letter-spacing: .3px;
}
.out-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.icon-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 7px 11px; font-size: 13px; color: var(--ink-2); cursor: pointer; font-family: inherit;
}
.icon-btn:hover { background: var(--brand-soft); border-color: #bfe0dc; color: var(--brand); }
.icon-btn.ok { background: var(--brand); border-color: var(--brand); color: #fff; }

.strength { margin-top: 14px; }
.s-bar { height: 7px; border-radius: 7px; background: #f0f0f4; overflow: hidden; }
.s-bar span { display: block; height: 100%; width: 0; border-radius: 7px; transition: width .3s, background .3s; }
.s-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 7px; }
.s-meta strong { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }

/* 长度滑块 */
.len { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 6px; background: #ececf2; outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 2px solid var(--brand); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 2px solid var(--brand); cursor: pointer;
}
.tick { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 6px; }

/* 复选 */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.ck { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.ck input { display: none; }
.ck span {
  width: 19px; height: 19px; border-radius: 6px; border: 1.6px solid #cfcfe0;
  background: #fff; flex: 0 0 auto; position: relative; transition: .15s;
}
.ck input:checked + span { background: var(--brand); border-color: var(--brand); }
.ck input:checked + span::after {
  content: ''; position: absolute; left: 5px; top: 2px;
  width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.ck em { font-style: normal; font-size: 11px; color: #b3b3c1; }

.tip { font-size: 12px; color: var(--ink-3); margin: 14px 0 0; word-break: break-all; line-height: 1.7; }

/* 批量 */
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); cursor: pointer; font-size: 15px; line-height: 1;
}
.stepper button:hover { background: #fafafd; }
.stepper span { width: 26px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }

.batch { list-style: none; margin: 0 0 12px; padding: 0; }
.batch li {
  display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #f2f2f6;
}
.batch li:first-child { border-top: 0; }
.batch code {
  flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; word-break: break-all; color: var(--ink-2);
}
.batch .cp { border: 0; background: none; color: var(--ink-3); font-size: 11.5px; cursor: pointer; font-family: inherit; padding: 0 2px; }
.batch .cp:hover { color: var(--brand); }

.btn-ghost {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 10px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; font-family: inherit;
}
.btn-ghost:hover { background: #fafafd; }

.note p { font-size: 12.5px; color: var(--ink-2); line-height: 1.75; margin: 0; }
.note code { background: #f2f2f6; padding: 1px 5px; border-radius: 5px; font-size: 12px; }
.foot { text-align: center; font-size: 12px; color: #b3b3c1; padding: 8px 0 20px; }

@media (max-width: 420px) {
  .checks { grid-template-columns: 1fr; }
  #pwd { font-size: 15px; }
}
