:root {
  --bg: #04020a;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.68);
  --subtle: rgba(255, 255, 255, 0.5);
  --pink: #ff3ea6;
  --pink-soft: #ff9ce8;
  --violet: #9b4fe8;
  --green: #35d854;
  --line: rgba(194, 91, 225, 0.34);
  --glass: rgba(11, 7, 20, 0.62);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: #020106;
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #293340;
  font-family: "SF Pro Display", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

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

.page-shell {
  position: relative;
  display: grid;
  width: min(100%, 430px);
  max-width: 430px;
  min-width: 0;
  min-height: 100svh;
  margin: 0 auto;
  padding: 14px 12px 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  box-shadow: 0 0 64px rgba(0, 0, 0, 0.62);
}

.scene-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% top;
  filter: brightness(0.5) contrast(1.1) saturate(1.12);
  transform: scale(1.02);
}

.scene-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 13%, rgba(255, 62, 166, 0.24), transparent 11rem),
    radial-gradient(circle at 16% 6%, rgba(155, 79, 232, 0.22), transparent 10rem),
    linear-gradient(180deg, rgba(2, 4, 10, 0.16) 0%, rgba(2, 4, 10, 0.42) 58%, rgba(2, 4, 10, 0.9) 100%);
}

.page-shell::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.65;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.page-shell > :not(.scene-visual):not(.scene-overlay) {
  position: relative;
  z-index: 1;
}

.topbar {
  padding: 0;
  background: rgba(4, 4, 12, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.nav-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
}

.nav-item {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(13, 9, 22, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.nav-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  margin: 12px 0 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(25, 8, 31, 0.48), rgba(4, 2, 8, 0.74)),
    rgba(8, 4, 15, 0.72);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.carousel-track {
  display: grid;
  width: 300%;
  height: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  animation: carousel-pan 15s infinite ease-in-out;
}

.carousel-slide {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.carousel-dot {
  display: block;
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 62, 166, 0.26);
  animation: carousel-dot 15s infinite ease-in-out;
}

.carousel-dot:nth-child(2) {
  animation-delay: 5s;
}

.carousel-dot:nth-child(3) {
  animation-delay: 10s;
}

@keyframes carousel-pan {
  0%,
  28% {
    transform: translateX(0);
  }

  34%,
  62% {
    transform: translateX(-33.3333%);
  }

  68%,
  96% {
    transform: translateX(-66.6667%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes carousel-dot {
  0%,
  28% {
    width: 18px;
    background: rgba(255, 62, 166, 0.9);
    border-color: rgba(255, 156, 232, 0.72);
  }

  34%,
  100% {
    width: 7px;
    background: rgba(255, 255, 255, 0.34);
    border-color: rgba(255, 255, 255, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-dot {
    animation: none;
  }

  .carousel-dot:first-child {
    width: 18px;
    background: rgba(255, 62, 166, 0.9);
    border-color: rgba(255, 156, 232, 0.72);
  }
}

.panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(19, 11, 27, 0.72), rgba(8, 5, 16, 0.62)),
    rgba(10, 7, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 30%),
    radial-gradient(circle at 18% 0%, rgba(255, 62, 166, 0.08), transparent 8rem);
}

.panel > * {
  position: relative;
  z-index: 1;
}

.h5-panel {
  padding: 12px 10px 10px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}

.section-head > div {
  display: grid;
  gap: 4px;
}

.section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.section-head span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.checking {
  min-height: 23px;
  margin: 0;
  padding: 0 8px;
  color: rgba(255, 131, 204, 0.84);
  background: rgba(255, 62, 166, 0.08);
  border: 1px solid rgba(255, 106, 192, 0.16);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 21px;
  white-space: nowrap;
}

.h5-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  min-height: 70px;
  min-width: 0;
  gap: 4px 8px;
  align-items: center;
  padding: 8px 9px;
  background: rgba(10, 7, 18, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.entry-main {
  grid-column: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.entry-card h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-tag {
  display: inline-flex;
  min-height: 17px;
  align-items: center;
  padding: 0 6px;
  flex: 0 0 auto;
  color: rgba(255, 156, 232, 0.82);
  background: rgba(255, 62, 166, 0.08);
  border: 1px solid rgba(255, 106, 192, 0.14);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 15px;
}

.entry-card dl {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.entry-card dl div {
  display: flex;
  gap: 6px;
}

.entry-card dt,
.entry-card dd {
  margin: 0;
}

.entry-card dt {
  color: rgba(255, 255, 255, 0.48);
}

.ok {
  color: var(--green);
}

.checking-text {
  color: rgba(255, 255, 255, 0.64);
}

.down {
  color: #ff6d9b;
}

.ping {
  color: #d987ff;
}

.entry-card.is-checking .ping {
  color: rgba(255, 255, 255, 0.58);
}

.entry-card.is-offline {
  border-color: rgba(255, 109, 155, 0.16);
}

.primary-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  min-width: 70px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(234, 65, 159, 0.88), rgba(213, 64, 151, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(122, 30, 82, 0.22);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.primary-button::after {
  margin-left: 4px;
  content: "›";
  font-size: 16px;
  line-height: 1;
}

.bottom-dock {
  margin: 12px -12px 12px;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, rgba(3, 4, 10, 0.68), rgba(1, 2, 6, 0.96) 66%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.26);
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.download-guide {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.download-guide a {
  margin-left: 4px;
  color: rgba(255, 156, 232, 0.92);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(255, 156, 232, 0.34);
  text-underline-offset: 3px;
}

.download-link {
  display: inline-flex;
  min-height: 44px;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 4px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(28, 30, 42, 0.78), rgba(10, 11, 18, 0.94)),
    rgba(10, 12, 19, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.download-link > * {
  position: relative;
  z-index: 1;
}

.download-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.16));
}

.download-link span:last-child {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.download-link.ios {
  background:
    linear-gradient(180deg, rgba(25, 32, 52, 0.8), rgba(9, 13, 23, 0.94)),
    rgba(8, 11, 20, 0.9);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 18px rgba(53, 113, 255, 0.1);
}

.download-link.lite {
  background:
    linear-gradient(180deg, rgba(36, 26, 46, 0.8), rgba(14, 10, 22, 0.94)),
    rgba(12, 10, 21, 0.9);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 18px rgba(187, 92, 255, 0.1);
}

.download-link.android {
  background:
    linear-gradient(180deg, rgba(23, 38, 28, 0.8), rgba(8, 13, 14, 0.94)),
    rgba(8, 12, 15, 0.9);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 18px rgba(53, 216, 84, 0.08);
}

@media (max-width: 360px) {
  .page-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .nav-list {
    gap: 4px;
    padding: 4px;
  }

  .nav-item {
    min-height: 38px;
    gap: 2px;
    padding: 0 1px;
    font-size: 10px;
  }

  .hero-carousel {
    margin-top: 10px;
    margin-bottom: 10px;
    max-height: 420px;
  }

  .h5-panel {
    padding-right: 10px;
    padding-left: 10px;
  }

  .section-head h2 {
    font-size: 21px;
  }

  .entry-card {
    grid-template-columns: minmax(0, 1fr) 68px;
    min-height: 68px;
    gap: 4px 7px;
    padding: 8px;
  }

  .entry-main {
    gap: 6px;
  }

  .entry-card h3 {
    font-size: 16px;
  }

  .entry-card dl {
    gap: 4px 8px;
    font-size: 11px;
  }

  .primary-button {
    min-width: 66px;
    padding: 0 7px;
    font-size: 11px;
  }

  .bottom-dock {
    margin-right: -10px;
    margin-bottom: 10px;
    margin-left: -10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .download-actions {
    gap: 6px;
  }

  .download-link {
    min-height: 44px;
    gap: 3px;
    padding-right: 3px;
    padding-left: 3px;
    font-size: 10px;
  }

  .download-guide {
    margin-top: 7px;
    font-size: 10px;
  }

  .download-icon {
    width: 18px;
    height: 18px;
  }
}

.guide-shell {
  position: relative;
  width: min(100%, 430px);
  max-width: 430px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 14px 12px 18px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  box-shadow: 0 0 64px rgba(0, 0, 0, 0.62);
}

.guide-shell::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

.guide-shell > :not(.guide-visual):not(.guide-overlay) {
  position: relative;
  z-index: 1;
}

.guide-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% top;
  filter: brightness(0.38) contrast(1.08) saturate(1.08);
  transform: scale(1.02);
}

.guide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 10%, rgba(255, 62, 166, 0.22), transparent 10rem),
    linear-gradient(180deg, rgba(4, 2, 10, 0.28), rgba(4, 2, 10, 0.92) 70%);
}

.guide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.guide-back {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(13, 9, 22, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.guide-hero {
  padding: 18px 14px;
}

.guide-kicker {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 8px;
  color: rgba(255, 156, 232, 0.86);
  background: rgba(255, 62, 166, 0.1);
  border: 1px solid rgba(255, 106, 192, 0.16);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.guide-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.guide-hero p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.guide-steps {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.guide-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(19, 11, 27, 0.72), rgba(8, 5, 16, 0.62)),
    rgba(10, 7, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.guide-step-index {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(234, 65, 159, 0.88), rgba(155, 79, 232, 0.78));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.guide-step h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.guide-step p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.guide-note {
  margin-top: 12px;
  padding: 13px 12px;
}

.guide-note h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.guide-note p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}
