@import url("./tokens.css");

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #e9eaec;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

figure,
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.12em;
  flex: none;
}

.icon svg {
  width: 100%;
  height: 100%;
}

[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

[data-icon] > svg {
  width: 100%;
  height: 100%;
}

::selection {
  background: var(--red);
  color: #fff;
}

/* 桌面展示 */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  background: #e7e8ea;
}

.device {
  padding: 5px;
  border-radius: 44px;
  background: #17191c;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.28);
}

.screen {
  width: 390px;
  height: 844px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 39px;
  background: var(--bg);
  position: relative;
  isolation: isolate;
}

.viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.viewport::-webkit-scrollbar {
  display: none;
}

.page {
  padding: 0 var(--page-x) 24px;
}

.page--flush {
  padding: 0 0 20px;
}

/* =========================================================
   顶部导航
   ========================================================= */
.chrome {
  flex: none;
  background: #fff;
  z-index: var(--z-nav);
}

.chrome--red {
  background: var(--red);
  position: relative;
  overflow: hidden;
}

.statusbar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 22px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.red-art {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.chrome--red > .red-art {
  top: 0;
  height: 85px;
}

.red-art svg {
  display: block;
  width: 100%;
  height: 85px;
}

.red-art .art-cloud--1 {
  animation: artCloud 9s ease-in-out infinite alternate;
}

.red-art .art-cloud--2 {
  animation: artCloud 13s ease-in-out infinite alternate-reverse;
}

.red-art .art-birds {
  animation: artBirds 6s ease-in-out infinite;
}

.red-art .art-sun {
  transform-box: fill-box;
  transform-origin: center;
  animation: artSun 4.5s ease-in-out infinite;
}

@keyframes artCloud {
  from { transform: translateX(-18px); }
  to { transform: translateX(20px); }
}

@keyframes artBirds {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(9px, -4px); }
}

@keyframes artSun {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .red-art .art-cloud--1,
  .red-art .art-cloud--2,
  .red-art .art-birds,
  .red-art .art-sun {
    animation: none;
  }
}

.statusbar,
.navbar {
  position: relative;
  z-index: 1;
}

.statusbar__time,
.statusbar__icons {
  position: relative;
  z-index: 1;
}

.statusbar--light {
  color: #fff;
}

.statusbar__time {
  font-variant-numeric: tabular-nums;
}

.statusbar__icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.navbar--red {
  background: var(--red);
  border-bottom-color: var(--red);
  color: #fff;
  height: 52px;
  padding-left: 16px;
}

.navbar__back {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  flex: none;
}

.navbar__title {
  font-size: 15px;
  font-weight: 600;
  margin-left: 2px;
}

.navbar--red .navbar__title {
  color: #fff;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--red);
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
}

.brand-sub {
  margin-top: 2px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.1;
}

.navbar__action {
  margin-left: auto;
  padding-right: 88px;
  display: flex;
  align-items: center;
}

.navbar__weather {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  white-space: nowrap;
}

.navbar__weather svg {
  width: 13px;
  height: 13px;
  opacity: 0.9;
}

@media (max-width: 360px) {
  .navbar__weather {
    display: none;
  }
}

.navbar__action a,
.navbar__action button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
}

.wx-capsule {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 82px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.navbar:not(.navbar--red) .wx-capsule {
  border-color: rgba(31, 35, 41, 0.18);
  background: rgba(255, 255, 255, 0.6);
}

.wx-capsule__dots,
.wx-capsule__close {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.wx-capsule__dots {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  gap: 3px;
}

.navbar:not(.navbar--red) .wx-capsule__dots {
  border-right-color: rgba(31, 35, 41, 0.15);
}

.wx-capsule__dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.wx-capsule__close i {
  width: 8px;
  height: 8px;
  border: 1.2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.wx-capsule__close i::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: currentColor;
}

/* =========================================================
   底部 tab / action
   ========================================================= */
.tabbar {
  flex: none;
  height: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: var(--z-tab);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.tab svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.5;
}

.tab--active {
  color: var(--red);
  font-weight: 600;
}

.actionbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px var(--page-x) calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: var(--z-action);
}

.actionbar__price {
  min-width: 90px;
}

.actionbar__price b {
  display: block;
  font-family: var(--font-num);
  font-size: 21px;
  line-height: 1.1;
  color: var(--red);
}

.actionbar__price span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
}

.actionbar__main {
  flex: 1;
  display: flex;
  gap: 7px;
}

.actionbar__main .btn {
  flex: 1;
}

/* =========================================================
   基础组件
   ========================================================= */
.eyebrow {
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.eyebrow--red {
  color: var(--red);
}

.section {
  margin-top: 18px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.section-sub {
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
}

.section-link {
  font-size: 11px;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.btn {
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms, transform 160ms;
}

.btn:active {
  background: var(--red-dark);
  transform: translateY(1px);
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn--ghost:active {
  background: #f3f4f6;
}

.btn--soft {
  background: var(--red-soft);
  color: var(--red);
  border-color: transparent;
}

.btn--sm {
  height: 34px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 7px;
}

.btn--xs {
  height: 28px;
  padding: 0 9px;
  font-size: 10px;
  border-radius: 6px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
}

.icon-btn [data-icon] {
  width: 18px;
  height: 18px;
}

.icon-btn [data-icon] svg {
  width: 18px;
  height: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}

.tag--solid {
  background: var(--red);
  color: #fff;
}

.tag--green {
  background: var(--green-soft);
  color: var(--green);
}

.tag--gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.tag--gray {
  background: #f3f4f6;
  color: var(--muted);
}

.chip {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 11px;
  white-space: nowrap;
}

.chip--active,
.chip[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.price {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.01em;
}

.price small {
  font-family: var(--font);
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 2px;
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.photo {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--16x9 {
  aspect-ratio: 16 / 9;
}

.photo--4x3 {
  aspect-ratio: 4 / 3;
}

.photo--1x1 {
  aspect-ratio: 1 / 1;
}

.photo--shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.08), rgba(16, 24, 40, 0.68));
}

.photo__top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.photo__bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.searchbar [data-icon] {
  order: 2;
  color: var(--ink-2);
}

.searchbar__date {
  flex: none;
  margin-right: 10px;
  color: var(--faint);
  font-family: var(--font-num);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 11px;
  color: var(--ink);
}

.searchbar input::placeholder {
  color: var(--faint);
}

.note {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: #7a5a10;
  font-size: 10px;
  line-height: 1.7;
}

/* =========================================================
   首页
   ========================================================= */
body[data-tab="home"] .statusbar {
  height: 33px;
}

.home-top {
  background: linear-gradient(
    180deg,
    var(--red) 0%,
    var(--red) 56%,
    rgba(198, 40, 40, 0.9) 72%,
    rgba(198, 40, 40, 0) 100%
  );
  padding: 0 var(--page-x) 59px;
  position: relative;
  overflow: hidden;
}

.home-top--arc {
  background: var(--red);
  clip-path: ellipse(82% 100% at 50% 0%);
}

.home-top--slant {
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
}

.home-top--swap {
  padding-bottom: 56px;
}

.home-top .searchbar {
  width: 100%;
  height: 40px;
  position: relative;
  z-index: 1;
}

.banner {
  margin: -48px var(--page-x) 0;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18);
}

.banner--swap {
  margin: -48px var(--page-x) 0;
}

.banner .photo {
  aspect-ratio: 16 / 9;
}

.banner__content {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
}

.banner__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
}

.banner__title {
  margin-top: 7px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.banner__sub {
  margin-top: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.banner__actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.banner__actions .btn {
  height: 32px;
  font-size: 11px;
}

.business-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
}

.business-nav__card {
  position: relative;
  height: 96px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #dfe3e6;
}

.business-nav__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.business-nav__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.04) 20%, rgba(16, 24, 40, 0.74) 100%);
}

.business-nav__count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(16, 24, 40, 0.4);
  color: #fff;
  font-size: 8px;
  line-height: 1.4;
}

.business-nav__body {
  position: absolute;
  left: 10px;
  right: 8px;
  bottom: 9px;
  z-index: 2;
  color: #fff;
}

.business-nav__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.business-nav__desc {
  margin-top: 2px;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 本周可发团 */
.date-scroll {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--page-x));
  padding: 0 var(--page-x) 2px;
}

.date-scroll::-webkit-scrollbar {
  display: none;
}

.date-card {
  flex: 0 0 196px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-card);
}

.date-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.date-card__day {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
}

.date-card__title {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.date-card__meta {
  margin-top: 3px;
  font-size: 9px;
  color: var(--muted);
}

.date-card__bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.date-card__price {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
}

/* 路线卡 */
.route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.route-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.route-card .photo {
  aspect-ratio: 16 / 11;
}

.route-card__body {
  padding: 8px 9px 10px;
}

.route-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.route-card__meta {
  margin-top: 3px;
  font-size: 9px;
  color: var(--muted);
}

.route-card__tags {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.route-card__bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  margin-top: 7px;
}

.route-card__price {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
}

.route-card__price small {
  font-family: var(--font);
  font-size: 8px;
  font-weight: 400;
  color: var(--muted);
}

.route-card__group {
  font-size: 8px;
  color: var(--muted);
}

/* 信任条 / 流程 */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 4px;
  box-shadow: var(--shadow-card);
}

.trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--ink-2);
  text-align: center;
}

.trust svg {
  color: var(--red);
}

.process-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 13px;
  box-shadow: var(--shadow-card);
}

.process {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process__step {
  flex: 1;
  text-align: center;
  position: relative;
  padding-top: 18px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
}

.process__step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-2);
}

.process__step::after {
  content: "";
  position: absolute;
  top: 1.5px;
  left: calc(50% - 3.5px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.process__step b {
  display: block;
  font-size: 10px;
  color: var(--ink);
  margin-bottom: 2px;
}

.consult-card {
  background: var(--red-tint);
  border: 1px solid #f5d4d0;
  border-radius: var(--radius-md);
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.consult-card__avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

.consult-card__main {
  flex: 1;
}

.consult-card__name {
  font-size: 12px;
  font-weight: 600;
}

.consult-card__meta {
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
}

.home-footer {
  padding: 22px 0 4px;
  text-align: center;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.7;
}

/* =========================================================
   路线详情
   ========================================================= */
.detail-photo {
  position: relative;
  margin: 0;
}

.detail-photo .photo {
  aspect-ratio: 16 / 10;
}

.detail-photo__back {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
}

.detail-photo__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.detail-content {
  padding: 14px var(--page-x) 24px;
}

.detail-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.detail-title {
  margin-top: 8px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
}

.detail-subtitle {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.quote-panel {
  margin: 14px calc(-1 * var(--page-x)) 0;
  padding: 12px var(--page-x) 14px;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.quote-panel__head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}

.quote-panel__price-block {
  min-width: 0;
}

.quote-panel__side {
  flex: 0 1 144px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 144px;
}

.quote-panel__label {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.quote-panel__price {
  margin-top: 3px;
  font-family: var(--font-num);
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.02em;
}

.quote-panel__price small {
  font-family: var(--font);
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.quote-panel__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
  font-size: 9px;
  color: var(--green);
  white-space: nowrap;
}

.quote-panel__status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.quote-panel__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 11px;
}

.quote-panel__specs span {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
}

.quote-panel__specs b {
  margin-right: 3px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.quote-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.quote-panel__phone {
  width: auto;
  height: 42px;
  flex: none;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.quote-panel__phone:active {
  opacity: 0.7;
}

.quote-panel__actions .btn {
  flex: 1;
  height: 42px;
  font-size: 13px;
}

.quote-panel__note {
  margin-top: 5px;
  max-width: 144px;
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--muted);
  text-align: right;
}

.price-card {
  margin-top: 13px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid #f0d9d6;
  border-left: 3px solid var(--red);
}

.price-card__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.price-card__price {
  font-family: var(--font-num);
  font-size: 27px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.price-card__price small {
  font-family: var(--font);
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
}

.price-card__note {
  margin-top: 4px;
  font-size: 9px;
  color: var(--muted);
}

.price-card__actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.price-card__actions .btn {
  flex: 1;
  height: 38px;
  font-size: 12px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 12px;
  background: var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.detail-fact {
  background: #fff;
  padding: 9px 8px;
  text-align: center;
}

.detail-fact b {
  display: block;
  font-size: 13px;
  color: var(--ink);
}

.detail-fact span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: var(--muted);
}

.detail-section {
  margin-top: 18px;
}

.detail-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.detail-section__title {
  font-size: 17px;
  font-weight: 700;
}

.detail-section__note {
  font-size: 9px;
  color: var(--muted);
}

.include-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.include {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 9px 6px;
  text-align: center;
  font-size: 9px;
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.include svg {
  margin: 0 auto 4px;
  color: var(--green);
}

.day-list {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 11px;
}

.day-card {
  display: flex;
  gap: 10px;
  background: transparent;
  border-radius: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.day-card:last-child {
  border-bottom: 0;
}

.day-card__no {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
}

.day-card__title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.day-card__desc {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.65;
  color: var(--muted);
}

.day-card__meta {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  font-size: 8px;
  color: var(--faint);
}

.service-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.service-row::-webkit-scrollbar {
  display: none;
}

.service-pill {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  background: #f7f8f9;
  border: 1px solid var(--line);
  font-size: 9px;
  color: var(--ink-2);
}

.service-pill svg {
  color: var(--red);
}

.case-strip {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--line);
}

.case-strip__quote {
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-2);
}

.case-strip__meta {
  margin-top: 5px;
  font-size: 9px;
  color: var(--muted);
}

/* =========================================================
   方案报价
   ========================================================= */
.quote-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border: 1px solid #f2dfb2;
}

.quote-status__title {
  font-size: 13px;
  font-weight: 700;
  color: #8a5b00;
}

.quote-status__meta {
  margin-top: 2px;
  font-size: 9px;
  color: #9a741e;
}

.quote-summary {
  margin-top: 10px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--line);
}

.quote-summary__route {
  display: flex;
  gap: 10px;
}

.quote-summary__route .photo {
  width: 82px;
  flex: none;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}

.quote-summary__title {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
}

.quote-summary__meta {
  margin-top: 3px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.65;
}

.quote-section {
  margin-top: 15px;
}

.quote-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.quote-section__title {
  font-size: 16px;
  font-weight: 700;
}

.quote-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2px 12px;
  border: 1px solid var(--line);
}

.quote-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.quote-row:last-child {
  border-bottom: 0;
}

.quote-row > span:first-child {
  color: var(--muted);
}

.quote-row > span:last-child {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--ink);
}

.quote-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--red);
  color: #fff;
}

.quote-total__label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.quote-total__price {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.quote-total__price small {
  font-family: var(--font);
  font-size: 9px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.quote-total__right {
  text-align: right;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.include-list {
  display: grid;
  gap: 5px;
}

.include-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-2);
}

.include-line svg {
  flex: none;
  margin-top: 2px;
  color: var(--green);
}

.include-line--out svg {
  color: var(--faint);
}

.sales-card {
  margin-top: 13px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 11px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
}

.sales-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
}

.sales-card__main {
  flex: 1;
}

.sales-card__name {
  font-size: 12px;
  font-weight: 600;
}

.sales-card__meta {
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
}

/* =========================================================
   路线库
   ========================================================= */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 10px;
}

.page-title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
}

.page-count {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--red);
  padding-bottom: 3px;
}

.filters {
  margin-top: 9px;
  padding: 9px 0 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
}

.filter-label {
  flex: none;
  width: 28px;
  font-size: 9px;
  color: var(--muted);
}

.filter-row .chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row .chips::-webkit-scrollbar {
  display: none;
}

.filter-row .chip {
  height: 26px;
  padding: 0 9px;
  font-size: 10px;
  border-color: transparent;
  background: transparent;
}

.filter-row .chip[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
}

.filter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  font-size: 9px;
  color: var(--muted);
}

.filter-meta b {
  color: var(--red);
}

.filter-meta__sort {
  border: 0;
  background: transparent;
  font-size: 9px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.route-grid--all {
  margin-top: 12px;
}

.route-card.is-hidden {
  display: none;
}

.empty-state {
  padding: 38px 0 22px;
  text-align: center;
}

.empty-state__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 9px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state__title {
  font-size: 15px;
  font-weight: 600;
}

.empty-state__text {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}

/* =========================================================
   表单 / 定制
   ========================================================= */
.custom-head {
  padding-top: 16px;
}

.custom-title {
  margin-top: 4px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
}

.custom-lede {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}

.form-card {
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
}

.form-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.form-card__title {
  font-size: 15px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.choice-chips .chip {
  height: 28px;
  font-size: 10px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  font-size: 10px;
  color: var(--ink-2);
  line-height: 1.55;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.check__box {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: #fff;
  position: relative;
}

.check input:checked + .check__box {
  background: var(--red);
  border-color: var(--red);
}

.check input:checked + .check__box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(42deg);
}

.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: pointer;
}

.radio-row:last-child {
  border-bottom: 0;
}

.radio-row input {
  position: absolute;
  opacity: 0;
}

.radio-dot {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  position: relative;
}

.radio-row input:checked + .radio-dot {
  border-color: var(--red);
}

.radio-row input:checked + .radio-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--red);
}

.radio-row__main {
  flex: 1;
}

.radio-row__title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
}

.radio-row__desc {
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.55;
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row > span:first-child {
  color: var(--muted);
}

.data-row > span:last-child {
  text-align: right;
  color: var(--ink);
}

/* =========================================================
   确认方案
   ========================================================= */
.confirm-summary {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
}

.confirm-summary__title {
  font-size: 17px;
  font-weight: 700;
}

.confirm-summary__meta {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}

.confirm-section {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
}

.confirm-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.confirm-section__title {
  font-size: 15px;
  font-weight: 700;
}

.pay-box {
  padding: 9px 10px;
  border-radius: 8px;
  background: #f7f8f9;
  border-left: 2px solid var(--line-2);
  font-size: 9px;
  line-height: 1.8;
  color: var(--ink-2);
}

.invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.agreement {
  margin-top: 9px;
}

.form-error {
  display: none;
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 6px;
  background: #fdecea;
  border-left: 2px solid var(--danger);
  font-size: 9px;
  color: var(--danger);
}

.form-error.is-visible {
  display: block;
}

/* =========================================================
   单位中心
   ========================================================= */
.unit-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 12px;
}

.unit-avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}

.unit-name {
  font-size: 19px;
  font-weight: 700;
}

.unit-meta {
  margin-top: 3px;
  font-size: 9px;
  color: var(--muted);
}

.unit-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.unit-stat {
  padding: 10px 4px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.unit-stat:last-child {
  border-right: 0;
}

.unit-stat b {
  display: block;
  font-family: var(--font-num);
  font-size: 19px;
  color: var(--red);
}

.unit-stat span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: var(--muted);
}

.unit-section {
  margin-top: 15px;
}

.proposal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.proposal-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  color: var(--muted);
}

.proposal-card__body {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 10px 11px;
}

.proposal-card__body .photo {
  width: 72px;
  height: 88px;
  border-radius: 7px;
}

.proposal-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.proposal-card__meta {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
}

.proposal-card__price {
  margin-top: 5px;
  font-family: var(--font-num);
  font-size: 19px;
  font-weight: 700;
  color: var(--red);
}

.proposal-card__price small {
  font-family: var(--font);
  font-size: 8px;
  font-weight: 400;
  color: var(--muted);
}

.proposal-card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 8px 11px;
  border-top: 1px solid var(--line);
}

.menu {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 12px;
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-size: 11px;
  color: var(--ink);
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-row__icon {
  width: 17px;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-row__value {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
}

/* =========================================================
   服务保障 / 地接 / 案例
   ========================================================= */
.page-hero {
  background: var(--red);
  color: #fff;
  padding: 22px var(--page-x) 18px;
}

.page-hero__title {
  margin-top: 5px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
}

.page-hero__sub {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.service-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px;
}

.service-block__icon {
  color: var(--red);
}

.service-block__title {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
}

.service-block__text {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.65;
  color: var(--muted);
}

.contact-card {
  margin-top: 13px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
}

.contact-card__label {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.55);
}

.contact-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
}

.contact-card__row .btn {
  margin-left: auto;
}

.reception-hero {
  margin: 12px 16px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.reception-hero .photo {
  aspect-ratio: 4 / 3;
}

.reception-hero__content {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 12px;
  color: #fff;
  z-index: 2;
}

.reception-hero__title {
  font-size: 23px;
  font-weight: 700;
}

.reception-hero__sub {
  margin-top: 3px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.capability {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 9px;
  line-height: 1.65;
  color: var(--muted);
}

.capability b {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  color: var(--ink);
}

.coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.coverage span {
  padding: 5px 8px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 9px;
  color: var(--ink-2);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 13px;
}

.case-stat {
  padding: 10px 4px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.case-stat:last-child {
  border-right: 0;
}

.case-stat b {
  display: block;
  font-family: var(--font-num);
  font-size: 19px;
  color: var(--red);
}

.case-stat span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: var(--muted);
}

.case-list {
  margin-top: 12px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px;
  margin-bottom: 8px;
}

.case-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.case-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.case-card__meta {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.65;
  color: var(--muted);
}

.case-card__quote {
  margin-top: 7px;
  padding: 8px 9px;
  border-radius: 6px;
  background: #f7f8f9;
  font-size: 10px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* =========================================================
   弹层 / toast
   ========================================================= */
.toast {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 12px);
  z-index: var(--z-toast);
  max-width: 300px;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(31, 35, 41, 0.94);
  color: #fff;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sheet-mask {
  position: absolute;
  inset: 0;
  z-index: var(--z-sheet);
  background: rgba(16, 24, 40, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms;
}

.sheet-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  width: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 8px var(--page-x) calc(18px + env(safe-area-inset-bottom));
  transform: translateY(16px);
  transition: transform 220ms;
}

.sheet-mask.is-open .sheet {
  transform: none;
}

.sheet__grip {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--line-2);
  margin: 0 auto 14px;
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.sheet__title {
  font-size: 17px;
  font-weight: 700;
}

.sheet__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.sheet__body {
  padding-top: 8px;
}

.sheet__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.sheet__actions .btn {
  flex: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 9px;
}

.field__label {
  font-size: 10px;
  color: var(--muted);
}

.field__label em {
  font-style: normal;
  color: var(--red);
}

.input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}

.input:focus {
  border-color: var(--red);
}

.input::placeholder {
  color: var(--faint);
}

.textarea {
  height: 70px;
  padding: 8px 10px;
  resize: none;
  line-height: 1.6;
}

.textarea {
  height: 64px;
  padding: 8px 10px;
  resize: none;
  line-height: 1.6;
}

/* 入场 */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.viewport > .page,
.viewport > .detail-photo {
  animation: rise 320ms ease-out both;
}

@media (max-width: 480px) {
  .stage {
    display: block;
    padding: 0;
    min-height: 100dvh;
    background: var(--bg);
  }

  .device {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    width: 100%;
    height: 100dvh;
  }

  .screen {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .sheet-mask,
  .toast {
    position: absolute;
  }
}

@media (max-height: 760px) and (min-width: 481px) {
  .stage {
    padding: 14px;
  }

  .device {
    transform: scale(0.9);
  }
}
