:root {
  color-scheme: light;
  --blue: #6f91ba;
  --bg: #eef1f8;
  --card: #ffffff;
  --text: #252a31;
  --muted: #a7adb7;
  --line: #edf0f5;
  --brand: #9fb7d5;
  --brand-dark: #557da8;
  --danger: #b92f3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #dfe6f2;
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}

[v-cloak] {
  display: none;
}

.boot-failure {
  margin: 12px;
  padding: 16px 18px;
  border-radius: 6px;
  background: #fff;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.7;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);
}

.boot-failure pre {
  margin: 8px 0 0;
  padding: 10px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: #f6f7f9;
  color: #333;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-page {
  width: min(100%, 430px);
  min-height: 100vh;
  padding-bottom: calc(62px + env(safe-area-inset-bottom));
  margin: 0 auto;
  background:
    linear-gradient(180deg, #6f91ba 0, #eef1f8 270px, #eef1f8 100%);
}

.booking {
  padding: 14px 18px 0;
}

.wechat-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef1f8;
}

.wechat-loading {
  color: #557da8;
}

.booking-fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.booking-fields:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.success-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, #eaf6ee, #f0faf3);
  border: 1px solid #bfe6cd;
  box-shadow: 0 1px 8px rgba(47, 170, 90, 0.12);
  animation: banner-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.success-check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2faa5a;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.success-info {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.success-info strong {
  color: #1f7a40;
  font-size: 16px;
}

.success-info span {
  color: #5a7d66;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-again {
  flex: 0 0 auto;
  border: 1px solid #2faa5a;
  border-radius: 5px;
  background: #fff;
  color: #2faa5a;
  font-size: 13px;
  padding: 7px 12px;
  transition: background 0.2s ease;
}

.success-again:hover {
  background: #eaf8ef;
}

@keyframes banner-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  margin-bottom: 12px;
  border-radius: 5px;
  background: var(--card);
  box-shadow: 0 1px 8px rgba(34, 48, 72, 0.08);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  font-size: 18px;
}

.title-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.card-title strong {
  font-weight: 800;
}

.title-row {
  justify-content: space-between;
}

.title-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon {
  color: #2b3036;
  font-size: 19px;
}

.history-btn {
  border: 0;
  background: transparent;
  color: #2c3036;
  font-size: 15px;
}

.host-card {
  padding-bottom: 12px;
}

.line-field {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin: 0 18px;
  border-bottom: 1px solid var(--line);
}

.line-field:last-child {
  border-bottom: 0;
}

.line-field span:first-child,
.prefix,
.line-icon {
  flex: 0 0 auto;
  color: #30343a;
  font-size: 16px;
}

.location-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  object-fit: contain;
}

.line-icon {
  width: 34px;
  color: #7b8189;
}

.line-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
}

.prefix {
  min-width: 82px;
}

.line-field input,
.line-field textarea,
.value-row input,
.value-row textarea,
.companion-item input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 16px;
}

.line-field input::placeholder,
.line-field textarea::placeholder,
.value-row textarea::placeholder,
.plate-special input::placeholder,
.companion-item input::placeholder {
  color: #c3c8d1;
}

.host-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  width: 100%;
}

.host-row button {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 14px;
}

.host-list {
  display: grid;
  gap: 8px;
  padding: 4px 18px 10px;
}

.host-list button {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
  padding: 9px 10px;
  text-align: left;
}

.host-list span {
  color: var(--muted);
}

.visitor-card {
  padding-bottom: 8px;
}

.visitor-layout {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 6px 18px 8px;
}

.face-box {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding-top: 8px;
}

.face-box input,
.companion-photo input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.face-box img {
  width: 78px;
  height: 78px;
  overflow: hidden;
  border-radius: 50%;
}

.face-box img {
  object-fit: cover;
}

.face-default {
  object-fit: cover;
  background: #eef3f8;
}

.face-box b {
  display: grid;
  place-items: center;
  width: 78px;
  height: 30px;
  border-radius: 4px;
  background: linear-gradient(180deg, #7fabd7, #5482b4);
  color: #fff;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.visitor-fields .line-field {
  margin: 0;
}

.required-text::before {
  content: "*";
  color: var(--danger);
  font-weight: 800;
  margin-right: 5px;
}

.required-label::before {
  content: "*";
  color: var(--danger);
  font-weight: 800;
  margin-right: 5px;
}

.visitor-fields .line-field {
  display: block;
  min-height: 72px;
  padding-top: 5px;
}

.visitor-fields .line-field > span {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.phone-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}

.phone-row em {
  color: #1e2329;
  font-style: normal;
  font-size: 17px;
}

.form-lines {
  padding: 0 18px;
}

.group-label {
  padding: 13px 0 2px;
  color: #30343a;
  font-size: 16px;
}

.value-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 18px;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
}

.value-row span {
  font-size: 16px;
}

.value-row input {
  min-width: 0;
}

.full-input-row {
  grid-template-columns: minmax(0, 1fr);
}

.full-input-row input {
  grid-column: 1 / -1;
}

.full-input-row textarea {
  grid-column: 1 / -1;
  min-height: 76px;
  field-sizing: content;
}

.value-row textarea {
  grid-column: 1 / 3;
  resize: none;
  min-height: 50px;
  padding-top: 15px;
}

.value-row b {
  color: #9ca3ad;
  font-size: 32px;
  font-weight: 300;
}

.vehicle-card,
.companion-card {
  padding-bottom: 12px;
}

.plate-block {
  margin: 0 18px 10px;
}

.plate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.plate-head-actions {
  display: flex;
  gap: 12px;
}

.plate-head-actions button {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 13px;
}

.plate-cells {
  display: flex;
  align-items: center;
  gap: 6px;
}

.plate-cell {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfcff;
  color: var(--text);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  outline: none;
}

.plate-cell:focus {
  border-color: var(--brand-dark);
}

.plate-dot {
  flex: 0 0 auto;
  color: #c3c8d1;
  font-size: 20px;
  line-height: 1;
}

.new-energy-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 46px;
  height: 44px;
  border: 1px solid #bfe6cd;
  border-radius: 5px;
  background: #eaf8ef;
  color: #2faa5a;
  font-size: 11px;
  line-height: 1;
}

.new-energy-btn svg {
  width: 16px;
  height: 16px;
}

.new-energy-btn.active {
  background: #2faa5a;
  border-color: #2faa5a;
  color: #fff;
}

.plate-special input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 10px;
  background: #fbfcff;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.plate-head button,
.companion-head button {
  border: 0;
  background: transparent;
  color: #a2a8b1;
}

.add-line-btn {
  width: calc(100% - 36px);
  height: 38px;
  margin: 0 18px;
  border: 1px dashed #c7d2df;
  border-radius: 5px;
  background: #fbfcff;
  color: var(--brand-dark);
}

.count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin: 0 18px 8px;
  font-size: 17px;
}

.count-row strong {
  font-size: 20px;
  font-weight: 400;
}

.companion-item {
  display: grid;
  gap: 8px;
  margin: 0 18px 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfcff;
}

.companion-head {
  display: flex;
  justify-content: space-between;
}

.companion-layout {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.companion-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 1px dashed #c7d2df;
  border-radius: 5px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.companion-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.companion-fields {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.companion-fields input {
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.companion-fields input:last-child {
  border-bottom: 0;
}

.error-message {
  margin: 0 6px 10px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.privacy-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 4px 6px 14px;
  padding: 13px 14px;
  border: 1px solid #d9e1ea;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  color: #626c78;
  font-size: 12px;
  line-height: 1.55;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand-dark);
}

.bottom-action {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 6px 0 calc(82px + env(safe-area-inset-bottom));
}

.submit-feedback {
  position: fixed;
  z-index: 1000;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  width: min(calc(100% - 32px), 398px);
  min-height: 46px;
  padding: 12px 16px;
  transform: translateX(-50%);
  border-radius: 5px;
  background: #356a9a;
  box-shadow: 0 5px 18px rgba(17, 31, 48, 0.24);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.submit-feedback.error {
  background: #b9363e;
}

.submit-btn {
  border: 0;
  border-radius: 5px;
  height: 48px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 18px;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.submit-btn:disabled {
  background: #c3d2e2;
  cursor: not-allowed;
}

@media (max-width: 390px) {
  .booking {
    padding-inline: 12px;
  }

  .visitor-layout {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
  }

  .line-field,
  .form-lines,
  .card-title,
  .count-row,
  .plate-block,
  .companion-item {
    margin-inline: 14px;
  }

  .add-line-btn {
    width: calc(100% - 28px);
    margin-inline: 14px;
  }
}
.plate-cell {
  cursor: pointer;
  caret-color: transparent;
}

.plate-cell.is-active {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 1px var(--brand-dark);
}

.plate-kbd {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fc;
}

.kbd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
  gap: 6px;
}

.kbd-key {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.kbd-key:active {
  background: #eef3f8;
}

.kbd-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 8px;
}

.kbd-actions button {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 13px;
}
.dt-row {
  cursor: pointer;
}

.dt-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 15px;
}

.dt-value.placeholder {
  color: #c3c8d1;
}

.app-tabbar {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: min(100%, 430px);
  height: calc(62px + env(safe-area-inset-bottom));
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid #dfe5ed;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -3px 14px rgba(33, 45, 62, 0.08);
  transform: translateY(var(--keyboard-offset, 0px));
  transition: transform 120ms ease-out;
  will-change: transform;
}

.site-record {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  padding: 18px 16px calc(82px + env(safe-area-inset-bottom));
  color: #7d8794;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.site-record a {
  color: #667587;
  text-decoration: none;
}

.site-record a:active {
  color: var(--brand-dark);
}

.app-tabbar button {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #7d8794;
  font-size: 12px;
}

.app-tabbar button .van-icon {
  font-size: 23px;
}

.app-tabbar button.active {
  color: var(--brand-dark);
  font-weight: 700;
}

.mine-page {
  min-height: calc(100vh - 62px);
  background: #f3f5f8;
}

.mine-header {
  display: flex;
  align-items: center;
  min-height: 116px;
  padding: 26px 20px 18px;
  background: #fff;
}

.mine-header h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.mine-header p {
  margin: 6px 0 0;
  color: #7d8794;
  font-size: 13px;
}

.detail-header {
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.detail-header h1 {
  font-size: 18px;
}

.icon-button,
.header-spacer {
  width: 38px;
  height: 38px;
}

.icon-button {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 22px;
}

.status-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 48px;
  padding: 0 12px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #707986;
  font-size: 14px;
}

.status-tabs button.active {
  color: var(--brand-dark);
  font-weight: 700;
}

.status-tabs button.active::after {
  position: absolute;
  right: 28%;
  bottom: 0;
  left: 28%;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--brand-dark);
  content: "";
}

.mine-loading,
.mine-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 310px;
  padding: 24px;
  color: #7d8794;
  text-align: center;
}

.mine-empty > .van-icon {
  color: #aab3bf;
  font-size: 42px;
}

.mine-empty strong {
  color: #59616c;
  font-size: 15px;
}

.mine-empty button,
.load-more {
  min-width: 104px;
  height: 38px;
  border: 1px solid #b9c7d6;
  border-radius: 5px;
  background: #fff;
  color: var(--brand-dark);
}

.appointment-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.appointment-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 98px;
  padding: 14px;
  border: 1px solid #e5e9ef;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 1px 5px rgba(33, 45, 62, 0.04);
}

.appointment-date,
.appointment-main,
.appointment-side {
  display: grid;
}

.appointment-date {
  justify-items: center;
  gap: 3px;
  padding-right: 10px;
  border-right: 1px solid var(--line);
}

.appointment-date b {
  font-size: 17px;
}

.appointment-date small,
.appointment-main small {
  color: #8a939f;
  font-size: 11px;
}

.appointment-main {
  min-width: 0;
  gap: 6px;
}

.appointment-main strong,
.appointment-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-main strong {
  font-size: 15px;
}

.appointment-side {
  grid-template-columns: auto 12px;
  align-items: center;
  gap: 7px;
}

.appointment-side em {
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
}

.status-pending { color: #8a641d; }
.status-success { color: #168447; }
.status-danger { color: #b92f3b; }
.status-muted { color: #7d8794; }

.load-more {
  justify-self: center;
  margin: 4px 0 10px;
}

.appointment-detail {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.detail-status,
.detail-section,
.reject-panel {
  border: 1px solid #e5e9ef;
  border-radius: 6px;
  background: #fff;
}

.detail-status {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 16px 18px;
}

.detail-status > .van-icon {
  font-size: 32px;
}

.detail-status div {
  display: grid;
  gap: 5px;
}

.detail-status strong {
  font-size: 19px;
}

.detail-status span {
  color: #8a939f;
  font-size: 12px;
}

.detail-section h2 {
  margin: 0;
  padding: 15px 17px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.detail-list {
  margin: 0;
  padding: 5px 17px;
}

.detail-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.detail-list div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: #8a939f;
}

.detail-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.reject-panel {
  padding: 15px 17px;
  border-color: #f1ced2;
  background: #fff8f8;
  color: #8f2732;
}

.reject-panel p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

