:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --blue: #2f74b8;
  --deep-blue: #236db4;
  --text: #111827;
  --muted: #8a8f98;
  --line: #edf0f3;
  --page: #f3f8fb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #dfeaf2;
}

body {
  display: flex;
  justify-content: center;
  color: var(--text);
}

button {
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.phone-shell {
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(29, 78, 116, 0.08), 0 18px 60px rgba(19, 50, 77, 0.18);
}

.screen {
  display: none;
  min-height: 100vh;
}

.screen.is-active {
  display: block;
}

.home-hero {
  min-height: 164px;
  color: #fff;
  background: linear-gradient(180deg, #3887d7 0%, #236da9 100%);
}

.is-standalone-app .home-hero {
  padding-top: max(env(safe-area-inset-top), 24px);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 46px 38px;
  gap: 12px;
  align-items: center;
  padding: 22px 16px 6px;
}

.search-box {
  height: 38px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  color: #7b8189;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  font-size: 17px;
}

.search-icon {
  width: 17px;
  height: 17px;
  border: 2px solid #9098a2;
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: #9098a2;
  position: absolute;
  right: -7px;
  bottom: -4px;
  transform: rotate(45deg);
}

.icon-button {
  height: 38px;
  display: grid;
  place-items: center;
}

.headset-icon {
  width: 27px;
  height: 27px;
  border: 2px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50% 50% 35% 35%;
  position: relative;
}

.headset-icon::before,
.headset-icon::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 6px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 6px;
  background: #2e78bd;
}

.headset-icon::before {
  left: -5px;
}

.headset-icon::after {
  right: -5px;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  width: 26px;
  height: 2px;
  border-radius: 3px;
  background: #fff;
  display: block;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -10px;
}

.menu-icon::after {
  top: 10px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 14px 18px 22px;
  text-align: center;
}

.stat-item {
  min-height: 82px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  position: relative;
}

.stat-item strong {
  min-height: 25px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

.badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translateX(-18%);
  padding: 2px 6px;
  border-radius: 10px;
  background: #ff6879;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.line-icon {
  width: 38px;
  height: 31px;
  display: block;
  position: relative;
  color: #fff;
}

.car-front {
  border: 3px solid currentColor;
  border-top-width: 5px;
  border-radius: 8px 8px 4px 4px;
}

.car-front::before,
.car-front::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 8px;
  height: 8px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #2c76b7;
}

.car-front::before {
  left: 2px;
}

.car-front::after {
  right: 2px;
}

.license-icon {
  border: 3px solid currentColor;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 19px;
}

.wallet-icon {
  border: 3px solid currentColor;
  border-radius: 5px;
}

.wallet-icon::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 11px;
  width: 13px;
  height: 8px;
  border: 3px solid currentColor;
  border-radius: 8px;
}

.message-icon {
  border: 3px solid currentColor;
  border-radius: 6px;
}

.message-icon::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 13px;
  border: 7px solid transparent;
  border-top-color: currentColor;
}

.home-content {
  min-height: calc(100vh - 164px);
  padding: 12px 15px 96px;
  background: linear-gradient(180deg, rgba(47, 116, 184, 0.18), var(--page) 85px);
}

.service-panel,
.news-card,
.vehicle-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 68, 95, 0.08);
}

.service-panel {
  padding: 18px 18px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 30px;
}

.service-item {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  color: #3f454b;
  font-size: 14px;
  line-height: 1.18;
  text-align: center;
}

.service-icon-img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.mini-car,
.moving-car {
  width: 31px;
  height: 17px;
  border-radius: 8px 8px 4px 4px;
  background: currentColor;
  display: block;
  position: relative;
}

.mini-car::before,
.moving-car::before {
  content: "";
  position: absolute;
  left: 7px;
  top: -8px;
  width: 17px;
  height: 10px;
  border-radius: 10px 10px 1px 1px;
  background: currentColor;
}

.siren {
  width: 22px;
  height: 24px;
  border: 5px solid currentColor;
  border-bottom-width: 4px;
  border-radius: 14px 14px 2px 2px;
  display: block;
}

.book,
.person-card,
.grid-dot {
  width: 30px;
  height: 24px;
  display: block;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.85;
}

.news-card {
  margin-top: 10px;
  overflow: hidden;
}

.section-title {
  height: 37px;
  border-bottom: 1px solid #e7eaee;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
}

.section-title strong {
  font-size: 16px;
}

.section-title span {
  color: #6d7077;
  font-size: 15px;
}

.section-title i {
  width: 13px;
  height: 13px;
  border-right: 2px solid #aeb3b9;
  border-top: 2px solid #aeb3b9;
  margin-left: auto;
  transform: rotate(45deg);
}

.news-row {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 11px;
  padding: 11px 10px 6px;
}

.news-image {
  height: 83px;
  border-radius: 4px;
  background: #173954;
}

.emblem::after {
  content: "公安";
  width: 74px;
  height: 55px;
  margin: 15px auto;
  border-radius: 50% 50% 42% 42%;
  background: radial-gradient(circle, #d93b33 0 30%, #d7a344 31% 48%, transparent 49%);
  color: #f5d06d;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.news-row p,
.traffic-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: #3c4148;
}

.news-meta {
  min-height: 28px;
  padding: 0 12px 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: #999fa7;
  font-size: 14px;
}

.news-meta span {
  width: 52px;
  height: 6px;
  margin-left: 178px;
  background: linear-gradient(90deg, #d7dadd 0 18%, transparent 18% 28%, #d7dadd 28% 46%, transparent 46% 56%, #3a82ee 56% 78%, transparent 78% 88%, #d7dadd 88%);
}

.traffic-row {
  min-height: 100px;
  padding: 12px 10px 10px;
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 12px;
}

.traffic-row small {
  display: block;
  margin-top: 36px;
  color: #9da2aa;
  font-size: 13px;
}

.map-thumb {
  height: 82px;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 66% 34%, #244dff 0 9%, transparent 10%),
    radial-gradient(ellipse at 58% 56%, #3c2ee4 0 14%, transparent 15%),
    radial-gradient(ellipse at 78% 74%, #3c87ff 0 9%, transparent 10%),
    linear-gradient(135deg, #62d65b, #f4f7ec 52%, #b5e2ff);
}

.bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100vw, 430px);
  transform: translateX(-50%);
  height: auto;
  min-height: 84px;
  display: block;
  background: #fff;
  box-shadow: 0 -4px 12px rgba(42, 77, 105, 0.08);
}

.bottom-tabs img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.page-header {
  height: 76px;
  color: #fff;
  background: var(--blue);
}

.is-standalone-app .page-header {
  height: calc(76px + max(env(safe-area-inset-top), 24px));
  padding-top: max(env(safe-area-inset-top), 24px);
}

.title-row {
  height: 76px;
  display: grid;
  grid-template-columns: 116px 1fr 116px;
  align-items: center;
  padding: 0 20px;
}

.title-row h1 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 18px;
}

.back-button span {
  width: 17px;
  height: 17px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

.vehicle-content {
  padding: 30px 12px 132px;
}

.vehicle-card {
  overflow: hidden;
}

.vehicle-main {
  min-height: 118px;
  padding: 28px 18px 20px;
  display: grid;
  grid-template-columns: 96px 1fr 42px;
  align-items: center;
  background: linear-gradient(180deg, #cfe4ff 0%, #fff 75%);
}

.vehicle-illustration {
  width: 88px;
  height: 70px;
  border-radius: 50%;
  background: #e6f2ff;
  display: grid;
  place-items: center;
  color: #2e80d9;
  position: relative;
}

.vehicle-illustration::after {
  content: "";
  position: absolute;
  bottom: 9px;
  width: 70px;
  height: 4px;
  border-radius: 4px;
  background: currentColor;
}

.moving-car {
  color: #2e80d9;
}

.vehicle-info h2 {
  margin: 0 0 8px;
  color: #03070c;
  font-size: 22px;
  font-weight: 800;
}

.vehicle-info p {
  margin: 0 0 9px;
  color: #777;
  font-size: 18px;
}

.normal-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 3px;
  color: #20bd72;
  background: #cff4df;
  font-size: 16px;
}

.qr-button {
  width: 30px;
  height: 30px;
  background:
    linear-gradient(#167ce8 0 0) 0 0 / 10px 10px,
    linear-gradient(#167ce8 0 0) 15px 0 / 10px 10px,
    linear-gradient(#167ce8 0 0) 0 15px / 10px 10px,
    linear-gradient(#167ce8 0 0) 15px 15px / 4px 10px,
    linear-gradient(#167ce8 0 0) 23px 15px / 4px 10px,
    linear-gradient(#167ce8 0 0) 15px 23px / 12px 4px;
  background-repeat: no-repeat;
}

.expand-button {
  width: 100%;
  height: 30px;
  border-top: 1px solid #ecf0f4;
  background: #fff;
  position: relative;
}

.expand-button::after {
  content: "";
  width: 14px;
  height: 14px;
  border-right: 3px solid #333;
  border-bottom: 3px solid #333;
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%) rotate(45deg);
}

.feedback {
  margin: 52px 0 0;
  text-align: center;
  color: #9ca1a8;
  font-size: 15px;
}

.feedback a {
  color: #2686e8;
}

.primary-bottom {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100vw - 36px), 394px);
  height: 54px;
  border-radius: 4px;
  background: #2f70b4;
  color: #fff;
  font-size: 22px;
  letter-spacing: 0;
}

@media (max-width: 360px) {
  .service-panel {
    padding-inline: 12px;
  }

  .service-item {
    font-size: 13px;
  }
}

@media (min-width: 431px) {
  body {
    padding: 24px 0;
  }

  .phone-shell {
    min-height: 844px;
    border-radius: 26px;
  }

  .bottom-tabs,
  .primary-bottom {
    position: absolute;
  }
}
