/* style.css - shared styles */
:root{
  --bg:#0b1220;
  --card:#0f1724;
  --muted:#9aa6b2;
  --text:#e6eef6;
  --brand:#16a34a;
  --accent:#0ea5e9;
  --border:#1f2937;     /* 边框色 */
  --glass: rgba(255,255,255,0.03);
  --radius:12px;
}

*{box-sizing:border-box}
html,body{height:100%; margin:0; font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; background: linear-gradient(180deg,#071021 0%, #0b1220 100%); color:var(--text); -webkit-font-smoothing:antialiased;}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1050px; margin:28px auto; padding:20px;}

.header{
  display:flex; align-items:center; gap:14px; padding:14px 18px; border-radius:14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 6px 24px rgba(2,6,23,0.6); border:1px solid rgba(255,255,255,0.03);
}
.logo{
  width:56px; height:56px; border-radius:12px; display:grid; place-items:center;
  background: linear-gradient(135deg, var(--accent), var(--brand)); color:#031018; font-weight:800; font-size:16px;
  box-shadow: 0 6px 20px rgba(10,20,30,0.6);
}
.title h1{margin:0;font-size:18px}
.title p{margin:2px 0 0;color:var(--muted);font-size:13px}

/* Card */
.card{background:var(--card); border-radius:var(--radius); padding:18px; margin-top:18px; border:1px solid rgba(255,255,255,0.03);}

.label{font-size:13px;color:var(--muted); margin-bottom:8px}
.textarea{
  width:100%; min-height:220px; resize:vertical; padding:12px; border-radius:10px; border:1px solid rgba(255,255,255,0.03);
  background: rgba(2,6,23,0.5); color:var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Courier New', monospace; font-size:14px;
  line-height:1.6;
}

/* controls row */
.controls{display:flex; gap:10px; flex-wrap:wrap; justify-content:center; align-items:center; margin:12px 0 14px}
.select, .checkbox{background:transparent; color:var(--text)}
select, input[type="checkbox"]{background:#0b1220; border:1px solid var(--border); color:var(--text); border-radius:12px; padding:10px 12px}
.btn{
  padding:10px 14px; border-radius:10px; border:none; cursor:pointer; font-weight:600; font-size:14px;
  background:linear-gradient(180deg,var(--brand), #0f7f3a); color:#052013; box-shadow:0 8px 20px rgba(6,20,12,0.35);
}
.btn.ghost{background:transparent; color:var(--text); border:1px solid rgba(255,255,255,0.03); box-shadow:none}
.btn.accent{background:linear-gradient(180deg,var(--accent), #0b8ac8); color:#031018}
.small{padding:8px 10px; font-size:13px; border-radius:8px}

/* result */
.result{min-height:200px; padding:12px; border-radius:10px; border:1px solid rgba(255,255,255,0.03); background:rgba(255,255,255,0.02); font-family:ui-monospace,monospace; font-size:14px; line-height:1.6}

/* info section */
.info h3{margin-top:0; color:var(--text)}
.info p, .info li{color:var(--muted); font-size:14px}

/* footer */
.footer{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:18px; padding-top:14px; border-top:1px solid rgba(255,255,255,0.02); color:var(--muted); font-size:13px}
.footer .links a{margin-right:12px}

/* responsive */
@media(max-width:720px){
  .header{flex-direction:column; align-items:flex-start; gap:8px}
  .controls{flex-direction:column}
}
