:root {
  --blue: #2563eb;
  --text: #172033;
  --muted: #718096;
  --line: #e5e9f0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f7fa;
  color: var(--text);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
}
main {
  width: min(960px,calc(100% - 32px));
  margin: auto;
  padding: 64px 0 32px;
}
header {
  text-align: center;
  margin-bottom: 32px;
}
header small {
  color: var(--blue);
}
h1 {
  font-size: 38px;
  margin: 10px 0;
}
header p {
  color: var(--muted);
  font-size: 14px;
}
.permanent {
  background: var(--blue);
  color: #fff;
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.permanent label,
.main > label,
.backup > label,
.field {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}
.permanent label {
  color: #cfddff;
}
.permanent strong {
  font-size: 21px;
}
.buttons {
  display: flex;
  gap: 8px;
}
.buttons button,
.buttons a {
  border: 0;
  border-radius: 6px;
  padding: 9px 15px;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.permanent button {
  background: #ffffff26;
  color: #fff;
}
.permanent a {
  background: #fff;
  color: var(--blue);
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.title {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.title > b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #edf3ff;
  color: var(--blue);
}
h2 {
  font-size: 19px;
  margin: 0;
}
.title small {
  font-size: 9px;
  color: #9aa5b5;
}
.main {
  padding: 20px 0;
}
.domain {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.domain strong {
  font-size: 16px;
}
.domain button {
  background: #edf3ff;
  color: var(--blue);
}
.domain a {
  background: var(--blue);
  color: #fff;
}
.backup {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.backup ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.backup li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  color: #4c586d;
}
.backup button {
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
}
.field {
  margin-top: 20px;
}
.field input {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  outline: none;
}
.field input:focus {
  border-color: var(--blue);
}
footer {
  text-align: center;
  color: #99a3b2;
  font-size: 12px;
  padding-top: 32px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%,15px);
  background: #172033;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  transition: .2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}
@media (max-width:760px) {
  main {
    padding-top: 38px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .permanent {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .domain {
    align-items: flex-start;
    flex-direction: column;
  }
  .domain .buttons {
    width: 100%;
  }
  .domain .buttons > * {
    flex: 1;
    text-align: center;
  }
}
.cards .card:nth-child(2) {
  order: -1;
}
.reserve-url {
  background: #fff;
  border: 1px dashed #bdc9da;
  border-radius: 12px;
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -10px 0 20px;
}
.reserve-url label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}
.reserve-url strong {
  font-size: 17px;
  color: #526078;
}
.reserve-url button {
  background: #edf1f7;
  color: #526078;
}
.reserve-url a {
  background: #526078;
  color: #fff;
}
@media (max-width:760px) {
  .reserve-url {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .reserve-url strong {
    font-size: 14px;
    word-break: break-all;
  }
}
.mobile-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 112px;
  min-height: 82px;
  border: 1px solid #e4e8f0;
  border-radius: 11px;
  background: #f8f9fc;
}
.mobile-step b {
  position: absolute;
  left: 7px;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e8edff;
  color: var(--blue);
  font-size: 10px;
  line-height: 17px;
}
.mobile-step span {
  color: var(--blue);
  font-size: 25px;
  line-height: 1;
}
.mobile-step em {
  font-style: normal;
  color: #667085;
  font-size: 10px;
}
.shortcut > i {
  color: #a7b0c0;
  font-size: 20px;
  font-style: normal;
}

/* Modern visual polish — layout remains unchanged */
:root {
  --blue: #4f6df5;
  --text: #101828;
  --muted: #7b879a;
  --line: #e7eaf1;
}
body {
  min-height: 100vh;
  background: radial-gradient(circle at 15% 0,rgba(79,109,245,.12),transparent
    28rem),radial-gradient(circle at 90% 30%,rgba(123,92,255,.08),transparent
    25rem),#f7f8fc;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(40,55,90,.025) 1px,transparent
    1px),linear-gradient(90deg,rgba(40,55,90,.025) 1px,transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom,#000,transparent 75%);
}
main {
  position: relative;
  padding-top: 72px;
}
header {
  margin-bottom: 38px;
}
header small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(79,109,245,.16);
  border-radius: 999px;
  padding: 7px 12px;
  box-shadow: 0 4px 16px rgba(40,55,100,.05);
  font-weight: 600;
}
h1 {
  font-size: 42px;
  letter-spacing: -1.8px;
  line-height: 1.15;
  margin: 15px 0 11px;
}
header p {
  font-size: 14px;
  letter-spacing: .02em;
}
.permanent {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg,#435ff0,#6c5ce7);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 16px 40px rgba(67,95,240,.2);
  padding: 24px 28px;
}
.permanent:after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  right: 15%;
  top: -170px;
  background: rgba(255,255,255,.12);
  pointer-events: none;
}
.permanent strong {
  letter-spacing: -.3px;
}
.buttons button,
.buttons a {
  position: relative;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  transition: transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.buttons button:hover,
.buttons a:hover,
.backup button:hover {
  transform: translateY(-1px);
}
.permanent a {
  box-shadow: 0 5px 14px rgba(31,45,120,.18);
}
.reserve-url {
  background: rgba(255,255,255,.73);
  border: 1px solid rgba(179,189,209,.65);
  border-top-color: transparent;
  border-radius: 0 0 12px 12px;
  margin: -11px 8px 24px;
  padding: 20px 20px 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(33,45,80,.055);
}
.reserve-url label {
  font-weight: 600;
  letter-spacing: .04em;
}
.reserve-url button {
  background: #eef1f7;
}
.reserve-url a {
  background: #344054;
}
.cards {
  gap: 22px;
}
.card {
  position: relative;
  border-color: rgba(218,223,234,.9);
  border-radius: 16px;
  padding: 26px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 35px rgba(30,42,75,.065);
  transition: transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(79,109,245,.25);
  box-shadow: 0 18px 45px rgba(30,42,75,.1);
}
.title {
  padding-bottom: 20px;
}
.title > b {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg,#eef2ff,#e3e9ff);
  box-shadow: inset 0 0 0 1px rgba(79,109,245,.08);
  font-size: 15px;
}
.title h2 {
  letter-spacing: -.3px;
}
.title small {
  display: block;
  margin-top: 3px;
  letter-spacing: .13em;
}
.main {
  padding: 22px 0;
}
.main > label,
.backup > label {
  font-weight: 600;
  letter-spacing: .04em;
}
.domain strong {
  letter-spacing: -.25px;
}
.domain button {
  background: #eef2ff;
}
.domain a {
  background: linear-gradient(120deg,#4f6df5,#6557e8);
  box-shadow: 0 5px 12px rgba(79,109,245,.16);
}
.backup {
  padding-top: 20px;
}
.backup li {
  padding: 11px 2px;
  border-bottom-color: #ebedf3;
}
.backup button {
  font-weight: 600;
  border-radius: 6px;
  transition: .18s;
}
.backup button:hover {
  background: #eef2ff;
}

.backup li > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.backup li a {
  padding: 5px 7px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.18s;
}

.backup li a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(79, 109, 245, 0.18);
}
footer {
  padding-top: 38px;
  letter-spacing: .04em;
}
.toast {
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(16,24,40,.24);
}
@media (max-width:760px) {
  main {
    padding-top: 42px;
  }
  h1 {
    font-size: 34px;
  }
  .permanent {
    padding: 22px;
  }
  .reserve-url {
    margin: -11px 5px 20px;
    padding: 18px;
  }
  .card {
    padding: 22px;
    border-radius: 14px;
  }
  .card:hover {
    transform: none;
  }
}
.favorite-button {
  margin-top: 20px;
  padding: 10px 17px;
  border: 1px solid rgba(79,109,245,.24);
  border-radius: 9px;
  background: rgba(255,255,255,.82);
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(40,55,100,.07);
  transition: .2s;
}
.favorite-button span {
  font-size: 17px;
  vertical-align: -1px;
  margin-right: 5px;
}
.favorite-button:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 8px 22px rgba(40,55,100,.12);
}
.favorite-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16,24,40,.38);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: .2s;
}
.favorite-modal.show {
  opacity: 1;
  visibility: visible;
}
.favorite-dialog {
  position: relative;
  width: min(360px,100%);
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(16,24,40,.22);
  transform: translateY(8px) scale(.98);
  transition: .2s;
}
.favorite-modal.show .favorite-dialog {
  transform: none;
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: none;
  color: #98a2b3;
  font-size: 24px;
  cursor: pointer;
}
.star {
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 27px;
}
.favorite-dialog h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.favorite-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 21px 0;
}
.shortcut kbd {
  min-width: 42px;
  padding: 8px 11px;
  border: 1px solid #d8deea;
  border-bottom-width: 3px;
  border-radius: 7px;
  background: #f8f9fc;
  color: #344054;
  font: 600 13px inherit;
}
.shortcut span {
  color: #98a2b3;
}
.modal-confirm {
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(120deg,#4f6df5,#6557e8);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
