header {
  height: 364px;
  padding-bottom: 32px;
  padding-top: 32px;
}

header > div {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

h1 {
  font-family: "Fraunces", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 48px;
  line-height: 1.1667;
  margin: 0 0 16px;
  text-align: center;
  text-wrap: balance;
  -webkit-filter: drop-shadow(2px 2px 2px rgba(0,0,0,.5));
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,.5));
}

h1 a {
  text-decoration: none;
  background: linear-gradient(90deg,
    #0092d0, #FF5722, /* 正常状态颜色 */
    #0092d0, #FF0000 /* 悬停状态颜色 */
  );
  background-size: 300% 100%;
  background-position: 0% 0%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.6s ease-in-out;
}

h1 a:hover {
  background-position: 100% 0%;
}



form {
  width: 100%;
}

.search-box {
  position: relative;
}

.search-input {
  padding: 8px 36px 8px 16px;
}

.search-clear {
  font-size: 28px;
  opacity: 0;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  visibility: hidden;
}

.search-clear:hover {
  color: #2e2e2e;
}

.search-clear:active {
  color: #454545;
}

.search-button {
  gap: 8px;
}

.search-button > svg {
  font-size: 20px;
}

.searching {
  animation: searching 1900ms infinite ease-in-out;
}

@keyframes searching {
  0% {
    transform: rotate(0deg) translateX(4px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(4px) rotate(-360deg);
  }
}

.checkboxes {
  display: flex;
  gap: 8px;
  margin: 10px 0 0 15px;
}

.checkbox {
  display: flex;
  gap: 8px;
  position: relative;
}

.checkbox-trigger {
  height: 20px;
  margin: 0;
  opacity: 0;
  width: 20px;
  z-index: 9;
}

.checkbox-trigger:hover,
.checkbox-label:hover {
  cursor: pointer;
}

.checkbox-label::before {
  background-color: #ffffff;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  box-sizing: border-box;
  content: "";
  outline: 3px solid transparent;
  transition: all 190ms ease;
}

.checkbox-label::before,
.checkbox-icon-wrapper {
  height: 20px;
  left: 0;
  position: absolute;
  top: 0;
  width: 20px;
}

.checkbox-icon-wrapper {
  align-items: center;
  display: flex;
  justify-content: center;
}

.checkbox-icon-checkmark {
  display: none;
  fill: #139a9a;
  width: 12px;
}

.checkbox:hover .checkbox-label::before {
  background-color: #e1f9f9;
}

.checkbox-trigger:focus + .checkbox-label::before {
  outline-color: #5ee8e8;
}

.checkbox-trigger:focus:not(:focus-visible) + .checkbox-label::before {
  outline-color: transparent;
}

.checkbox-trigger:focus-visible + .checkbox-label::before {
  outline-color: #5ee8e8;
}

.checkbox-trigger:checked + .checkbox-label::before {
  border-color: #139a9a;
}

.checkbox-trigger:checked ~ .checkbox-icon-wrapper .checkbox-icon-checkmark {
  display: block;
}

.messages {
  margin-bottom: 24px;
  margin-top: -64px;
}

.messages > div {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

.message {
  background: #fff url(/public/images/bg.png);
  border-radius: 4px;
  box-shadow: 0 1px 3px #9e9e9e, 0 0 1px #9e9e9e, 0 0 1px #9e9e9e;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 64px;
  padding: 16px;
  padding-left: 12px;
  word-wrap: break-word;
}
  /*
.message-positive {
border-left: 4px solid #009688;
}

.message-negative {
  border-left: 4px solid #009688;
}

.message-informative {
  border-left: 4px solid #009688;
}

.message-notice {
  border-left: 4px solid #009688;
}
*/
.message-header {
  align-items: center;
  display: flex;
  gap: 8px;
}

.message-icon {
  flex: 0 0 auto;
  font-size: 16px;
}

.message-positive .message-icon {
  color: #27916e;
}

.message-negative .message-icon {
  color: #ce4036;
}

.message-informative .message-icon {
  color: #175cd3;
}

.message-notice .message-icon {
  color: #ee7620;
}

.message-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  min-width: 0;
  word-wrap: break-word;
  word-break: break-all;
}

.message-title a {
  color: #00988b;
  font-weight: bolder;
}

.message-price {
  display: flex;
  gap: 6px 10px;
  flex-wrap: wrap;
  margin-left: 18px;
}

.skeleton {
  animation: skeleton-loading;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  /*background-color: #f3f4f6;*/
  border-radius: 4px;
  height: 24px;
  mask-image: linear-gradient(75deg, #000000 30%, rgba(0, 0, 0, 0.65) 80%);
  mask-size: 200%;
  width: 250px;
}

@keyframes skeleton-loading {
  0% {
    mask-position: 200%;
  }

  100% {
    mask-position: 0%;
  }
}

.message-data {
  align-items: center;
  display: grid;
  gap: 12px 8px;
  grid-template-columns: max-content auto;
  margin-left: 24px;
}

.message-data button {
  border-radius: 0;
  cursor: text;
  outline-offset: 4px;
  user-select: text;
  -moz-user-select: text;
  -webkit-user-select: text;
}

.message-label {
  color: #757575;
}

.message-value-status > div,
.message-value-name-servers > div {
  position: relative;
}

.message-value-name-servers > div {
  word-break: break-all;
}

.message-tags {
  display: flex;
  gap: 6px 8px;
  flex-wrap: wrap;
  margin-left: 24px;
}

.message-tag {
  align-items: center;
  border-radius: 4px;
  display: flex;
  font-size: 12px;
  font-weight: 500;
  gap: 2px;
  line-height: 24px;
  padding: 0 0 0 2px;
}

button.message-tag {
  cursor: default;
}

button.message-tag > span {
  cursor: text;
  user-select: text;
  -moz-user-select: text;
  -webkit-user-select: text;
}

.message-tag-gray {
  color: #4a5565;
}

.message-tag-red {
  color: #c10007;
}

.message-tag-yellow {
    padding: 0 5px;
    background: #FFC107;
    color: #894b00;
}

.message-tag-green {
  color: #008236;
}

.message-tag-blue {
  color: #1447e6;
}

.message-tag-indigo {
  color: #432dd7;
}

.message-tag-purple {
  color: #ff0000;
}

.message-tag-pink {
  color: #c6005c;
}

.data-source {
  text-align: center;
}

.data-source + .raw-data {
  margin-top: 24px;
}

.segmented {
  background-color: #009688;
  border-radius: 6px;
  display: inline-flex;
  gap: 4px;
  padding: 2px;
  align-items: center;
  justify-content: center;
}

.segmented-item {
  font-weight: 500;
  line-height: 28px;
  outline: 2px solid transparent;
  padding: 0 10px;
  color: white;
}

.segmented-item-selected {
    color: #00988b;
    border-radius: 4px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03),
    0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.raw-data {
  margin-left: auto;
  margin-right: auto;
  margin-top: 48px;
  max-width: 670px;
  padding-left: 20px;
  padding-right: 20px;
}
.raw-data-whois {
  white-space: pre-line!important;
}

.raw-data-whois,
.raw-data-rdap {
    word-break: break-all;
    box-shadow: 0 1px 3px #9e9e9e, 0 0 1px #9e9e9e, 0 0 1px #9e9e9e;
    word-wrap: break-word;
    white-space: pre-wrap;
    border: 1px solid #ffffff;
  border-radius: 8px;
  font-family: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono",
    "Courier New", monospace;
  font-size: 16px;
  line-height: 1.5;
  outline: 3px solid transparent;
  overflow: auto;
  padding: 16px;
  transition: all 190ms ease;
}

.raw-data-whois:focus,
.raw-data-rdap:focus {
  border: 1px solid #f1f1f1;
}

.raw-data-whois:focus:not(:focus-visible),
.raw-data-rdap:focus:not(:focus-visible) {
  border: 1px solid #f1f1f1;
  outline-color: transparent;
  white-space: pre-wrap;
}

.raw-data-whois:focus-visible,
.raw-data-rdap:focus-visible {
  border: 1px solid #f1f1f1;
  outline-color: #5ee8e8;
}

.raw-data-whois + .raw-data-rdap {
  display: none;
}

code {
  font-family: inherit;
}

code a {
  color: inherit;
}

.back-to-top {
  background-color: #139a9a;
  bottom: 30px;
  border-radius: 50px;
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05),
    0 12px 16px -4px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06),
    0 4px 8px -2px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  font-size: 28px;
  opacity: 0;
  padding: 4px;
  position: fixed;
  right: 24px;
  visibility: hidden;
  -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
}

.back-to-top:hover {
  background-color: #00bbbb;
  -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
}

.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  header {
    height: unset;
  }

  header > div {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.2222;
  }

  .messages {
    margin-top: unset;
  }

  .messages > div {
    padding-left: 16px;
    padding-right: 16px;
  }

  .message {
    min-height: unset;
  }
.message-data {
    margin-left: 20px;
}

.message-price {
    display: flex;
    gap: 6px 3px;
    margin-left: 15px;
}

.message-tags {
    margin-left: 20px;
}

  .raw-data {
    margin-top: 32px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .raw-data-whois,
  .raw-data-rdap {
    font-size: 14px;
    line-height: 1.4286;
  }
}

@media (max-width: 640px) {
  .search-button > span {
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
  }

  .message-value-status > div:not(:only-child):after,
  .message-value-name-servers > div:not(:only-child)::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22%23757575%22%3E%3Cpath%20d%3D%22M14.5%201.5a.5.5%200%200%201%20.5.5v4.8a2.5%202.5%200%200%201-2.5%202.5H2.707l3.347%203.346a.5.5%200%200%201-.708.708l-4.2-4.2a.5.5%200%200%201%200-.708l4-4a.5.5%200%201%201%20.708.708L2.707%208.3H12.5A1.5%201.5%200%200%200%2014%206.8V2a.5.5%200%200%201%20.5-.5%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E");
    background-size: cover;
    bottom: 5px;
    content: "";
    display: inline-block;
    height: 8px;
    margin-left: 2px;
    position: absolute;
    width: 8px;
  }
}

@media not screen and (hover: none) and (pointer: coarse) {
  html {
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent;
  }

  ::-webkit-scrollbar {
    background-color: transparent;
    height: 10px;
    width: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background-clip: content-box;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 2px solid transparent;
  }
}

.tippy-box {
  background-color: #1f1f1f;
  font-size: 12px;
  font-weight: 500;
}

.tippy-content {
  padding: 4px 8px;
}
