:root {
  --bg: #f7fbff;
  --ink: #17233c;
  --muted: #667085;
  --line: #dbe7f3;
  --brand: #1769e0;
  --brand-dark: #0f55bd;
  --white: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 48%, #eef6ff 100%);
}

.home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.search-shell {
  width: min(720px, 100%);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(145deg, var(--brand), #4d9aff);
  box-shadow: 0 18px 45px rgba(23, 105, 224, .2);
  font-size: 38px;
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 4px;
  text-align: left;
}

.brand-text strong {
  font-size: clamp(28px, 5vw, 44px);
}

.brand-text small,
.intro {
  color: var(--muted);
}

.brand-text small {
  font-size: 15px;
}

.search-box {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(216, 224, 234, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 20px 55px rgba(23, 50, 86, .1);
  backdrop-filter: blur(14px);
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: 0;
  outline: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
}

.search-box input::placeholder {
  color: #98a2b3;
}

.search-box button {
  width: 112px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--brand);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.search-box button:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 22px rgba(23, 105, 224, .22);
  transform: translateY(-1px);
}

.search-box button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.intro {
  margin: 22px auto 0;
  max-width: 520px;
  line-height: 1.8;
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 18px;
}

.search-modal.show {
  display: grid;
}

.search-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .36);
}

.search-modal-card {
  position: relative;
  width: min(360px, 100%);
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
  text-align: center;
}

.search-modal-card p {
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 1.7;
}

.search-modal-card button {
  width: 120px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 560px) {
  .home {
    align-items: start;
    padding-top: 18vh;
  }

  .brand {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
  }

  .brand-text {
    text-align: center;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 34px;
  }

  .search-box {
    gap: 8px;
    border-radius: 16px;
  }

  .search-box input {
    height: 50px;
    padding: 0 12px;
    font-size: 15px;
  }

  .search-box button {
    width: 78px;
    font-size: 15px;
  }
}
