﻿:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #152c38;
  background: #edf7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 10%, rgba(28, 185, 206, .12), transparent 30%),
    linear-gradient(135deg, #f3fbfd, #fbfdff);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.preview-stage {
  min-height: calc(100vh - 36px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: relative;
  width: 390px;
  height: 820px;
  max-width: 100%;
  max-height: calc(100vh - 36px);
  overflow: hidden;
  padding: 12px 14px 90px;
  border: 10px solid #17232f;
  border-radius: 38px;
  background: linear-gradient(180deg, #fbfeff, #f3fafc);
  box-shadow: 0 28px 80px rgba(17, 35, 47, .24);
}

.phone::before {
  content: "";
  display: block;
  width: 92px;
  height: 5px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 4px 0 10px;
}

.topbar strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(24, 128, 154, .5);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  text-align: center;
}

.city-button,
.more-button {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 11px;
  color: #167091;
  background: #e5f5fb;
  font-size: 13px;
  font-weight: 700;
}

.more-button {
  min-width: 46px;
}

.screen-content {
  height: calc(100% - 57px);
  overflow: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.screen-content::-webkit-scrollbar {
  display: none;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero-card {
  position: relative;
  min-height: 196px;
  overflow: hidden;
  padding: 18px;
  border-radius: 20px 20px 26px 26px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 80, 108, .9) 0%, rgba(12, 93, 118, .76) 34%, rgba(14, 116, 146, .28) 58%, rgba(15, 135, 170, .04) 78%),
    url("/miniprogram/assets/hero-water-service.png?v=shuilian-user-15") center / cover no-repeat;
  box-shadow: 0 12px 26px rgba(28, 132, 180, .13);
}

.hero-card::before {
  content: "";
  position: absolute;
  left: -32px;
  right: -24px;
  bottom: -42px;
  height: 102px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .12));
}

.hero-card span,
.page-head span,
.section-title span,
.scan-panel span,
.form-card span,
.notice-card span {
  display: block;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 800;
}

.hero-card h1 {
  position: relative;
  z-index: 1;
  max-width: 204px;
  margin: 9px 0 7px;
  font-size: 22px;
  line-height: 1.22;
  text-shadow: 0 2px 10px rgba(3, 44, 62, .22);
}

.hero-card p {
  display: inline-block;
  position: relative;
  z-index: 1;
  max-width: 204px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .14);
  line-height: 1.58;
  font-size: 11px;
  backdrop-filter: blur(8px);
}

#hero-scene-label {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
}

.hero-visual {
  display: none;
}

.hero-visual i,
.hero-visual b {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, .78);
}

.hero-visual i {
  left: 37px;
  top: 28px;
  width: 56px;
  height: 90px;
  border-radius: 18px;
  box-shadow: inset 0 -22px 0 rgba(28, 164, 196, .2);
}

.hero-visual b {
  left: 52px;
  top: 48px;
  width: 24px;
  height: 42px;
  border-radius: 999px;
  opacity: .85;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
  padding: 11px 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(38, 111, 144, .09);
  position: relative;
  z-index: 1;
}

.quick-grid button {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #344b58;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.quick-grid i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #1684d8;
  background: #e8f5ff;
  font-style: normal;
  font-size: 15px;
}

.section-block,
.notice-card,
.page-head,
.scan-panel,
.profile-card,
.menu-list,
.form-card {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #e2eef2;
  border-radius: 16px;
  background: #fff;
}

.section-title {
  margin-bottom: 12px;
}

.section-title span,
.page-head span,
.form-card span {
  color: #1684d8;
}

h1,
h2,
p {
  margin: 0;
}

h2 {
  margin-top: 4px;
  font-size: 17px;
}

.scene-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.scene-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  text-align: left;
  background: #eefbf7;
}

.scene-card i {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  color: #0d8f77;
  font-style: normal;
  font-weight: 900;
}

.scene-card strong {
  font-size: 14px;
}

.scene-card span {
  margin-top: 4px;
  color: #6b7f8c;
  line-height: 1.35;
  font-size: 11px;
}

.scene-card.blue {
  background: #edf6ff;
}

.scene-card.cyan {
  background: #ecfbff;
}

.scene-card.purple {
  background: #f2f3ff;
}

.notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-card span {
  color: #1684d8;
}

.notice-card strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.notice-card em {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.page-head h1,
.scan-panel h1 {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.25;
}

.page-head p,
.scan-panel p {
  margin-top: 8px;
  color: #687d8b;
  line-height: 1.6;
  font-size: 14px;
}

.business-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.business-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d9edf4;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2fbff, #fff);
}

.business-status-card span {
  display: block;
  color: #1684d8;
  font-size: 12px;
  font-weight: 800;
}

.business-status-card strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.business-status-card p {
  margin-top: 5px;
  color: #687d8b;
  line-height: 1.45;
  font-size: 12px;
}

.business-status-card b {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #1684d8;
  background: #e8f5ff;
  font-size: 18px;
}

.feedback-status-card b {
  color: #0d8f77;
  background: #e8f8f4;
}

.business-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-list button,
.form-card button,
.scan-panel button {
  min-height: 46px;
  border-radius: 14px;
  color: #fff;
  background: #1684d8;
  font-weight: 900;
}

.business-list button {
  color: #1b4e69;
  background: #eaf6ff;
  text-align: left;
  padding: 0 14px;
}

.business-list button.active {
  color: #fff;
  background: linear-gradient(135deg, #1684d8, #1eb9ce);
  box-shadow: 0 10px 22px rgba(22, 132, 216, .18);
}

.form-card-head p {
  margin-top: 6px;
  color: #687d8b;
  line-height: 1.45;
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
}

.form-full {
  grid-column: 1 / -1;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.form-full small {
  color: #7b8f9a;
  line-height: 1.45;
  font-size: 11px;
  font-weight: 600;
}

.upload-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #c5dce7;
  border-radius: 14px;
  background: #f7fcff;
}

.upload-placeholder strong,
.upload-placeholder span {
  display: block;
}

.upload-placeholder strong {
  font-size: 13px;
}

.upload-placeholder span {
  margin-top: 4px;
  color: #687d8b;
  line-height: 1.4;
  font-size: 11px;
}

.upload-placeholder button {
  flex: 0 0 auto;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 11px;
  color: #1684d8;
  background: #e8f5ff;
  font-size: 12px;
  font-weight: 800;
}

.feedback-form {
  box-shadow: 0 10px 24px rgba(22, 132, 216, .06);
}

.form-card h2 {
  margin-top: 5px;
}

label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: #607584;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9e8ee;
  border-radius: 12px;
  padding: 11px;
  color: #152c38;
  background: #fbfeff;
}

textarea {
  min-height: 88px;
  resize: none;
}

.scan-panel {
  min-height: 520px;
  display: grid;
  align-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(22, 132, 216, .15), transparent 28%),
    #fff;
}

.scan-panel button {
  width: 156px;
  height: 156px;
  margin: 24px auto 0;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 18px 40px rgba(22, 132, 216, .28);
}

.scan-result {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 13px;
  border-radius: 14px;
  background: #f0f8ff;
  text-align: left;
}

.scan-result:empty {
  display: none;
}

.device-detail-card {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 15px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, .24), transparent 28%),
    linear-gradient(135deg, #1676d8, #16b0c7);
  box-shadow: 0 14px 30px rgba(22, 132, 216, .18);
}

.detail-card-head span,
.detail-card-head strong,
.detail-card-head p {
  display: block;
}

.detail-card-head span {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 800;
}

.detail-card-head strong {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.25;
}

.detail-card-head p {
  margin-top: 6px;
  color: rgba(255, 255, 255, .86);
  line-height: 1.45;
  font-size: 13px;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-metrics div {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
}

.detail-metrics b,
.detail-metrics span {
  display: block;
}

.detail-metrics b {
  color: #fff;
  font-size: 15px;
}

.detail-metrics span {
  margin-top: 4px;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
}

.device-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.device-action-grid button {
  min-height: 42px;
  border-radius: 14px;
  color: #1b4e69;
  background: #eaf6ff;
  font-weight: 800;
}

.scan-result span,
.scan-result small,
.empty,
.mini-row span,
.mini-row small,
.service-record p {
  color: #687d8b;
  line-height: 1.45;
}

.list-card {
  display: grid;
  gap: 8px;
}

.mini-row,
.service-record {
  padding: 12px;
  border: 1px solid #e2eef2;
  border-radius: 14px;
  background: #fbfeff;
}

.mini-row strong,
.mini-row span,
.mini-row small {
  display: block;
}

.mini-row span,
.mini-row small {
  margin-top: 5px;
  font-size: 12px;
}

.record-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.record-head strong {
  color: #0d8f77;
}

.record-head span {
  color: #687d8b;
  font-size: 12px;
}

.service-record p {
  margin-top: 8px;
  font-size: 13px;
}

.service-overview {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .24), transparent 28%),
    linear-gradient(135deg, #1684d8, #16a6c9);
  box-shadow: 0 14px 28px rgba(22, 132, 216, .18);
}

.service-overview span {
  display: block;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 800;
}

.service-overview strong {
  display: block;
  margin-top: 5px;
  font-size: 21px;
}

.service-overview p {
  margin-top: 5px;
  color: rgba(255, 255, 255, .86);
  line-height: 1.45;
  font-size: 13px;
}

.service-overview button {
  min-height: 38px;
  border-radius: 999px;
  color: #1684d8;
  background: rgba(255, 255, 255, .92);
  font-weight: 900;
}

.overview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.overview-metrics span {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
}

.overview-metrics b {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 13px;
}

.record-head div {
  min-width: 0;
}

.record-head em {
  flex: 0 0 auto;
  align-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  color: #1684d8;
  background: #e8f5ff;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.device-tags {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.device-tags span {
  padding: 8px 9px;
  border-radius: 10px;
  color: #0d7a8f;
  background: #edf9fb;
  font-size: 12px;
}

.device-tags b {
  display: block;
  margin-bottom: 2px;
  color: #7d8e98;
  font-size: 11px;
}

.service-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.service-actions button,
.empty-service-card button {
  min-height: 34px;
  border-radius: 999px;
  color: #1684d8;
  background: #eaf6ff;
  font-size: 12px;
  font-weight: 800;
}

.empty-service-card {
  padding: 16px;
  border: 1px dashed #c5dce7;
  border-radius: 14px;
  background: #f7fcff;
  text-align: center;
}

.empty-service-card p {
  margin: 7px 0 12px;
  color: #687d8b;
  line-height: 1.45;
  font-size: 12px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(135deg, #1684d8, #1eb9ce);
}

.profile-card .avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .2);
  font-size: 24px;
  font-weight: 900;
}

.profile-card h1 {
  font-size: 22px;
}

.profile-card p {
  margin-top: 5px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.menu-list {
  display: grid;
  padding: 6px 15px;
}

.partner-soft-card {
  margin: 14px 15px 4px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dceeee;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fffd, #eef8ff);
}

.partner-soft-card span {
  color: #0d8f77;
  font-size: 12px;
  font-weight: 800;
}

.partner-soft-card h2 {
  margin: 5px 0 4px;
  color: #173742;
  font-size: 15px;
  line-height: 1.35;
}

.partner-soft-card p {
  color: #6b7e86;
  font-size: 12px;
  line-height: 1.45;
}

.partner-soft-card button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  color: #fff;
  background: #1684d8;
  font-size: 12px;
  font-weight: 800;
}

.menu-list button {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid #edf4f6;
  background: transparent;
  text-align: left;
}

.menu-list button:first-child {
  border-top: 0;
}

.menu-list b {
  color: #9aa9b1;
}

.result {
  min-height: 20px;
  margin: 10px 0 0;
  color: #0d8f77;
  line-height: 1.45;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 24px;
  z-index: 60;
  max-width: min(320px, calc(100vw - 32px));
  transform: translate(-50%, -12px);
  border-radius: 999px;
  padding: 11px 16px;
  color: #fff;
  background: #1684d8;
  box-shadow: 0 16px 36px rgba(22, 132, 216, .26);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  font-size: 13px;
  font-weight: 800;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.tabbar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: end;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -12px 30px rgba(31, 91, 120, .12);
}

.tabbar button {
  min-height: 42px;
  border-radius: 14px;
  color: #6d7e89;
  background: transparent;
  font-weight: 900;
}

.tabbar button.active {
  color: #1684d8;
  background: #eaf6ff;
}

.tabbar .scan-tab {
  width: 68px;
  height: 68px;
  margin: -28px auto 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #1684d8, #1eb9ce);
  box-shadow: 0 16px 36px rgba(22, 132, 216, .32);
}

@media (max-width: 430px) {
  body {
    padding: 0;
  }

  .preview-stage {
    min-height: 100vh;
  }

  .phone {
    width: 100vw;
    height: 100vh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
}
