:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --navy: #073e96;
  --deep-navy: #07123c;
  --blue: #0d68f5;
  --cyan: #08b3f5;
  --panel: rgba(255, 255, 255, 0.9);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  touch-action: manipulation;
}

body {
  overflow-x: hidden;
  background: #d9edff;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.stage-shell {
  position: relative;
  width: 750px;
  height: 1333px;
  margin: 0 auto;
  overflow: hidden;
}

.canvas {
  position: relative;
  width: 750px;
  height: 1333px;
  overflow: hidden;
  transform-origin: top left;
  background: #d9edff;
}

.background-top,
.background-bottom,
.background-middle {
  position: absolute;
  left: 0;
  width: 750px;
  pointer-events: none;
  user-select: none;
}

.background-top {
  z-index: 1;
  top: 0;
  height: 667px;
  object-fit: fill;
}

.background-bottom {
  z-index: 1;
  bottom: 0;
  height: 666px;
  object-fit: fill;
}

.background-middle {
  z-index: 0;
  top: 640px;
  bottom: 640px;
  min-height: 53px;
  background: #eaf6ff url("assets/images/image-background-middle-seam-01.png") center / 100% 100% no-repeat;
}

.hero {
  position: absolute;
  z-index: 5;
  inset: 0;
  text-align: center;
  color: var(--navy);
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  left: 291px;
  top: 62px;
  width: 172px;
  height: 108px;
  object-fit: contain;
}

.hero h1 {
  position: absolute;
  top: 176px;
  left: 0;
  width: 750px;
  height: 56px;
  margin: 0;
  font-size: 52px;
  font-weight: 850;
  line-height: 56px;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.45);
}

.hero p {
  position: absolute;
  top: 243px;
  left: 0;
  width: 750px;
  margin: 0;
  font-size: 23px;
  font-weight: 570;
  line-height: 29px;
  letter-spacing: 0.6px;
}

.search {
  position: absolute;
  z-index: 6;
  top: 291px;
  left: 51px;
  width: 648px;
  height: 65px;
  margin: 0;
  border: 6px solid rgba(241, 248, 255, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(25, 98, 185, 0.14);
}

.search-link {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 8px;
  width: 37px;
  height: 38px;
  object-fit: contain;
}

.search input {
  position: absolute;
  left: 59px;
  top: 0;
  width: 494px;
  height: 53px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0a2256;
  font-size: 20px;
  font-weight: 550;
  line-height: 53px;
}

.search input::placeholder {
  color: #aebbd0;
  opacity: 1;
}

.search button {
  position: absolute;
  right: -1px;
  top: -1px;
  width: 79px;
  height: 55px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #11b6f4 0%, #1263f5 54%, #064ef3 100%);
  box-shadow: 0 6px 13px rgba(0, 100, 234, 0.22);
  cursor: pointer;
}

.search button img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.search button:active,
.visit:active,
.retest:active {
  transform: translateY(1px);
}

.domain-panel {
  position: absolute;
  z-index: 4;
  top: 385px;
  left: 18px;
  width: 714px;
  height: 365px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 17px 36px rgba(28, 102, 184, 0.11);
  backdrop-filter: blur(5px);
}

.panel-heading {
  position: relative;
  width: 100%;
  height: 67px;
}

.stack-icon {
  position: absolute;
  left: 21px;
  top: 20px;
  width: 35px;
  height: 36px;
  object-fit: contain;
}

.panel-heading h2 {
  position: absolute;
  left: 63px;
  top: 22px;
  margin: 0;
  color: var(--deep-navy);
  font-size: 25px;
  font-weight: 800;
  line-height: 31px;
  letter-spacing: 0.3px;
}

.retest {
  position: absolute;
  right: 20px;
  top: 18px;
  display: flex;
  width: 143px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  border: 0;
  border-radius: 16px;
  background: #eef7ff;
  color: #0756cc;
  font-size: 19px;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
}

.retest img {
  width: 30px;
  height: 28px;
  object-fit: contain;
}

.retest.testing img {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.domain-list {
  position: absolute;
  top: 75px;
  left: 26px;
  width: 665px;
  height: 278px;
}

.domain-row {
  position: relative;
  width: 665px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(41, 103, 170, 0.08);
}

.row-icon {
  position: absolute;
  left: -1px;
  top: 0;
  display: grid;
  width: 49px;
  height: 56px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf5ff, #d7eaff);
}

.row-icon img {
  width: 35px;
  height: 41px;
  object-fit: contain;
}

.domain-input {
  position: absolute;
  left: 67px;
  top: 0;
  width: 279px;
  height: 56px;
  padding: 0 8px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--deep-navy);
  font-size: 21px;
  font-weight: 760;
  line-height: 56px;
}

.domain-input:focus {
  color: #075ad8;
}

.status {
  position: absolute;
  left: 354px;
  top: 14px;
  display: flex;
  min-width: 78px;
  height: 29px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 16px;
  background: #effcf6;
  color: #158266;
  font-size: 17px;
  font-weight: 560;
  white-space: nowrap;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #08c764;
}

.status.pending {
  background: #eff6ff;
  color: #47719f;
}

.status.pending .status-dot {
  background: #65a9f5;
  animation: pulse 0.9s ease-in-out infinite alternate;
}

.status.error {
  background: #fff1f1;
  color: #d34747;
}

.status.error .status-dot {
  background: #ef5350;
  animation: none;
}

@keyframes pulse {
  to { opacity: 0.35; }
}

.latency {
  position: absolute;
  left: 456px;
  top: 0;
  width: 85px;
  height: 56px;
  color: #71809d;
  font-size: 19px;
  font-weight: 570;
  line-height: 56px;
  text-align: center;
  white-space: nowrap;
}

.visit {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 82px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #13b9f4 0%, #0875f5 48%, #0648ef 100%);
  box-shadow: 0 7px 13px rgba(0, 95, 235, 0.22);
  color: #fff;
  font-size: 20px;
  font-weight: 680;
  line-height: 40px;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.visit.disabled {
  pointer-events: none;
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
