/* 明亮商务风：浅色背景，蓝色主色，圆角小，字大 */
:root {
  --bg: #f6f9fd;
  --fg: #0f1b2d;
  --muted: #536176;
  --accent: #0b6bcb;
  --accent-fg: #fff;
  --card: #fff;
  --border: #d5dbe3;
  --danger: #c0392b;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--fg);
  font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 18px; line-height: 1.5; border-top: 6px solid var(--accent);
}
.app { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { margin: 0 0 4px; font-size: 1.8rem; }
h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.lead { margin: 0 0 20px; color: var(--muted); }
.result {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  min-height: 220px; display: flex; align-items: center; justify-content: center;
  padding: 16px; margin-bottom: 16px; text-align: center;
}
.result-text { font-size: 4.2rem; font-weight: 900; line-height: 1.2; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; color: #07356b; }
.result-text.rolling { color: var(--muted); }
button {
  min-height: 60px; padding: 0 22px; border: 1px solid var(--accent); border-radius: 10px; font-size: 1.25rem;
  background: var(--accent); color: var(--accent-fg); font: inherit; font-size: 1.25rem; font-weight: 600; cursor: pointer;
}
button:active { filter: brightness(.92); }
button:disabled { opacity: .6; }
.big { width: 100%; min-height: 96px; font-size: 2rem; }
.ghost { background: #fff; color: var(--accent); margin-top: 16px; }
.add { display: flex; gap: 8px; }
.add button { padding: 0 16px; flex: none; }
input {
  flex: 1; min-width: 0; min-height: 60px; padding: 0 12px; font: inherit; font-size: 1.25rem;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--fg);
}
.list { list-style: none; margin: 12px 0 0; padding: 0; }
.list li span { min-width: 0; word-break: break-all; font-size: 1.25rem; }
.list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 6px 6px 14px; margin-bottom: 8px;
}
.list button { background: #fff; color: var(--danger); border-color: var(--border); min-height: 56px; min-width: 76px; padding: 0 14px; }
.empty { color: var(--muted); }
