/* style.css */
:root{
  /* 莫蘭迪：柔霧綠、灰藍、米灰、乾燥玫瑰、石墨 */
  --bg: #F2F0EC;
  --card: #FAF9F7;
  --ink: #2F3437;
  --muted: #6F787C;

  --line: #D9D3CB;
  --line2: #E6E1DA;

  --sage: #A9B8AE;
  --slate: #8EA2B0;
  --rose: #C7A2A2;
  --sand: #E6DDCF;
  --graphite: #3A3F43;

  --shadow: 0 10px 24px rgba(58,63,67,.10);
  --radius: 16px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui,-apple-system,"Segoe UI","Microsoft JhengHei",sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, #ffffff66, transparent 60%),
              radial-gradient(900px 500px at 90% 10%, #ffffff55, transparent 60%),
              var(--bg);
  color:var(--ink);
}

.wrap{
  max-width: 720px;
  margin: 28px auto;
  padding: 0 16px 28px;
}

.header h1{
  margin: 0 0 10px;
  letter-spacing: .5px;
  font-size: 22px;
}

.desc{
  background: linear-gradient(180deg, #ffffff70, #ffffff30);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.65;
}

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

.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 680px){
  .grid{ grid-template-columns: 1fr 1fr; }
  .field:nth-child(3){ grid-column: 1 / -1; }
}

.field label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.inputWrap{
  position: relative;
}

input{
  width:100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s, transform .05s;
}

input:focus{
  border-color: color-mix(in srgb, var(--slate) 60%, var(--line) 40%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--slate) 20%, transparent 80%);
}

.hint{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.radioBox{
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fff0);
}

.radioTitle{
  font-weight: 700;
  font-size: 13px;
  color: var(--graphite);
  margin-bottom: 10px;
}

.radioRow{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
}

.radioRow:hover{
  background: color-mix(in srgb, var(--sand) 30%, transparent 70%);
  border-color: color-mix(in srgb, var(--line2) 70%, transparent 30%);
}

.radioRow input{
  width:auto;
  margin:0;
  accent-color: var(--sage);
}

.actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
}

button{
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  cursor: pointer;
  transition: transform .05s, box-shadow .15s, background .15s, border-color .15s;
}

button:active{ transform: translateY(1px); }

.btnPrimary{
  flex: 1;
  color: #1f2427;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sage) 70%, #fff 30%), var(--sand));
  box-shadow: 0 8px 16px rgba(169,184,174,.25);
}

.btnPrimary:hover{
  box-shadow: 0 10px 20px rgba(169,184,174,.30);
}

.btnGhost{
  width: 120px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.btnGhost:hover{
  background: #ffffffaa;
  border-color: color-mix(in srgb, var(--slate) 40%, var(--line) 60%);
}

.result{
  margin-top: 14px;
  border-top: 1px dashed var(--line2);
  padding-top: 14px;
}

.resultHead{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.resultTitle{
  font-weight: 800;
  letter-spacing: .3px;
}

.pill{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  color: var(--muted);
  background: #fff;
}

.out{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  white-space: pre-wrap;
  line-height: 1.6;
  min-height: 120px;
}

.footer{
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.footNote{
  opacity: .9;
}

.site-footer{
  margin-top: 32px;
  padding: 18px 0 6px;
  text-align: center;
  font-size: 13px;
  color: #7a7a7a;
  border-top: 1px solid #e2ddd6;
}

.site-footer a{
  color: #7a6f6b;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover{
  text-decoration: underline;
  color: #5f5551;
}
