:root{
  --bg:#e5e3e3;
  --panel:#ffffff;
  --card:#f0f0f0;
  --accent:#cc6a00;
  --text:#111;
  --muted:#555;

  --result-bg:#fff;
  --thumb-bg:#ece8df;
  --thumb-size:126px;
  --gap:30px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--bg);
  font-family:'Noto Sans TC', sans-serif;
  color:var(--text);
}

.container{
  max-width:1200px;
  margin:40px auto;
  background:var(--panel);
  border-radius:14px;
  padding:30px;
}

h1{
  text-align:center;
  margin:0 0 18px 0;
  font-size:34px;
}

.panel{
  background:var(--card);
  border-radius:12px;
  padding:18px;
}

.row{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.label{
  font-weight:700;
  min-width:88px;
}

#countInput{
  width:90px;
  padding:10px 12px;
  border-radius:10px;
  border:2px solid #bdbdbd;
  font-family:'Noto Sans TC', sans-serif;
  outline:none;
}

.btn-primary{
  border:none;
  border-radius:10px;
  padding:12px 18px;
  font-weight:700;
  cursor:pointer;
  background:var(--accent);
  color:#fff;
  display:flex;
  align-items:center;
  gap:8px;
}

.btn-primary:active{ transform:translateY(1px); }

.material-symbols-outlined{
  font-size:22px;
  vertical-align:middle;
}

.checklist{
  margin-top:14px;
  background:#e9ddc8;
  border-radius:12px;
  padding:14px;
}

.item-all{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(255,255,255,.45);
}

.grid{
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px 16px;
}

.check{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(255,255,255,.35);
}

.check input{
  width:18px;
  height:18px;
}

.hint{
  margin-top:12px;
  font-size:13px;
  color:var(--muted);
  line-height:1.5;
}

.hint code{
  background:rgba(255,255,255,.55);
  padding:2px 6px;
  border-radius:8px;
}

.result-wrap{
  margin-top:18px;
  background:var(--result-bg);
  border-radius:12px;
  padding:24px;
}

.result-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.result-info{
  font-weight:700;
  color:#222;
}

.error{
  background:#ffe4e4;
  color:#7a1010;
  border:1px solid #f2b5b5;
  border-radius:10px;
  padding:10px 12px;
  max-width:520px;
  font-size:13px;
  line-height:1.45;
}

.results{
  display:flex;
  flex-wrap:wrap;
  gap:var(--gap);
  align-items:flex-start;
}

.thumb{
  width:var(--thumb-size);
  height:var(--thumb-size);
  border-radius:999px;
  background:var(--thumb-bg);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;

  opacity:0;
  animation:fadeIn .35s ease forwards;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
}

@keyframes fadeIn{
  from{ opacity:0; transform:translateY(6px); }
  to{ opacity:1; transform:translateY(0); }
}
