:root {
  --page-width: 500px;
  --header-height: min(16vw, 80px);
  --footer-height: min(16vw, 80px);
  --safe-bottom: env(safe-area-inset-bottom);
  --bg: #0a0a0a;
  --body-bg: #f5f8fa;
  --blue: #1678ff;
  --orange: #ffaa09;
  --red: #ea4e3d;
  --success: #04be02;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft Yahei", sans-serif;
  color: #fff;
  background: var(--body-bg);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  overflow-x: hidden;
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.page-view {
  position: relative;
  width: 100%;
  max-width: var(--page-width);
  min-height: calc(var(--vh, 1vh) * 100);
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}

.download-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 99;
  width: 100%;
  max-width: var(--page-width);
  height: var(--header-height);
  overflow: hidden;
  transform: translateX(-50%);
  background: #1a1a1a;
}

.download-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.content-wrap {
  min-height: calc(var(--vh, 1vh) * 100);
  padding: var(--header-height) 0 calc(var(--footer-height) + var(--safe-bottom));
  background: var(--bg);
}

.poster-section {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

.poster-section img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.route-section {
  overflow: visible;
}

.route-hotspots {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.route-hotspot {
  position: absolute;
  right: 6%;
  display: block;
  width: 24%;
  height: 16%;
  border-radius: 999px;
  pointer-events: auto;
}

.route-hotspot-1 {
  top: 38%;
}

.route-hotspot-2 {
  top: 58%;
}

.route-hotspot-3 {
  top: 78%;
}

.float-tools {
  position: fixed;
  top: calc(var(--header-height) + min(17vw, 85px));
  right: max(min(1.5vw, 7px), calc((100% - var(--page-width)) / 2 + min(1.5vw, 7px)));
  z-index: 80;
  width: min(13.333vw, 66.666px);
}

.float-item {
  display: block;
  width: min(13.333vw, 66.666px);
  height: min(13.333vw, 66.666px);
  margin-top: min(2.533vw, 12.666px);
}

.float-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--page-width);
  height: calc(var(--footer-height) + var(--safe-bottom));
  padding: 0 0 var(--safe-bottom);
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
}

.footer-btn {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  height: min(9.066vw, 45.333px);
  min-width: 0;
  margin: 0 min(2.4vw, 12px);
  padding: 0 min(2.533vw, 12.666px);
  border-radius: min(2vw, 10px);
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.footer-btn strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: min(4.266vw, 21.333px);
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
}

.play-btn {
  background: var(--blue);
}

.download-btn {
  background: var(--orange);
}

.footer-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + min(0.8vw, 4px));
  max-width: calc(100% - min(2.533vw, 12.666px));
  padding: min(1.493vw, 7.466px) min(2.688vw, 13.44px);
  overflow: visible;
  border-radius: min(2vw, 10px);
  background: var(--red);
  color: #fff;
  font-size: min(3.136vw, 15.68px);
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-bubble::before {
  position: absolute;
  display: block;
  left: 0;
  bottom: max(-1.866vw, -9.333px);
  width: 0;
  height: 0;
  border: min(3.2vw, 16px) solid transparent;
  border-left-color: var(--red);
  content: "";
}

.line-modal[hidden] {
  display: none;
}

.mask.backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.line-dialog {
  position: relative;
  width: min(88vw, 440px);
  height: auto;
}

.line-warp {
  padding: min(2.533vw, 12.666px);
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: min(2.133vw, 10.666px);
  background-color: rgba(11, 11, 11, 0.99);
}

.line-item {
  display: flex;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
  height: min(12vw, 60px);
  color: #f7f6f1;
}

.lines-space {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(8vw, 40px);
  padding-left: min(1.866vw, 9.333px);
  line-height: 1;
  text-align: left;
}

.lines {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 22px;
  height: 16px;
}

.line-icon {
  display: block;
  flex: 0 0 4px;
  width: 4px;
  height: 16px;
  margin: 0;
  border-radius: 2px;
  background-color: var(--success);
}

.line-icon.line-1 {
  height: 8px;
}

.line-icon.line-2 {
  height: 12px;
}

.text-success {
  display: block;
  color: var(--success);
}

.text-small {
  margin-top: 2px;
  font-size: min(2.533vw, 12.666px);
}

.flex-con {
  flex: 1 1 0%;
  min-width: 0;
}

.ph {
  padding: 0 min(2.533vw, 12.666px);
}

.text-center {
  text-align: center;
}

.go-play {
  height: min(8vw, 40px);
  padding: 0 min(3.2vw, 16px);
  border-radius: min(2.133vw, 10.666px);
  background-color: var(--blue);
  color: #fff;
  font-size: min(2.933vw, 14.666px);
  white-space: nowrap;
}

.vhcenter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.svg-icon.close {
  position: absolute;
  top: calc(100% + min(6.4vw, 32px));
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(10.133vw, 50.666px);
  height: min(10.133vw, 50.666px);
  padding: 0;
  border: 0;
  transform: translateX(-50%);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.svg-icon.close svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (min-width: 501px) {
  .page-view {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
  }
}

@media (max-width: 500px) {
  .line-dialog {
    width: 88vw;
  }
}

@media (max-width: 360px) {
  .footer-btn {
    margin: 0 7px;
  }

  .footer-btn strong {
    font-size: 17px;
  }

  .footer-bubble {
    font-size: 11px;
  }
}
