* {
  box-sizing: border-box;
}

:root {
  --primary-color: #1a0d43;
  --background-image: url("/assets/background.png");
  --shadow-image: url("/assets/shadow.png");
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f3f3f3;
  color: #333;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #fff var(--background-image) no-repeat bottom center;
  background-size: cover;
  padding-bottom: 132px;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 42vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .12) 72%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.wechat-chrome,
.query-panel,
.result-box,
.footer-copy,
.toast {
  position: relative;
  z-index: 1;
}

.wechat-chrome {
  display: none;
  height: 214px;
  background: #f0f0f0;
  color: #0b0b0d;
}

.status-row {
  height: 96px;
  padding: 43px 102px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .5px;
}

.status-row b {
  display: inline-flex;
  min-width: 49px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f4d33d;
  color: #171515;
  font-size: 24px;
  margin-left: 7px;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.title-row {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 47px;
}

.title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.title-wrap strong {
  font-size: 31px;
  line-height: 38px;
  font-weight: 500;
  letter-spacing: .2px;
}

.title-wrap small {
  font-size: 20px;
  line-height: 26px;
  color: #666;
  letter-spacing: .5px;
}

.close-icon {
  width: 32px;
  height: 32px;
  position: relative;
  flex: 0 0 auto;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  left: 15px;
  top: -3px;
  width: 3px;
  height: 40px;
  background: #111;
  border-radius: 2px;
}

.close-icon::before {
  transform: rotate(45deg);
}

.close-icon::after {
  transform: rotate(-45deg);
}

.right-tools {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 32px;
  line-height: 1;
}

.lens-mini {
  width: 37px;
  height: 37px;
  display: inline-block;
  position: relative;
  border: 3px solid #111;
  border-radius: 50%;
}

.lens-mini::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 3px;
  right: -10px;
  bottom: 1px;
  background: #111;
  transform: rotate(45deg);
  border-radius: 2px;
}

.query-panel {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  padding: 92px 0 56px;
  background: transparent;
}

.brand-block {
  display: block;
  text-align: center;
  margin: 0 0 64px;
  color: #1e1d42;
}

.text-logo {
  font-size: 64px;
  line-height: 68px;
  font-weight: 800;
  letter-spacing: 0;
  color: #1e1d42;
}

.logo-image {
  display: none;
  max-width: 210px;
  height: auto;
  margin: 0 auto 10px;
}

.brand-block p {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 34px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 38px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.field span {
  font-size: 22px;
  line-height: 1;
  color: #333;
  letter-spacing: 0;
}

.field select,
.field input {
  width: 100%;
  height: 64px;
  border: 0;
  border-radius: 7px;
  background: #efefef;
  color: #999;
  font-size: 22px;
  outline: none;
}

.field select {
  appearance: none;
  padding: 0 72px 0 32px;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='18' viewBox='0 0 32 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3l13 12L29 3' fill='none' stroke='%231b113c' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 31px) 50%;
  background-size: 32px 18px;
  background-repeat: no-repeat;
}

.search-field {
  grid-column: 1 / -1;
}

.search-control {
  display: flex;
  width: 100%;
  min-width: 0;
}

.search-control input {
  width: 0;
  min-width: 0;
  flex: 1 1 auto;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding: 0 32px;
}

.search-control button {
  width: 88px;
  height: 64px;
  border: 0;
  border-radius: 0 7px 7px 0;
  background: #1a0d43;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.search-control img {
  width: 42px;
  height: 42px;
}

.result-box {
  display: none;
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  padding-top: 38px;
  padding-bottom: 40px;
  background: var(--shadow-image) no-repeat top left;
  background-size: 100% auto;
}

.result-box.is-visible {
  display: block;
}

.result {
  width: 100%;
  margin: 0 auto;
}

.result-title {
  font-size: 22px;
  line-height: 34px;
  margin-bottom: 18px;
  color: #333;
}

.result-title span {
  color: #8373e5;
}

.result-title i {
  font-style: normal;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.result-list li {
  margin-bottom: 10px;
}

.result-head {
  width: 100%;
  height: 72px;
  border: 0;
  border-radius: 7px;
  background: #1a0d43;
  background: var(--primary-color);
  color: #fff;
  padding: 0 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.result-head span {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.result-head i {
  width: 36px;
  height: 36px;
  display: block;
  border-right: 6px solid #fff;
  border-bottom: 6px solid #fff;
  transform: rotate(45deg);
  margin-top: -14px;
  transition: transform .2s ease, margin .2s ease;
}

.result-detail {
  display: none;
}

.result-list li.current .result-head {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.result-list li.current .result-head i {
  transform: rotate(225deg);
  margin-top: 13px;
}

.result-list li.current .result-detail {
  display: block;
}

.detail-card {
  min-height: 260px;
  background: #ebe9ee;
  display: flex;
  gap: 38px;
  padding: 45px 38px;
}

.thumb {
  width: 210px;
  flex: 0 0 210px;
}

.thumb img {
  width: 100%;
  display: block;
}

.detail-text {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.detail-text h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 32px;
  color: #26242a;
  font-weight: 700;
}

.detail-text p {
  margin: 0;
  font-size: 22px;
  line-height: 38px;
  color: #6a6970;
}

.detail-text span {
  color: #333;
}

.footer-copy {
  position: absolute;
  left: 0;
  bottom: 38px;
  width: 100%;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}

.footer-copy p {
  margin: 0 auto;
  width: 90%;
  font-size: 20px;
  line-height: 36px;
}

.footer-copy a {
  color: #8373e5;
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  top: 280px;
  transform: translateX(-50%);
  width: 62%;
  max-width: 450px;
  padding: 18px 20px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.toast.show {
  opacity: 1;
}

@media (max-width: 750px) {
  body {
    display: flex;
    justify-content: center;
  }

  .page-shell {
    min-height: 100vh;
    max-width: 750px;
    background-size: 100% auto;
    background-position: bottom center;
    padding-bottom: 11vh;
    max-width: none;
  }

  .page-shell::before {
    display: none;
  }

  .wechat-chrome {
    display: none;
  }

  .status-row {
    height: 10.15vw;
    padding: 4.55vw 8.79vw 0;
    font-size: 3.17vw;
  }

  .status-row b {
    min-width: 5.18vw;
    height: 3.38vw;
    border-radius: 1.48vw;
    font-size: 2.54vw;
  }

  .title-row {
    height: 12.49vw;
    padding: 0 4.5vw;
  }

  .title-wrap strong {
    font-size: 3.18vw;
    line-height: 4.02vw;
  }

  .title-wrap small {
    font-size: 2.12vw;
    line-height: 2.75vw;
  }

  .query-panel {
    width: min(70vw, 360px);
    margin: 0 auto;
    padding: 10.4vh 0 0;
    background: transparent;
  }

  .brand-block {
    display: block;
    margin: 0 0 7.4vh;
  }

  .text-logo {
    font-size: min(17vw, 82px);
    line-height: min(16vw, 78px);
  }

  .logo-image {
    max-width: 52vw;
  }

  .brand-block p {
    font-size: min(5vw, 24px);
    line-height: min(6.4vw, 31px);
  }

  .form-grid {
    grid-template-columns: 1fr;
    row-gap: 5.2vh;
  }

  .field {
    gap: 1.8vh;
  }

  .field span {
    font-size: min(5.2vw, 24px);
  }

  .field select,
  .field input,
  .search-control button {
    height: 8vh;
    min-height: 54px;
    max-height: 72px;
    font-size: min(4.5vw, 21px);
  }

  .field input::placeholder {
    color: #9c9c9c;
    opacity: 1;
  }

  .field select {
    padding-left: min(6.4vw, 30px);
    padding-right: min(14vw, 62px);
    background-position: calc(100% - min(6.4vw, 30px)) 50%;
    background-size: min(6.2vw, 28px) min(3.5vw, 16px);
  }

  .search-control button {
    width: min(13vw, 60px);
    min-width: 54px;
  }

  .search-control img {
    width: 8.2vw;
    height: 8.2vw;
    max-width: 42px;
    max-height: 42px;
  }

  .right-tools {
    gap: 5.2vw;
    font-size: 3.39vw;
  }

  .lens-mini {
    width: 3.92vw;
    height: 3.92vw;
    border-width: .32vw;
  }

  .close-icon {
    width: 3.39vw;
    height: 3.39vw;
  }

  .close-icon::before,
  .close-icon::after {
    left: 1.59vw;
    top: -.32vw;
    width: .32vw;
    height: 4.23vw;
  }

  .result-box {
    width: 100%;
    margin: 0;
    padding-top: 6vh;
  }

  .result {
    width: calc(100% - 10.16vw);
  }

  .result-title,
  .result-head span {
    font-size: 3.39vw;
  }

  .result-head {
    height: 11.64vw;
  }

  .detail-card {
    min-height: 47.83vw;
    gap: 4.02vw;
    padding: 4.76vw 4.02vw;
  }

  .thumb {
    width: 26.67vw;
    flex-basis: 26.67vw;
  }

  .detail-text h3,
  .detail-text p {
    font-size: 3.17vw;
  }

  .footer-copy {
    bottom: 8.04vw;
  }

  .footer-copy p {
    font-size: 2.86vw;
    line-height: 5.29vw;
  }

  .page-shell.is-result-page {
    overflow: visible;
    padding-bottom: 11vh;
  }

  .page-shell.is-result-page .query-panel {
    width: calc(100% - 10.16vw);
    padding-top: 9vh;
  }

  .page-shell.is-result-page .brand-block {
    display: none;
  }

  .page-shell.is-result-page .form-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 3vw;
    row-gap: 5vh;
  }

  .page-shell.is-result-page .search-field {
    grid-column: 1 / -1;
  }

  .page-shell.is-result-page .field select,
  .page-shell.is-result-page .field input,
  .page-shell.is-result-page .search-control button {
    height: 11.7vw;
    min-height: 54px;
    max-height: 68px;
  }

  .page-shell.is-result-page .search-control button {
    width: 12.6vw;
    min-width: 58px;
    max-width: 70px;
  }

  .page-shell.is-result-page .result-box {
    margin-top: 5vh;
    padding-top: 7vh;
    background-size: 100% auto;
  }

  .page-shell.is-result-page .result {
    width: calc(100% - 10.16vw);
  }

  .page-shell.is-result-page .result-title {
    font-size: min(4.3vw, 20px);
    line-height: 1.5;
    margin-bottom: 3.2vw;
  }

  .page-shell.is-result-page .result-head {
    height: 11.7vw;
    min-height: 54px;
    max-height: 68px;
    padding: 0 5vw;
  }

  .page-shell.is-result-page .result-head span {
    font-size: min(4.3vw, 20px);
  }

  .page-shell.is-result-page .result-head i {
    transform: rotate(45deg);
    margin-top: -2vw;
  }

  .page-shell.is-result-page .result-list li.current .result-head i {
    transform: rotate(225deg);
    margin-top: 2vw;
  }
}

@media (max-width: 360px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field span {
    font-size: 5.4vw;
  }

  .field select,
  .field input,
  .search-control button {
    height: 13.8vw;
    font-size: 4.6vw;
  }

  .search-control button {
    width: 14vw;
    min-width: 50px;
  }

  .detail-card {
    flex-direction: column;
  }

  .thumb {
    width: 42vw;
    flex-basis: auto;
  }
}
