:root{
  --bg: #0b1020;
  --card: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --muted2: rgba(255,255,255,0.5);
  --accent: #5dd6ff;
  --primary: #7c5cff;
  --danger: #ff5b5b;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans TC", Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 20%, rgba(124,92,255,0.25), transparent 60%),
              radial-gradient(1000px 700px at 80% 30%, rgba(93,214,255,0.20), transparent 55%),
              var(--bg);
  color: var(--text);
  font-size: 18px;
  display: flex;
  flex-direction: column;
}

.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.main{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.card{
  width: min(820px, 94vw);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  backdrop-filter: blur(10px);
}

.pageTitle{
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: 0.4px;
  text-align: center;
}

.block{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
}

.block__label{
  font-size: 12px;
  color: var(--muted2);
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.block__content{
  color: var(--text);
  line-height: 1.6;
  word-break: break-word;
}

.imgBox{
  display: flex;
  align-items: center;
  justify-content: center;
}

.imgBox img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
}

.targetLine a{
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  word-break: break-all;
}
.targetLine a:hover{ text-decoration: underline; }

.actions{
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.passwordWrap{
  margin-top: 16px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
}

.inputRow{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  outline: none;
  font-size: 15px;
}

.input:focus{
  border-color: rgba(93,214,255,0.55);
  box-shadow: 0 0 0 4px rgba(93,214,255,0.18);
}

.btn{
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
  background: rgba(255,255,255,0.12);
  transition: transform 0.06s ease, background 0.2s ease, opacity 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.btn:hover{ background: rgba(255,255,255,0.16); }
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity: 0.6; cursor: not-allowed; }

.btn--primary{ background: rgba(124,92,255,0.55); }
.btn--primary:hover{ background: rgba(124,92,255,0.65); }

.btn--accent{
  background: rgba(93,214,255,0.55);
  color: rgba(0,0,0,0.88);
}
.btn--accent:hover{ background: rgba(93,214,255,0.70); }

.btn--danger{
  background: rgba(255, 91, 91, 0.65);
}
.btn--danger:hover{
  background: rgba(255, 91, 91, 0.80);
}

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

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

.is-hidden{ display: none !important; }

.footer{
  padding: 14px 18px 18px;
  color: var(--muted);
  text-align: center;
}
.footer__line{
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 520px){
  body{ font-size: 16px; }
  .card{ padding: 20px 16px; }
  .pageTitle{ font-size: 24px; }

  .inputRow{
    grid-template-columns: 1fr;
  }

  .actions{
    justify-content: stretch;
  }
  .btn{
    width: 100%;
  }
}
