* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  background: #f6f7fb;
  color: #1f2430;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2f6bff;
}

.logo span {
  color: #1f2430;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #616a7d;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: #eef1f8;
  color: #1f2430;
}

.site-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.hero p {
  color: #616a7d;
  margin: 0;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(31, 36, 48, 0.06);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input[type='text'],
.field input[type='password'] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dfe3ec;
  border-radius: 10px;
  font-size: 1rem;
}

.field input:focus {
  outline: none;
  border-color: #2f6bff;
}

.prefix-input {
  display: flex;
  align-items: center;
  border: 1px solid #dfe3ec;
  border-radius: 10px;
  overflow: hidden;
}

.prefix-input .prefix {
  padding: 12px 8px 12px 14px;
  color: #8892a6;
  white-space: nowrap;
}

.prefix-input input {
  border: none !important;
  padding-left: 0 !important;
}

.field-hint {
  min-height: 18px;
  font-size: 0.82rem;
  margin: 6px 2px 0;
}

.field-hint.ok {
  color: #1f9d55;
}

.field-hint.error {
  color: #e3453a;
}

.password-hint {
  font-size: 0.82rem;
  color: #8892a6;
  line-height: 1.5;
  margin: 4px 0 18px;
}

.form-message {
  min-height: 20px;
  font-size: 0.9rem;
  color: #e3453a;
  margin: 0 0 12px;
}

.form-message.ok {
  color: #1f9d55;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  width: 100%;
  background: #2f6bff;
  color: #fff;
}

.btn-primary:hover {
  background: #1d54e0;
}

.btn-secondary {
  background: #eef1f8;
  color: #1f2430;
}

.btn-secondary:hover {
  background: #dfe4f0;
}

.btn-danger {
  width: 100%;
  background: #fdeceb;
  color: #c0392b;
}

.btn-danger:hover {
  background: #f9d6d3;
}

.result-box,
.detail-box {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eef1f8;
}

.result-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.result-url {
  font-size: 1.05rem;
  color: #2f6bff;
  word-break: break-all;
  margin-bottom: 16px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.copy-message {
  font-size: 0.85rem;
  color: #1f9d55;
  min-height: 18px;
}

.detail-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  row-gap: 10px;
  margin: 0 0 20px;
}

.detail-list dt {
  color: #8892a6;
  font-size: 0.88rem;
}

.detail-list dd {
  margin: 0;
  word-break: break-all;
}

.danger-zone {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #eef1f8;
}

.danger-zone input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dfe3ec;
  border-radius: 10px;
  margin-bottom: 10px;
}

.notice {
  text-align: center;
  margin-top: 24px;
  font-size: 0.82rem;
  color: #8892a6;
  line-height: 1.7;
}

.notice p {
  margin: 0;
}

.status-page {
  margin-top: 60px;
}

.site-footer {
  text-align: center;
  padding: 30px 16px;
  font-size: 0.8rem;
  color: #b0b6c4;
}

@media (max-width: 480px) {
  .card {
    padding: 22px 18px;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions a,
  .result-actions button {
    width: 100%;
  }
}
