:root {
  --purple: #6d4dff;
  --purple-deep: #5b3dff;
  --orange: #ff8a1a;
  --red: #e31c23;
  --text: #222;
  --muted: #8a8a8a;
  --card: #fff;
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: #6D49DB;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6D49DB;
  transition: opacity .32s ease;
}

.splash.hide {
  opacity: 0;
  pointer-events: none;
}

.splash-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.splash-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: .28;
  animation: splash-dot 1s ease-in-out infinite;
}

.splash-dots i:nth-child(2) {
  animation-delay: .16s;
}

.splash-dots i:nth-child(3) {
  animation-delay: .32s;
}

@keyframes splash-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: .28;
  }
  40% {
    transform: translateY(-7px);
    opacity: 1;
  }
}

.page {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background-color: #6D49DB;
  background-image: url("../img/hero-bg.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
}

.hero {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 74.6%;
  /* 海报顶部约 42% 区域：1672/941*0.42 */
}

.ribbon {
  position: absolute;
  left: 3.6%;
  top: 9.1%;
  width: 41.3%;
  height: 15.7%;
  color: #fff;
}

.ribbon-copy {
  position: absolute;
  left: 6.5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(80, 0, 140, .18);
}

.ribbon-price {
  position: absolute;
  right: 10%;
  top: 52%;
  transform: translateY(-50%);
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  font-weight: 800;
}

.ribbon-price .n {
  color: #ffe34d;
  font-size: 28px;
  line-height: 0.85;
  letter-spacing: -1.5px;
  text-shadow: 0 1px 0 rgba(120, 0, 80, .12);
}

.ribbon-price .u {
  color: #fff;
  font-size: 11px;
  margin-left: 1px;
  font-weight: 700;
  line-height: 1;
}

.app-badge {
  position: absolute;
  left: 67.3%;
  top: 17.9%;
  width: 28.8%;
  height: 13.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2.2%;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(180, 0, 80, .2);
}

.offer {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pkg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pkg .month {
  font-size: 17px;
  font-weight: 700;
  color: #4a2bb8;
  writing-mode: vertical-rl;
  letter-spacing: 8px;
  line-height: 1;
  height: 52px;
}

.pkg .num {
  font-size: 76px;
  line-height: 0.88;
  font-weight: 900;
  color: #4a2bb8;
  letter-spacing: -3px;
}

.pkg .speed {
  color: #4a2bb8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  margin-top: 4px;
}

.desc {
  margin-top: 2px;
  font-size: 12px;
  color: #555;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
}

.promo {
  position: absolute;
  left: 12.5%;
  top: 59.5%;
  width: 72%;
  height: 15.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff4b8;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(70, 0, 140, .2);
}

.sheet {
  padding: 0 12px 28px;
}

.panel {
  background: #fff;
  border-radius: 22px;
  padding: 14px 12px 12px;
  box-shadow: 0 8px 24px rgba(80, 40, 160, .12);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #f0eef5;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #222;
  min-width: 0;
  background: transparent;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.search-input::placeholder {
  color: #b0b0b0;
  font-weight: 400;
  letter-spacing: 0;
}

.clear-btn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: #cfcfcf;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  border: none;
  background: none;
  color: #2f9bff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0;
}

.search-btn .ico {
  width: 16px;
  height: 16px;
  display: block;
}

.panel-head {
  padding-bottom: 12px;
  border-bottom: 1px solid #f0eef5;
}

.chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 2px 8px;
}

.chip {
  height: 36px;
  border: none;
  border-radius: 18px;
  background: #f5f5f5;
  color: #666;
  font-size: 13px;
  cursor: pointer;
}

.chip.active {
  background: linear-gradient(180deg, #ffb04a, #ff8a1a);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(255, 138, 26, .35);
}

.filters {
  display: flex;
  gap: 22px;
  padding: 8px 8px 4px;
  color: #666;
  font-size: 13px;
}

.filters label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.filters input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #c8c8c8;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}

.filters input:checked {
  border-color: var(--orange);
}

.filters input:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 14px 12px 12px;
  min-height: 82px;
  box-shadow: 0 4px 14px rgba(70, 30, 140, .08);
  overflow: hidden;
  cursor: pointer;
}

.card.reserved {
  opacity: .96;
}

.num-line {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
  color: #333;
  white-space: nowrap;
  line-height: 1.15;
}

.num-line .head {
  color: #333;
}

.num-line .tail {
  color: #333;
}

.price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price .now {
  color: #ff7a18;
  font-size: 14px;
  font-weight: 700;
}

.price .old {
  color: #c0c0c0;
  font-size: 12px;
  text-decoration: line-through;
}

.card.reserved .price .now {
  color: #666;
}

.star {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  color: #d0d0d0;
  font-size: 18px;
  cursor: pointer;
}

.star.on {
  color: #ffb02e;
}

.stamp {
  position: absolute;
  right: -10px;
  bottom: -14px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(170, 170, 170, .55);
  box-shadow: inset 0 0 0 3px rgba(190, 190, 190, .28);
  background:
    radial-gradient(circle at 50% 38%, rgba(180, 180, 180, .12), transparent 55%),
    rgba(255, 255, 255, .35);
  color: rgba(140, 140, 140, .95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-28deg);
  pointer-events: none;
  overflow: hidden;
}

.stamp::before {
  content: "★★★★★";
  display: block;
  font-size: 7px;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 1px;
  opacity: .7;
}

.stamp::after {
  content: "♛";
  display: block;
  font-size: 11px;
  line-height: 1;
  margin-bottom: 2px;
  opacity: .65;
}

.stamp span {
  display: block;
  background: rgba(150, 150, 150, .55);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 6px;
  line-height: 1.2;
  white-space: nowrap;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #fff;
  padding: 28px 10px;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(0, 0, 0, .78);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
  z-index: 20;
  max-width: 360px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.more-sheet {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 30;
  align-items: flex-end;
  justify-content: center;
}

.more-sheet.open {
  display: flex;
}

.more-panel {
  width: 100%;
  max-width: 390px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px 28px;
}

.more-panel h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

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

.cs-dock {
  position: fixed;
  top: 108px;
  right: calc((100vw - min(100vw, 390px)) / 2);
  z-index: 24;
  width: 36px;
  padding: 10px 0 12px;
  border: none;
  border-radius: 10px 0 0 10px;
  background: #6d4dff;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: left .2s ease, top .2s ease, border-radius .2s ease;
}

.cs-dock.is-left {
  border-radius: 0 10px 10px 0;
}

.cs-dock.is-dragging {
  transition: none;
}

.cs-dock .cs-ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.cs-dock .cs-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.cs-dock .cs-txt {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 2px;
}