.driver-body {
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(28, 191, 155, 0.11), transparent 30%),
    radial-gradient(circle at 84% 80%, rgba(31, 91, 108, 0.2), transparent 36%),
    linear-gradient(135deg, #071923 0%, #0a202b 58%, #06161f 100%);
  color: var(--ink);
}

.driver-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 215, 203, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 215, 203, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 72%);
}

.driver-boot {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: #e5f8f4;
}

.driver-boot-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 5px;
  border-radius: 17px;
  background: linear-gradient(145deg, #2ad6b1, #09755f);
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(14, 159, 127, 0.28);
}

.driver-boot b {
  font-size: 18px;
  letter-spacing: 2px;
}

.driver-boot span {
  color: #729992;
  font-size: 9px;
  letter-spacing: 1px;
}

.driver-fatal {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #fff;
  text-align: center;
}

.driver-fatal p {
  color: #91aea7;
  font-size: 11px;
}

.driver-fatal button {
  margin-top: 8px;
  padding: 9px 15px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
}

/* Android 原生壳内：隐藏 H5 模拟状态栏和刘海，使用系统状态栏 */
html.native-android .phone-statusbar,
html.native-android .phone-island {
  display: none !important;
}

html.native-android .phone-screen {
  border-radius: 0;
}

/* ============ 桌面舞台 ============ */

.driver-stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 86px;
  padding: 18px 34px;
}

.driver-story {
  width: 344px;
  flex: none;
  color: #e5f7f3;
}

.story-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.story-brand .brand-mark {
  width: 41px;
  height: 41px;
  border-radius: 12px;
}

.story-brand .brand-mark > span {
  font-size: 20px;
}

.story-brand > div {
  display: grid;
  gap: 2px;
}

.story-brand b {
  font-size: 17px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.story-brand em {
  color: #6f918b;
  font-style: normal;
  font-size: 8px;
  letter-spacing: 2.2px;
  font-family: var(--mono);
}

.story-copy {
  margin-top: 55px;
}

.story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5fc9b3;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 2.3px;
  font-weight: 600;
}

.story-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: #49b9a2;
}

.story-copy h1 {
  margin: 18px 0 16px;
  color: #f1fbf8;
  font-size: 41px;
  line-height: 1.28;
  letter-spacing: -1.8px;
  font-weight: 700;
}

.story-copy h1 span {
  color: #4be1bf;
}

.story-copy p {
  margin: 0;
  color: #86a7a0;
  font-size: 12px;
  line-height: 1.85;
}

.story-live-card {
  margin-top: 30px;
  padding: 14px 15px;
  border: 1px solid rgba(152, 218, 205, 0.13);
  border-radius: 14px;
  background: rgba(13, 39, 48, 0.64);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 7, 11, 0.2);
}

.story-live-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(154, 209, 200, 0.09);
}

.story-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35d7b2;
  animation: pulse 2s infinite;
}

.story-live-head b {
  color: #b6d8d1;
  font-size: 9px;
  font-weight: 600;
}

.story-live-head em {
  margin-left: auto;
  color: #5ddcc0;
  font-style: normal;
  font-size: 8px;
}

.story-live-route {
  display: grid;
  grid-template-columns: 1fr 46px 1fr;
  align-items: center;
  gap: 7px;
  padding: 13px 0 11px;
}

.story-live-route > div:not(.story-live-line) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.story-live-route span {
  color: #edfaf7;
  font-size: 16px;
  font-weight: 600;
}

.story-live-route em {
  color: #62847d;
  font-style: normal;
  font-size: 7.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.story-live-line {
  position: relative;
  display: flex;
  align-items: center;
  color: #41cfad;
}

.story-live-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(66, 218, 184, 0.33) 0 3px, transparent 3px 7px);
}

.story-live-line .icon {
  position: relative;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  padding: 3px;
  border-radius: 50%;
  background: #10343b;
}

.story-live-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(154, 209, 200, 0.09);
  color: #678981;
  font-size: 8px;
}

.story-live-foot b {
  color: #c8e9e2;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.story-empty {
  padding: 14px 0 12px;
  color: #6d8f88;
  font-size: 9px;
  line-height: 1.6;
}

.story-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.story-features > div {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 10px 5px;
  border: 1px solid rgba(153, 213, 202, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.story-features > div > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(44, 211, 176, 0.08);
  color: #4ad9b8;
}

.story-features .icon {
  width: 14px;
  height: 14px;
}

.story-features b {
  color: #a7c8c1;
  font-size: 8px;
  font-weight: 600;
}

.story-features em {
  color: #587a74;
  font-style: normal;
  font-size: 6.5px;
}

.story-user {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid rgba(150, 210, 199, 0.09);
}

.story-user .avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 10px;
}

.story-user > div {
  display: grid;
  gap: 2px;
  flex: 1;
}

.story-user b {
  color: #c8e3dd;
  font-size: 9.5px;
  font-weight: 600;
}

.story-user span {
  color: #5d7c76;
  font-size: 7.5px;
  font-family: var(--mono);
}

.story-user > em {
  color: #617f78;
  font-style: normal;
  font-size: 8px;
}

.story-user > em.on {
  color: #45d6b4;
}

.story-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  color: #476761;
  font-size: 7.5px;
}

/* ============ 手机外壳 ============ */

.phone-frame {
  position: relative;
  flex: none;
  width: 406px;
  height: min(872px, calc(100dvh - 30px));
  padding: 9px;
  border-radius: 48px;
  background: linear-gradient(150deg, #293a40, #0b161b 52%, #1d2b30);
  box-shadow:
    0 50px 100px rgba(0, 5, 9, 0.5),
    0 0 0 1px rgba(191, 229, 220, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-frame::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 148px;
  width: 2px;
  height: 76px;
  border-radius: 0 2px 2px 0;
  background: #2b3d42;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: #f4f7f5;
  overflow: hidden;
}

.phone-statusbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 22px;
  flex: none;
  color: #203541;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  background: #f4f7f5;
}

.phone-island {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  width: 76px;
  height: 20px;
  border-radius: 20px;
  background: #061017;
  z-index: 2;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-status-icons i {
  display: block;
}

.phone-status-icons .signal {
  width: 12px;
  height: 8px;
  background: linear-gradient(to right, #203541 0 2px, transparent 2px 4px, #203541 4px 6px, transparent 6px 8px, #203541 8px 10px, transparent 10px 11px, #203541 11px 12px);
  clip-path: polygon(0 100%, 0 65%, 15% 65%, 15% 48%, 40% 48%, 40% 30%, 63% 30%, 63% 12%, 86% 12%, 86% 0, 100% 0, 100% 100%);
}

.phone-status-icons .wifi {
  width: 10px;
  height: 8px;
  border-radius: 50% 50% 0 0;
  border-top: 2px solid #203541;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  position: relative;
}

.phone-status-icons .wifi::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #203541;
  transform: translateX(-50%);
}

.phone-status-icons .battery {
  position: relative;
  width: 16px;
  height: 8px;
  border: 1px solid #203541;
  border-radius: 2.5px;
}

.phone-status-icons .battery::before {
  content: "";
  position: absolute;
  inset: 1px;
  width: 10px;
  border-radius: 1px;
  background: #203541;
}

.phone-status-icons .battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 3px;
  border-radius: 0 1px 1px 0;
  background: #203541;
}

.driver-app-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.driver-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3px 16px 22px;
}

.driver-scroll::-webkit-scrollbar {
  width: 0;
}

/* 底部导航 */

.driver-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex: none;
  height: 69px;
  padding: 8px 7px 7px;
  border-top: 1px solid #e5ebe8;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.driver-tabbar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 11px;
  color: #99a9a4;
  font-size: 8px;
  font-weight: 500;
}

.driver-tabbar a .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.driver-tabbar a.active {
  color: #0d9678;
}

.driver-tabbar a.active::before {
  content: "";
  position: absolute;
  top: -8px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #0e9f7f;
}

.driver-tabbar a.active .icon {
  stroke-width: 2.1;
}

.tab-badge {
  display: none;
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  background: #e8763b;
  color: #fff;
  font-style: normal;
  font-size: 7px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
  border: 1.5px solid #fff;
}

.tab-badge.show {
  display: block;
}

.tab-live {
  display: none;
  position: absolute;
  top: 11px;
  right: calc(50% - 12px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #16b894;
  box-shadow: 0 0 0 3px rgba(22, 184, 148, 0.14);
}

.tab-live.show {
  display: block;
  animation: pulse 2s infinite;
}

/* ============ 通用手机端排版 ============ */

.driver-home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0 0;
}

.driver-greeting {
  display: block;
  color: #203a42;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.driver-location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: #8da09a;
  font-size: 8.5px;
}

.driver-location .icon {
  width: 11px;
  height: 11px;
  color: #0e9f7f;
}

.driver-online-dot {
  width: 5px;
  height: 5px;
  margin-left: 2px;
  border-radius: 50%;
  background: #1fc29b;
}

.driver-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid #e2eae7;
  border-radius: 999px;
  background: #fff;
  color: #8da09a;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.online-toggle i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aab8b3;
}

.online-toggle.on {
  border-color: #d2eee5;
  background: #f0faf6;
  color: #0e8f74;
}

.online-toggle.on i {
  background: #1fc29b;
  box-shadow: 0 0 0 3px rgba(31, 194, 155, 0.13);
}

.driver-avatar-btn {
  display: block;
}

.driver-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #173e4b, #0e2935);
  color: #d7f7ef;
  font-size: 10px;
  font-weight: 600;
}

.driver-avatar i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #f4f7f5;
  background: #b4c1bd;
}

.driver-avatar i.on {
  background: #1fc29b;
}

.driver-avatar--lg {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  font-size: 14px;
}

.driver-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 14px;
}

.driver-page-kicker {
  color: #6b9689;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 1.8px;
  font-weight: 600;
}

.driver-page-head h1 {
  margin: 5px 0 0;
  color: #18333b;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  font-weight: 700;
}

.driver-icon-btn {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #e2e9e6;
  border-radius: 9px;
  background: #fff;
  color: #80958e;
}

.driver-icon-btn .icon {
  width: 15px;
  height: 15px;
}

.driver-text-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #819a92;
  font-size: 8px;
}

.driver-text-link .icon {
  width: 11px;
  height: 11px;
}

/* ============ 任务卡片 ============ */

.task-hero {
  position: relative;
  margin-top: 14px;
  padding: 16px 16px 15px;
  border-radius: 19px;
  overflow: hidden;
  color: #e9f9f5;
  background:
    radial-gradient(circle at 92% 7%, rgba(52, 217, 181, 0.15), transparent 35%),
    linear-gradient(140deg, #0c2532 0%, #0c2e38 55%, #0a202b 100%);
  box-shadow: 0 16px 34px rgba(7, 31, 37, 0.16);
}

.task-hero--pending_receipt {
  background:
    radial-gradient(circle at 92% 7%, rgba(255, 182, 80, 0.16), transparent 35%),
    linear-gradient(140deg, #2a2518 0%, #16313a 55%, #0a202b 100%);
}

.task-hero--assigned {
  background:
    radial-gradient(circle at 92% 7%, rgba(90, 166, 230, 0.16), transparent 35%),
    linear-gradient(140deg, #0d2536 0%, #0c2e38 55%, #0a202b 100%);
}

.task-hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.task-hero-art svg {
  width: 100%;
  height: 100%;
}

.task-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(117, 232, 205, 0.16);
  border-radius: 6px;
  background: rgba(54, 220, 183, 0.09);
  color: #65e2c3;
  font-size: 8px;
  font-weight: 600;
}

.task-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.task-hero--pending_receipt .task-status {
  border-color: rgba(255, 205, 129, 0.18);
  background: rgba(236, 170, 69, 0.1);
  color: #ffc978;
}

.task-hero--assigned .task-status {
  border-color: rgba(138, 195, 244, 0.16);
  background: rgba(88, 155, 217, 0.1);
  color: #8dc8f7;
}

.task-no {
  color: #5c817a;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.3px;
}

.task-route {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
  align-items: start;
  gap: 4px;
  margin-top: 16px;
}

.task-city {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.task-city--end {
  text-align: right;
}

.task-city-label {
  color: #567a73;
  font-size: 6.5px;
  letter-spacing: 0.8px;
}

.task-city b {
  color: #f3fcf9;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.7px;
}

.task-city em {
  color: #7b9c95;
  font-style: normal;
  font-size: 7.5px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.task-route-line {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 44px;
  margin-top: 1px;
}

.task-route-line > span {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 19px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(89, 222, 189, 0.4) 0 3px, transparent 3px 7px);
}

.task-route-line > i {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #123e42;
  color: #55e2c1;
  box-shadow: 0 0 0 4px rgba(13, 40, 47, 0.8);
  font-style: normal;
}

.task-route-line > i .icon {
  width: 12px;
  height: 12px;
}

.task-route-line > em {
  color: #59827a;
  font-style: normal;
  font-family: var(--mono);
  font-size: 7px;
}

.task-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.85fr 1fr;
  gap: 5px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(153, 210, 200, 0.1);
}

.task-meta > div {
  display: grid;
  gap: 2px;
}

.task-meta span {
  color: #597a73;
  font-size: 6.5px;
}

.task-meta b {
  color: #b8d9d2;
  font-size: 8.5px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.task-meta .task-money {
  color: #ffd28d;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.task-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  margin-top: 13px;
}

.driver-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 37px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.driver-btn:active {
  transform: scale(0.985);
}

.driver-btn:disabled {
  opacity: 0.55;
}

.driver-btn .icon {
  width: 14px;
  height: 14px;
}

.driver-btn--primary {
  background: linear-gradient(135deg, #18b592, #0b8a70);
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 138, 112, 0.19);
}

.driver-btn--ghost {
  border-color: rgba(166, 219, 208, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #a9cec5;
}

.task-hero .driver-btn--ghost {
  border-color: rgba(158, 217, 205, 0.17);
  background: rgba(255, 255, 255, 0.05);
  color: #a8cec5;
}

.task-hero .driver-btn--primary {
  background: linear-gradient(135deg, #2ed4ae, #0d9b7b);
  flex: 1;
}

.task-hero .driver-btn--wide {
  width: 100%;
}

.driver-btn--sm {
  height: 31px;
  padding: 0 10px;
  font-size: 8px;
  border-radius: 8px;
}

.driver-btn--wide {
  width: 100%;
}

.empty-hero {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 28px 20px 24px;
  border: 1px dashed #d9e5e1;
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 0, rgba(14, 159, 127, 0.04), transparent 55%),
    #fbfcfb;
  text-align: center;
}

.empty-hero-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin-bottom: 3px;
  border-radius: 14px;
  background: #edf5f2;
  color: #8ca89f;
}

.empty-hero-icon .icon {
  width: 23px;
  height: 23px;
}

.empty-hero b {
  color: #526e66;
  font-size: 11px;
  font-weight: 600;
}

.empty-hero p {
  max-width: 240px;
  margin: 0 0 6px;
  color: #9baba6;
  font-size: 8px;
  line-height: 1.55;
}

.empty-hero .driver-btn {
  height: 32px;
  border-color: #e1eae7;
  background: #fff;
  color: #668079;
  font-size: 8.5px;
}

.live-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #dcefe8;
  border-radius: 11px;
  background: #f2fbf7;
  text-align: left;
}

.live-strip-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #e0f6ee;
  color: #0e9f7f;
}

.live-strip-icon .icon {
  width: 15px;
  height: 15px;
}

.live-strip > span:nth-child(2) {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.live-strip b {
  color: #3e6458;
  font-size: 8.5px;
  font-weight: 600;
}

.live-strip em {
  color: #8aa49c;
  font-style: normal;
  font-size: 7.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.live-strip-progress {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: #dceee8;
  overflow: hidden;
}

.live-strip-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #18b592;
}

.live-strip-arrow {
  color: #92ada5;
  display: flex;
}

.live-strip-arrow .icon {
  width: 12px;
  height: 12px;
}

/* 统计 */

.driver-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 11px;
  padding: 12px 4px;
  border: 1px solid #e8efec;
  border-radius: 14px;
  background: #fff;
}

.driver-stats > div {
  display: grid;
  justify-items: center;
  gap: 2px;
  border-right: 1px solid #eff3f1;
}

.driver-stats > div:last-child {
  border-right: 0;
}

.driver-stats b {
  color: #203d43;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.driver-stats span {
  color: #99a9a4;
  font-size: 7.5px;
}

/* 区块 */

.driver-section {
  margin-top: 20px;
}

.driver-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.driver-section-head h2 {
  margin: 0 0 3px;
  color: #233e44;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.driver-section-head p {
  margin: 0;
  color: #9babaa;
  font-size: 7.5px;
}

.count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 6px;
  background: #fdf1e4;
  color: #cf8224;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
}

.available-list {
  display: grid;
  gap: 8px;
}

.available-card {
  position: relative;
  padding: 12px;
  border: 1px solid #e7efeb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 45, 35, 0.02);
}

.available-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.available-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: #eaf8f3;
  color: #0e9277;
  font-size: 7px;
  font-weight: 600;
}

.available-tag .icon {
  width: 9px;
  height: 9px;
}

.available-top > span:last-child {
  color: #a2b1ac;
  font-size: 7px;
}

.available-route {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.available-route > div:not(.available-line) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.available-route b {
  color: #29474d;
  font-size: 15px;
  font-weight: 600;
}

.available-route em {
  color: #92a49e;
  font-style: normal;
  font-size: 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.available-line {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #91a9a2;
  font-size: 6.5px;
  font-family: var(--mono);
}

.available-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, #c9ddd6 0 3px, transparent 3px 6px);
}

.available-line span {
  position: relative;
  padding: 1px 3px;
  border-radius: 3px;
  background: #fff;
}

.available-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #f0f4f2;
}

.available-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8da09b;
  font-size: 7.5px;
}

.available-meta > span:first-child .icon {
  width: 10px;
  height: 10px;
}

.available-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.available-price b {
  color: #113d34;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.available-accept {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: #e8f7f1;
  color: #0d9075;
  font-size: 7.5px;
  font-weight: 600;
}

.available-accept:hover {
  background: #dcf4eb;
}

.available-accept .icon {
  width: 10px;
  height: 10px;
}

.history-list {
  display: grid;
  gap: 1px;
  border: 1px solid #e8efec;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}

.history-card {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  background: #fff;
  text-align: left;
}

.history-card + .history-card {
  border-top: 1px solid #f1f4f3;
}

.history-card:hover {
  background: #fbfdfc;
}

.history-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eaf7f2;
  color: #0e9f7f;
  flex: none;
}

.history-icon.cancelled {
  background: #f3f4f4;
  color: #95a49f;
}

.history-icon .icon {
  width: 13px;
  height: 13px;
}

.history-main {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.history-main > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-main b {
  color: #3b5652;
  font-size: 9px;
  font-weight: 600;
}

.history-main .status-pill {
  height: 17px;
  padding: 0 5px;
  font-size: 6.5px;
}

.history-main em {
  color: #a2b1ac;
  font-style: normal;
  font-size: 7px;
  font-family: var(--mono);
}

.history-side {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.history-side b {
  color: #3d5d56;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.history-side em {
  color: #a6b4af;
  font-style: normal;
  font-size: 6.5px;
}

.history-card > .icon {
  width: 12px;
  height: 12px;
  color: #b3c0bc;
}

.driver-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 11px;
  border: 1px solid #edf1ef;
  border-radius: 11px;
  background: #f9fbfa;
}

.driver-tip > span {
  color: #7e9b92;
  flex: none;
}

.driver-tip .icon {
  width: 15px;
  height: 15px;
}

.driver-tip > div {
  display: grid;
  gap: 2px;
}

.driver-tip b {
  color: #6b857e;
  font-size: 8px;
  font-weight: 600;
}

.driver-tip p {
  margin: 0;
  color: #9daca7;
  font-size: 7.5px;
  line-height: 1.5;
}

.driver-empty-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 22px;
  border: 1px dashed #e0e9e6;
  border-radius: 12px;
  color: #a1b0ab;
  font-size: 8px;
}

.driver-empty-mini .icon {
  width: 13px;
  height: 13px;
}

/* ============ 运单列表 ============ */

.driver-seg-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #eaf0ed;
}

.driver-seg-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  border-radius: 8px;
  color: #83968f;
  font-size: 8.5px;
}

.driver-seg-tabs button em {
  color: #a5b3ae;
  font-style: normal;
  font-family: var(--mono);
  font-size: 7px;
}

.driver-seg-tabs button.active {
  background: #fff;
  color: #1e3a41;
  font-weight: 600;
  box-shadow: 0 2px 7px rgba(17, 47, 38, 0.06);
}

.driver-seg-tabs button.active em {
  color: #0e9f7f;
}

.waybill-list {
  display: grid;
  gap: 9px;
}

.waybill-card {
  padding: 13px;
  border: 1px solid #e7efeb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 45, 35, 0.018);
}

.waybill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.waybill-no {
  color: #76918a;
  font-family: var(--mono);
  font-size: 8px;
}

.waybill-top .status-pill {
  height: 19px;
  padding: 0 6px;
  font-size: 7px;
}

.waybill-route {
  display: grid;
  grid-template-columns: 1fr 62px 1fr;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.waybill-point {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.waybill-point > i {
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: #12b48b;
  box-shadow: 0 0 0 3px rgba(18, 180, 139, 0.1);
  flex: none;
}

.waybill-point--end > i {
  background: #e8a23e;
  box-shadow: 0 0 0 3px rgba(232, 162, 62, 0.1);
}

.waybill-point > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.waybill-point b {
  color: #2b4949;
  font-size: 14px;
  font-weight: 600;
}

.waybill-point em {
  color: #95a6a0;
  font-style: normal;
  font-size: 7px;
  line-height: 1.4;
}

.waybill-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fa59e;
  font-family: var(--mono);
  font-size: 6.5px;
}

.waybill-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, #cdded8 0 3px, transparent 3px 6px);
}

.waybill-line span {
  position: relative;
  padding: 1px 3px;
  border-radius: 3px;
  background: #fff;
}

.waybill-meta {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 5px;
  margin-top: 11px;
  padding: 9px 0;
  border-top: 1px solid #f0f4f2;
  border-bottom: 1px solid #f0f4f2;
}

.waybill-meta > span {
  display: grid;
  gap: 2px;
}

.waybill-meta em {
  color: #9daca7;
  font-style: normal;
  font-size: 6.5px;
}

.waybill-meta b {
  color: #536e67;
  font-size: 8px;
  font-weight: 500;
}

.waybill-meta b.green {
  color: #0d9678;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.waybill-weights {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  color: #8fa39c;
  font-size: 7px;
}

.waybill-weights b {
  color: #42675d;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.waybill-note {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 7px;
  border-radius: 6px;
  background: #fbf7ee;
  color: #967f55;
  font-size: 7px;
  line-height: 1.45;
}

.waybill-note .icon {
  width: 10px;
  height: 10px;
  flex: none;
  margin-top: 1px;
}

.waybill-actions {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}

.waybill-actions .driver-btn {
  flex: 1;
}

.waybill-actions .driver-btn--ghost {
  border-color: #e6eeeb;
  background: #fbfcfb;
  color: #6e8981;
}

.driver-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 55px 20px;
  text-align: center;
}

.driver-empty--tall {
  padding-top: 90px;
}

.driver-empty > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 13px;
  background: #edf4f1;
  color: #99b0a8;
}

.driver-empty > span .icon {
  width: 21px;
  height: 21px;
}

.driver-empty b {
  color: #5e7770;
  font-size: 10px;
  font-weight: 600;
}

.driver-empty p {
  max-width: 230px;
  margin: 0 0 7px;
  color: #9daca7;
  font-size: 8px;
  line-height: 1.55;
}

/* ============ 轨迹 ============ */

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 23px;
  padding: 0 8px;
  border-radius: 6px;
  background: #eaf8f3;
  color: #0e9277;
  font-size: 7px;
  font-weight: 600;
}

.live-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.track-map-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0a202b;
  box-shadow: 0 16px 30px rgba(6, 29, 34, 0.18);
}

.driver-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.driver-map-label {
  fill: #c2e5de;
  font-family: var(--font);
  font-size: 9px;
  font-weight: 600;
}

.driver-map-label.end {
  fill: #f6d49a;
}

.driver-map-distance {
  fill: #5b8079;
  font-family: var(--mono);
  font-size: 7px;
}

.driver-map-halo {
  animation: mapPulse 2.8s ease-out infinite;
  transform-origin: center;
}

@keyframes mapPulse {
  0% { transform: scale(0.55); opacity: 0.5; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.track-map-top {
  position: absolute;
  top: 11px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.track-map-no,
.track-map-speed {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(166, 226, 215, 0.12);
  border-radius: 6px;
  background: rgba(6, 28, 36, 0.66);
  color: #8bb5ac;
  font-family: var(--mono);
  font-size: 7px;
  backdrop-filter: blur(6px);
}

.track-map-speed {
  color: #5fe3c3;
}

.track-map-bottom {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  pointer-events: none;
}

.track-map-bottom > div {
  display: grid;
  gap: 2px;
}

.track-map-bottom > div:last-child {
  text-align: right;
}

.track-map-bottom b {
  color: #e5f8f4;
  font-size: 14px;
  font-weight: 600;
}

.track-map-bottom span {
  color: #688b84;
  font-size: 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.track-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 9px;
  border: 1px solid #e8efec;
  border-radius: 12px;
  background: #e8efec;
  overflow: hidden;
}

.track-metrics > div {
  display: grid;
  gap: 2px;
  padding: 10px;
  background: #fff;
}

.track-metrics span {
  color: #99a9a4;
  font-size: 7px;
}

.track-metrics b {
  color: #2b4b46;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.track-metrics b em {
  color: #9baba6;
  font-style: normal;
  font-size: 6.5px;
  margin-left: 2px;
}

.track-progress {
  position: relative;
  height: 4px;
  margin: 13px 7px 0;
  border-radius: 999px;
  background: #e4ece9;
}

.track-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #13af89, #61e0c0);
}

.track-progress > i {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #0d9b7c;
  box-shadow: 0 2px 8px rgba(16, 61, 48, 0.16);
  font-style: normal;
}

.track-progress > i .icon {
  width: 11px;
  height: 11px;
}

.track-detail-section {
  margin-top: 16px;
}

.track-money {
  color: #0e8d71;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

.track-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.track-info-grid > div {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid #eef3f0;
  border-radius: 8px;
  background: #fbfcfb;
}

.track-info-grid span {
  color: #9daca7;
  font-size: 7px;
}

.track-info-grid b {
  color: #526e67;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.4;
}

.track-info-grid b.green {
  color: #0e9f7f;
}

.track-detail-section .driver-btn {
  margin-top: 10px;
}

.driver-timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.driver-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 11px;
  bottom: 15px;
  width: 1px;
  background: #e5edea;
}

.driver-timeline-item {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 5px 0;
}

.driver-timeline-item > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #eff4f2;
  color: #91a49d;
  flex: none;
}

.driver-timeline-item > span.driver {
  background: #e7f7f1;
  color: #0e9f7f;
}

.driver-timeline-item > span .icon {
  width: 9px;
  height: 9px;
}

.driver-timeline-item > div {
  display: grid;
  gap: 1px;
  padding-top: 1px;
}

.driver-timeline-item b {
  color: #506962;
  font-size: 8px;
  font-weight: 600;
}

.driver-timeline-item p {
  margin: 0;
  color: #9baaa5;
  font-size: 7px;
  line-height: 1.4;
}

.driver-timeline-item em {
  color: #b4c0bc;
  font-style: normal;
  font-family: var(--mono);
  font-size: 6.5px;
}

/* ============ 我的 ============ */

.profile-hero {
  padding: 16px;
  border-radius: 18px;
  color: #e6f9f4;
  background:
    radial-gradient(circle at 92% 0, rgba(52, 215, 180, 0.15), transparent 35%),
    linear-gradient(140deg, #0d2735, #0b3037 60%, #09222c);
  box-shadow: 0 15px 30px rgba(7, 29, 34, 0.15);
}

.profile-hero-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.profile-name {
  display: grid;
  gap: 2px;
}

.profile-name b {
  font-size: 17px;
  font-weight: 600;
}

.profile-name > span {
  color: #7c9f97;
  font-family: var(--mono);
  font-size: 8px;
}

.profile-name em {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #9abbb4;
  font-style: normal;
  font-size: 7px;
}

.profile-name em .icon {
  width: 10px;
  height: 10px;
  color: #ffd28d;
}

.profile-truck {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(161, 212, 202, 0.1);
}

.profile-truck > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9dbdb6;
  font-size: 8px;
}

.profile-truck > span .icon {
  width: 12px;
  height: 12px;
  color: #56d6b8;
}

.online-toggle--dark {
  margin-left: auto;
  height: 24px;
  border-color: rgba(157, 214, 204, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #7a9e96;
  font-size: 7px;
}

.online-toggle--dark.on {
  border-color: rgba(62, 220, 185, 0.2);
  background: rgba(43, 211, 174, 0.09);
  color: #63e1c3;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
  padding: 12px 4px;
  border: 1px solid #e8efec;
  border-radius: 13px;
  background: #fff;
}

.profile-stats > div {
  display: grid;
  justify-items: center;
  gap: 2px;
  border-right: 1px solid #eff3f1;
}

.profile-stats > div:last-child {
  border-right: 0;
}

.profile-stats b {
  color: #23413f;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

.profile-stats span {
  color: #9caba6;
  font-size: 7px;
}

.profile-network {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid #e3f0ea;
  border-radius: 9px;
  background: #f4fbf8;
}

.profile-network > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4e7f71;
  font-size: 7.5px;
  font-weight: 600;
}

.profile-network i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1dc39b;
  box-shadow: 0 0 0 3px rgba(29, 195, 155, 0.11);
}

.profile-network em {
  color: #93a9a2;
  font-style: normal;
  font-size: 6.8px;
  font-family: var(--mono);
}

.profile-menu {
  margin-top: 12px;
  border: 1px solid #e8efec;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.profile-menu a,
.profile-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
  background: #fff;
}

.profile-menu a + a,
.profile-menu a + button,
.profile-menu button + button,
.profile-menu button + a {
  border-top: 1px solid #f1f4f3;
}

.profile-menu a:hover,
.profile-menu button:hover {
  background: #fbfdfc;
}

.profile-menu > a > .icon:first-child,
.profile-menu > button > .icon:first-child {
  width: 17px;
  height: 17px;
  color: #679188;
}

.profile-menu > a > span,
.profile-menu > button > span {
  display: grid;
  gap: 2px;
  flex: 1;
}

.profile-menu b {
  color: #3e5954;
  font-size: 9px;
  font-weight: 600;
}

.profile-menu em {
  color: #a1b0ab;
  font-style: normal;
  font-size: 7px;
}

.profile-menu > a > .icon:last-child,
.profile-menu > button > .icon:last-child {
  width: 12px;
  height: 12px;
  color: #b2bfbb;
}

.profile-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #f4f8f6;
}

.profile-tip > span {
  color: #7e9a91;
}

.profile-tip .icon {
  width: 13px;
  height: 13px;
}

.profile-tip p {
  margin: 0;
  color: #91a39d;
  font-size: 7.5px;
  line-height: 1.55;
}

.profile-foot {
  padding: 17px 0 4px;
  color: #a6b4af;
  font-size: 7px;
  text-align: center;
}

/* ============ 手机端弹层 ============ */

.phone-layer {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.phone-layer:empty {
  display: none;
}

.phone-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 25, 0.55);
  backdrop-filter: blur(2px);
  pointer-events: auto;
  animation: fadeIn 0.2s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.phone-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 91%;
  border-radius: 24px 24px 0 0;
  background: #f6f8f7;
  box-shadow: 0 -22px 60px rgba(0, 12, 16, 0.25);
  pointer-events: auto;
  animation: sheetUp 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  overflow: hidden;
}

@keyframes sheetUp {
  from { transform: translateY(30px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-grabber {
  width: 37px;
  height: 4px;
  margin: 7px auto 2px;
  border-radius: 3px;
  background: #dbe3e0;
  flex: none;
}

.phone-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px 12px;
  border-bottom: 1px solid #e9efec;
  background: #fff;
  flex: none;
}

.phone-sheet-head > div {
  min-width: 0;
}

.phone-sheet-head span {
  color: #7da196;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 1.4px;
  font-weight: 600;
}

.phone-sheet-head h2 {
  margin: 5px 0 0;
  color: #17343d;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.phone-sheet-head button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  color: #81958e;
  background: #f5f8f6;
  flex: none;
}

.phone-sheet-head button .icon {
  width: 14px;
  height: 14px;
}

.phone-sheet-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 13px 15px 18px;
}

.phone-sheet-foot {
  display: flex;
  gap: 8px;
  padding: 10px 15px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #e9efec;
  background: #fff;
  flex: none;
}

.phone-sheet-foot .driver-btn {
  flex: 1;
}

.phone-sheet-foot--complete .driver-btn--ghost {
  flex: 0.72;
  border-color: #e2eae7;
  background: #fff;
  color: #70877f;
}

.phone-sheet-foot--complete .driver-btn--primary {
  flex: 1.28;
}

.sheet-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 170px;
  color: #849a93;
  font-size: 9px;
}

.sheet-loading span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #c8d8d3;
  border-top-color: #0e9f7f;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 完成运单 */

.completion-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.completion-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 13px 15px 15px;
}

.complete-route {
  display: grid;
  grid-template-columns: 1fr 38px 1fr;
  align-items: center;
  gap: 5px;
  padding: 11px;
  border-radius: 11px;
  background: #0d2834;
  color: #e4f6f2;
}

.complete-route > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.complete-route > div:last-child {
  text-align: right;
}

.complete-route b {
  font-size: 13px;
  font-weight: 600;
}

.complete-route span {
  color: #75978f;
  font-size: 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.complete-route-line {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #48d4b3;
}

.complete-route-line .icon {
  width: 16px;
  height: 16px;
}

.complete-steps {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 11px 1px 0;
  color: #a5b3ae;
  font-size: 6.5px;
}

.complete-steps span {
  white-space: nowrap;
}

.complete-steps span.done {
  color: #6e9d8e;
}

.complete-steps span.active {
  color: #0c9478;
  font-weight: 600;
}

.complete-steps i {
  flex: 1;
  height: 1px;
  background: #dce6e2;
}

.complete-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 1px 8px;
  color: #3d5b55;
  font-size: 9px;
  font-weight: 600;
}

.complete-section-title em {
  color: #a1b0ab;
  font-style: normal;
  font-size: 6.5px;
  font-weight: 400;
}

.weight-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.weight-input-grid label {
  display: grid;
  gap: 5px;
}

.weight-input-grid label > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #6a847d;
  font-size: 7.5px;
}

.weight-input-grid label > span em {
  color: #a9b7b2;
  font-style: normal;
  font-size: 6.5px;
}

.weight-input-grid label > div {
  position: relative;
}

.weight-input-grid input {
  width: 100%;
  height: 42px;
  padding: 0 29px 0 11px;
  border: 1px solid #dfe8e4;
  border-radius: 9px;
  background: #fff;
  color: #25433e;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.weight-input-grid input:focus {
  border-color: #86cdb9;
  box-shadow: 0 0 0 3px rgba(14, 159, 127, 0.08);
}

.weight-input-grid input::placeholder {
  color: #c1cdc9;
  font-weight: 400;
}

.weight-input-grid label > div > em {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #a4b3ae;
  font-style: normal;
  font-size: 7px;
}

.weight-input-grid .net input {
  border-color: #cfebe1;
  background: #f4fbf8;
  color: #0b8d71;
}

.net-formula {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 1px 0;
  color: #93a6a0;
  font-size: 6.5px;
}

.net-formula .icon {
  width: 10px;
  height: 10px;
  flex: none;
}

.net-formula.is-error {
  color: #cf6a47;
}

.upload-zone {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  padding: 17px 10px;
  border: 1px dashed #cfe1db;
  border-radius: 11px;
  background: #f7fbf9;
  color: #648e81;
}

.upload-zone:hover {
  border-color: #9dcfbe;
  background: #f4fbf8;
}

.upload-zone .icon {
  width: 22px;
  height: 22px;
  color: #0e9f7f;
  margin-bottom: 2px;
}

.upload-zone b {
  color: #4d756a;
  font-size: 8.5px;
  font-weight: 600;
}

.upload-zone span {
  color: #a0b0aa;
  font-size: 6.5px;
}

.upload-zone.has-file {
  display: none;
}

.upload-preview:not(:empty) {
  margin-top: 7px;
}

.upload-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dcece6;
  border-radius: 10px;
  background: #fff;
}

.upload-file img {
  width: 44px;
  height: 55px;
  border-radius: 5px;
  object-fit: cover;
  object-position: top;
  border: 1px solid #e7eeeb;
  background: #f8faf9;
}

.upload-file > div {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.upload-file b {
  color: #4d6a63;
  font-size: 8px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.upload-file span {
  color: #9daca7;
  font-size: 7px;
}

.upload-file em {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #0e9f7f;
  font-style: normal;
  font-size: 6.5px;
}

.upload-file em .icon {
  width: 10px;
  height: 10px;
}

.upload-file button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #9bacA6;
  background: #f5f8f6;
  flex: none;
}

.upload-file button .icon {
  width: 12px;
  height: 12px;
}

.complete-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 11px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #fbf7ed;
  color: #9b8254;
  font-size: 6.8px;
  line-height: 1.5;
}

.complete-note .icon {
  width: 11px;
  height: 11px;
  flex: none;
  margin-top: 1px;
}

.completion-form .form-error {
  margin-top: 9px;
  font-size: 8px;
}

/* 历史详情 */

.sheet-route-card {
  padding: 13px;
  border-radius: 12px;
  background: #0d2834;
  color: #e5f8f4;
}

.sheet-route-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #7fa49c;
  font-size: 7.5px;
}

.sheet-route-top em {
  color: #5e8d83;
  font-style: normal;
  font-family: var(--mono);
}

.sheet-route-main {
  display: grid;
  grid-template-columns: 1fr 38px 1fr;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.sheet-route-main > div:not(.sheet-route-dash) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sheet-route-main > div:last-child {
  text-align: right;
}

.sheet-route-main b {
  font-size: 15px;
  font-weight: 600;
}

.sheet-route-main span {
  color: #75978f;
  font-size: 7px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sheet-route-dash {
  display: flex;
  justify-content: center;
  color: #47d3b2;
}

.sheet-route-dash .icon {
  width: 16px;
  height: 16px;
}

.sheet-route-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid rgba(160, 213, 202, 0.1);
  color: #63877f;
  font-size: 6.5px;
}

.sheet-section-title {
  margin: 16px 1px 8px;
  color: #45625b;
  font-size: 9px;
  font-weight: 600;
}

.sheet-weight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sheet-weight-grid > div {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid #e9efec;
  border-radius: 8px;
  background: #fff;
}

.sheet-weight-grid span {
  color: #9daca7;
  font-size: 7px;
}

.sheet-weight-grid b {
  color: #47665e;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.sheet-weight-grid .green b {
  color: #0e9f7f;
}

.sheet-receipt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #e7efeb;
  border-radius: 9px;
  background: #fff;
}

.sheet-receipt img {
  width: 42px;
  height: 53px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  border: 1px solid #e7eeeb;
}

.sheet-receipt > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sheet-receipt b {
  color: #526d66;
  font-size: 8px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sheet-receipt span {
  color: #9daca7;
  font-size: 6.5px;
}

.sheet-receipt em {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #0e9f7f;
  font-style: normal;
  font-size: 6.5px;
}

.sheet-receipt em .icon {
  width: 9px;
  height: 9px;
}

.sheet-timeline {
  display: grid;
  gap: 6px;
}

.sheet-timeline > div {
  display: flex;
  gap: 7px;
}

.sheet-timeline > div > span {
  width: 6px;
  height: 6px;
  margin-top: 4px;
  border-radius: 50%;
  background: #1eb995;
  box-shadow: 0 0 0 3px rgba(30, 185, 149, 0.1);
  flex: none;
}

.sheet-timeline > div > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}

.sheet-timeline b {
  color: #5d776f;
  font-size: 8px;
  font-weight: 500;
}

.sheet-timeline em {
  color: #a5b2ae;
  font-style: normal;
  font-family: var(--mono);
  font-size: 6.5px;
}

/* 成功页 */

.completion-success {
  align-items: center;
  max-height: 89%;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 10px 0 10px;
  border-radius: 17px;
  background: linear-gradient(145deg, #2ad6b1, #0b8d70);
  color: #fff;
  box-shadow: 0 14px 30px rgba(14, 159, 127, 0.22);
}

.success-icon .icon {
  width: 25px;
  height: 25px;
}

.success-kicker {
  color: #6ca092;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 1.8px;
  font-weight: 600;
}

.completion-success h2 {
  margin: 6px 0 4px;
  color: #18343d;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.completion-success > p {
  margin: 0;
  color: #8fa19b;
  font-size: 8px;
}

.success-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid #e7efec;
  border-radius: 9px;
  background: #fbfcfb;
}

.success-time span {
  color: #97a7a2;
  font-size: 7px;
}

.success-time b {
  color: #4a6660;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
}

.success-weights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin-top: 8px;
  border: 1px solid #e7efec;
  border-radius: 9px;
  background: #e7efec;
  gap: 1px;
  overflow: hidden;
}

.success-weights > div {
  display: grid;
  gap: 2px;
  padding: 8px 3px;
  background: #fff;
}

.success-weights span {
  color: #9daca7;
  font-size: 6.5px;
}

.success-weights b {
  color: #3c5e56;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
}

.success-weights > div:last-child b {
  color: #0e9f7f;
}

.success-ticket {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 9px;
  padding: 8px;
  border: 1px solid #e5efea;
  border-radius: 10px;
  background: #f7fbf9;
  text-align: left;
}

.success-ticket img {
  width: 38px;
  height: 48px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  border: 1px solid #dfe9e5;
}

.success-ticket > div {
  display: grid;
  gap: 2px;
}

.success-ticket b {
  color: #4e6c64;
  font-size: 8px;
  font-weight: 600;
}

.success-ticket span {
  color: #9daca7;
  font-size: 6.5px;
}

.success-ticket em {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #0e9f7f;
  font-style: normal;
  font-size: 6.5px;
}

.success-ticket em .icon {
  width: 9px;
  height: 9px;
}

.success-actions {
  width: 100%;
  margin-top: 13px;
}

/* Toast 与加载 */

.driver-toast {
  position: absolute;
  z-index: 200;
  top: 43px;
  left: 14px;
  right: 14px;
  display: grid;
  gap: 7px;
  pointer-events: none;
}

.driver-toast .toast {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 8.5px;
  box-shadow: 0 10px 25px rgba(4, 20, 27, 0.23);
}

.driver-toast .toast-dot {
  width: 5px;
  height: 5px;
}

.driver-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 230px;
  color: #8da29b;
  font-size: 8px;
}

.driver-loading span {
  width: 14px;
  height: 14px;
  border: 1.5px solid #d2dfda;
  border-top-color: #0e9f7f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.driver-loading em {
  font-style: normal;
}

.driver-error {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 60px 20px;
  text-align: center;
}

.driver-error > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fdf1e7;
  color: #d48335;
}

.driver-error b {
  color: #60766f;
  font-size: 10px;
}

.driver-error p {
  margin: 0 0 6px;
  color: #9eada8;
  font-size: 8px;
}

.driver-error button {
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  background: #eaf7f2;
  color: #0e8f74;
  font-size: 8px;
  font-weight: 600;
}

/* 安装到桌面 */

.install-body {
  padding: 14px 15px 18px;
  overflow-y: auto;
}

.install-hero {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d2834, #123d45);
  color: #e5f8f3;
}

.install-hero img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(3, 30, 25, 0.22);
}

.install-hero > div {
  display: grid;
  gap: 2px;
}

.install-hero b {
  font-size: 13px;
  font-weight: 600;
}

.install-hero span {
  color: #7fa69d;
  font-size: 7.5px;
}

.install-hero em {
  color: #5e8a80;
  font-style: normal;
  font-size: 6.5px;
}

.install-steps {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.install-steps > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e9efec;
  border-radius: 9px;
  background: #fff;
}

.install-steps > div > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e9f7f2;
  color: #0e9277;
  font-family: var(--mono);
  font-size: 7px;
  flex: none;
}

.install-steps p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.install-steps b {
  color: #4c6760;
  font-size: 8px;
  font-weight: 600;
}

.install-steps em {
  color: #99a9a4;
  font-style: normal;
  font-size: 7px;
  line-height: 1.45;
}

.install-note {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 10px;
  padding: 8px 9px;
  border-radius: 7px;
  background: #fbf7ed;
  color: #967f54;
  font-size: 6.8px;
  line-height: 1.5;
}

.install-note .icon {
  width: 10px;
  height: 10px;
  flex: none;
  margin-top: 1px;
}

/* ============ 响应式 ============ */

@media (max-width: 1200px) {
  .driver-stage {
    gap: 50px;
  }

  .driver-story {
    width: 300px;
  }

  .story-copy h1 {
    font-size: 35px;
  }

  .story-copy p {
    font-size: 11px;
  }
}

@media (max-width: 980px) {
  .driver-story {
    display: none;
  }

  .driver-stage {
    gap: 0;
    padding: 14px;
  }

  .phone-frame {
    width: min(406px, 100%);
  }
}

@media (max-width: 700px) {
  .driver-body {
    background: #f4f7f5;
    overflow: hidden;
  }

  .driver-body::before {
    display: none;
  }

  .driver-stage {
    display: block;
    padding: 0;
    min-height: 100dvh;
  }

  .phone-frame {
    width: 100vw;
    height: 100dvh;
    padding: 0;
    border-radius: 0;
    background: #f4f7f5;
    box-shadow: none;
  }

  .phone-frame::after {
    display: none;
  }

  .phone-screen {
    border-radius: 0;
  }

  .phone-statusbar {
    height: calc(31px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .phone-island {
    top: calc(6px + env(safe-area-inset-top));
  }

  .driver-tabbar {
    height: calc(67px + env(safe-area-inset-bottom));
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
  }

  .driver-scroll {
    padding-left: 15px;
    padding-right: 15px;
  }

  .phone-sheet {
    max-height: 94%;
  }

  .driver-toast {
    top: calc(42px + env(safe-area-inset-top));
  }
}

@media (max-width: 370px) {
  .driver-greeting {
    font-size: 15px;
  }

  .task-city b {
    font-size: 21px;
  }

  .task-meta b {
    font-size: 8px;
  }

  .driver-tabbar a {
    font-size: 7.5px;
  }

  .complete-steps {
    font-size: 6px;
  }
}
