* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: #1f1f1f;
  background: #f2f2f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

button,
a {
  font: inherit;
}

.page-shell {
  position: relative;
  width: 100%;
  max-width: 390px;
  height: 100dvh;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background-color: #f3f3f3;
}

.page-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1px),
    radial-gradient(circle at 68% 18%, rgba(210, 210, 210, 0.42) 0 1px, transparent 1px),
    radial-gradient(circle at 37% 78%, rgba(170, 170, 170, 0.22) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(235, 235, 235, 0.55));
  background-size: 7px 7px, 11px 11px, 13px 13px, 100% 100%;
}

.scroll-view {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scroll-view::-webkit-scrollbar {
  display: none;
}

.back-home {
  position: absolute;
  top: 8px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  color: #ffffff;
  text-decoration: none;
  background: #263542;
  border-radius: 17px;
  font-size: 14px;
  line-height: 34px;
}

.page-title {
  padding-top: 78px;
  text-align: center;
}

.page-title h1 {
  margin: 0;
  font-size: 29px;
  font-weight: 400;
  line-height: 42px;
  letter-spacing: 0;
}

.tabs-area {
  position: relative;
  margin-top: 36px;
}

.tabbar {
  position: relative;
  height: 40px;
  margin: 0 31px 0 23px;
}

.tabs-viewport {
  width: calc(100% - 22px);
  height: 40px;
  overflow: hidden;
  white-space: nowrap;
}

.tab-track {
  display: inline-flex;
  align-items: flex-start;
  height: 40px;
  transition: transform 160ms ease;
}

.tab-button {
  position: relative;
  flex: 0 0 auto;
  height: 40px;
  padding: 0 6px 10px 0;
  color: #6c6870;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  line-height: 26px;
  letter-spacing: 0;
}

.tab-button[aria-selected="true"] {
  color: #aa1430;
  font-weight: 600;
}

.tab-button[aria-selected="true"]::after {
  position: absolute;
  right: 6px;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #c92b45;
}

.tabs-more {
  position: absolute;
  top: 7px;
  right: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #333333;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.tabs-more::before {
  display: block;
  content: "...";
  font-size: 18px;
  line-height: 18px;
  letter-spacing: 1px;
}

.tabs-menu {
  position: absolute;
  top: 34px;
  right: 0;
  z-index: 20;
  display: none;
  min-width: 176px;
  max-width: 230px;
  padding: 4px 0;
  overflow: hidden;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.tabs-menu.is-open {
  display: block;
}

.menu-item {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 8px 14px;
  color: #333333;
  text-align: left;
  cursor: pointer;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.menu-item[aria-current="true"] {
  color: #aa1430;
  background: #fff5f6;
}

.panel {
  min-height: 520px;
  padding: 21px 20px 42px 21px;
}

.price-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 36px;
}

.price-image:last-child {
  margin-bottom: 0;
}

@media (min-width: 391px) {
  .page-shell {
    max-width: 390px;
  }
}

@media (min-width: 768px) {
  body {
    background:
      linear-gradient(90deg, #ececec 0, #f7f7f7 26%, #f7f7f7 74%, #ececec 100%);
  }

  .page-shell {
    max-width: min(430px, calc(100vw - 64px));
    box-shadow: 0 0 34px rgba(0, 0, 0, 0.08);
  }

  .back-home {
    top: 9px;
    left: 20px;
    height: 37px;
    padding: 0 15px;
    border-radius: 19px;
    font-size: 15px;
    line-height: 37px;
  }

  .page-title {
    padding-top: 86px;
  }

  .page-title h1 {
    font-size: 32px;
    line-height: 46px;
  }

  .tabs-area {
    margin-top: 40px;
  }

  .tabbar {
    height: 44px;
    margin-right: 32px;
    margin-left: 25px;
  }

  .tabs-viewport {
    width: calc(100% - 24px);
    height: 44px;
  }

  .tab-track {
    height: 44px;
  }

  .tab-button {
    height: 44px;
    padding-right: 7px;
    padding-bottom: 11px;
    font-size: 14px;
    line-height: 29px;
  }

  .tab-button[aria-selected="true"]::after {
    right: 7px;
  }

  .tabs-more {
    top: 8px;
  }

  .panel {
    padding: 23px 23px 46px;
  }

  .price-image {
    margin-bottom: 40px;
  }
}

@media (orientation: landscape) and (min-width: 640px) and (max-height: 560px) {
  body {
    background: #eeeeee;
  }

  .page-shell {
    width: 100%;
    max-width: none;
    height: 100dvh;
    box-shadow: none;
  }

  .scroll-view {
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(320px, 430px);
    column-gap: 24px;
    justify-content: center;
    align-items: start;
    padding: 16px 18px 28px;
  }

  .back-home {
    position: static;
    grid-column: 1;
    width: fit-content;
    height: 32px;
    margin: 0 0 22px;
    padding: 0 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 32px;
  }

  .page-title {
    grid-column: 1;
    padding-top: 0;
    text-align: left;
  }

  .page-title h1 {
    width: 100%;
    font-size: 27px;
    line-height: 36px;
  }

  .tabs-area {
    display: contents;
  }

  .tabbar {
    grid-column: 1;
    height: auto;
    margin: 22px 0 0;
  }

  .tabs-viewport {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .tab-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    width: 100%;
    height: auto;
    transform: none !important;
  }

  .tab-button {
    width: 100%;
    height: 32px;
    padding: 0 8px 0 13px;
    overflow: hidden;
    font-size: 15px;
    line-height: 32px;
    text-overflow: ellipsis;
  }

  .tab-button[aria-selected="true"]::after {
    top: 7px;
    right: auto;
    bottom: 7px;
    left: 0;
    width: 3px;
    height: auto;
  }

  .tabs-more,
  .tabs-menu {
    display: none !important;
  }

  .panel {
    grid-row: 1 / span 4;
    grid-column: 2;
    min-height: 0;
    padding: 0 0 34px;
  }

  .price-image {
    width: 100%;
    margin-bottom: 28px;
  }
}
