:root {
  --bg: #fff7ef;
  --ink: #2a2118;
  --muted: #6b5a4a;
  --card: #ffffff;
  --line: #ead9c8;
  --accent: #e85d4c;
  --shadow: 0 10px 30px rgba(80, 40, 10, 0.08);
  font-family: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, #ffe3a3 0, transparent 35%),
    radial-gradient(circle at 90% 0%, #ffd0c8 0, transparent 28%),
    radial-gradient(circle at 80% 90%, #cde9ff 0, transparent 30%),
    var(--bg);
  color: var(--ink);
}
.page { max-width: 1100px; margin: 0 auto; padding: 28px 18px 48px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hero p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 40rem; }
.layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; margin-top: 24px; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.panel {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 12px; font-size: 1.15rem; }
.paint-block + .paint-block, .ratio {
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line);
}
.preview-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.swatch-name { font-weight: 800; font-size: 1.05rem; }
.hex { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: 0.72rem;
}
.blob {
  border-radius: 50%;
  border: 3px solid rgba(42, 33, 24, 0.18);
  box-shadow: inset 0 -10px 18px rgba(0,0,0,0.12);
}
.blob.big { width: 88px; height: 88px; }
.blob.huge {
  width: min(240px, 70vw); height: min(240px, 70vw); border-width: 4px;
  box-shadow: inset 0 -22px 40px rgba(0,0,0,0.16), var(--shadow);
}
.blob.md { width: 56px; height: 56px; }
.blob.sm { width: 40px; height: 40px; }
.blob.pick { width: 44px; height: 44px; transition: transform 0.12s ease; }
.swatch:hover .blob.pick { transform: scale(1.08); }
.swatch[aria-pressed="true"] .blob.pick { outline: 3px solid var(--accent); outline-offset: 3px; }
.ratio input[type="range"] { width: 100%; accent-color: var(--accent); }
.ratio-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.btn {
  margin-top: 14px; border: 0; border-radius: 999px; padding: 10px 16px;
  background: var(--ink); color: #fff; font-weight: 700; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.result {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 420px; gap: 10px;
}
.tip { margin: 8px 0 0; font-size: 1.2rem; font-weight: 800; }
.mix-line { margin: 0; color: var(--muted); }
.equation { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 1.4rem; font-weight: 700; }
.foot { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }
