:root{
  --card-bg: rgba(20, 20, 22, .58);
  --card-bd: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.55);
  --shadow: 0 30px 80px rgba(0,0,0,.45);
  --radius: 22px;
  --radius2: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC","Microsoft YaHei", Arial, sans-serif;
  overflow-x:hidden;
  background:#0b0b0d;
}

.bg{
  position:fixed; inset:0;
  background: url("./bg.jpg") center/cover no-repeat fixed;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  z-index:-3;
}
.vignette{
  position:fixed; inset:0;
  background:
    radial-gradient(1200px 700px at 20% 20%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,.58));
  z-index:-2;
}

.wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 26px 16px;
}

.card{
  width:min(920px, 100%);
  background: var(--card-bg);
  border:1px solid var(--card-bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px;
}

.head{
  display:flex;
  gap:14px;
  align-items:center;
  padding: 4px 2px 10px;
}
.logo{
  width:46px; height:46px;
  border-radius: 14px;
  display:grid; place-items:center;
  font-weight:800;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}
.title h1{
  margin:0;
  font-size: 22px;
  letter-spacing:.2px;
}
.title p{
  margin:4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding: 6px 2px 12px;
}
.chip{
  font-size:12px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding: 7px 10px;
  border-radius: 999px;
}
.chip b{ color: var(--text); font-weight:700; }

.block{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius: var(--radius2);
  padding: 14px;
  margin-top: 12px;
}

.label{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.inputRow{
  display:flex;
  gap:12px;
  align-items:stretch;
}
textarea{
  width:100%;
  min-height: 90px;
  max-height: 240px;
  resize: vertical;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.24);
  color: var(--text);
  outline:none;
  line-height: 1.35;
  font-size: 13px;
}
textarea:focus{
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

.btnCol{
  width: 128px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.btn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 12px;
  cursor:pointer;
  font-size: 14px;
  user-select:none;
}
.btn:hover{ background: rgba(255,255,255,.12); }
.btn:active{ transform: translateY(1px); }

.btn.primary{
  background: rgba(120,170,255,.22);
  border-color: rgba(120,170,255,.35);
}
.btn.primary:hover{ background: rgba(120,170,255,.28); }

.btn.ghost{
  background: rgba(255,255,255,.06);
}
.btn.danger{
  background: rgba(255,90,90,.14);
  border-color: rgba(255,90,90,.22);
}
.btn.danger:hover{ background: rgba(255,90,90,.20); }

.hint{
  margin-top: 10px;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.45;
}
.hint code{
  background: rgba(255,255,255,.08);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10);
}

.output{
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  min-height: 92px;
  max-height: 260px;
  overflow:auto;
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.9);
  font-size: 12.8px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.foot{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top: 14px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

/* 手机优化：输入框更宽 + 按钮横排，避免“很小很窄” */
@media (max-width: 640px){
  .card{ padding: 14px; }
  .btnCol{
    width: 100%;
    flex-direction: row;
  }
  .btnCol .btn{
    flex:1;
    padding: 12px 10px;
  }
  textarea{
    min-height: 120px;
    font-size: 14px;
  }
}