:root {
  --brand: #ff4b2f;
  --brand-soft: #fff0ec;
  --ink: #202124;
  --muted: #8d949e;
  --line: #eeeeee;
  --blue: #2b7df0;
}

* {
  box-sizing: border-box;
}

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

body {
  background: #f4f4f4;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

button {
  font: inherit;
}

.qm-page {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100svh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.page-title {
  margin: 0 0 8px;
  color: #202124;
  font-size: 18px;
  line-height: 26px;
}

.seo-intro {
  margin: 0 0 10px;
  color: #6f7680;
  font-size: 12px;
  line-height: 20px;
}

.page-scroll {
  min-height: 100svh;
  padding: 0 20px 92px;
  background: #ffffff;
}

.page-scroll.detail {
  padding-bottom: 28px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  height: 74px;
  background: #ffffff;
}

.topbar-spacer {
  width: 34px;
  height: 34px;
}

.topbar::after {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 1px;
  background: transparent;
  content: "";
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  color: #2d3136;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.hamburger,
.search-icon,
.back-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
  position: absolute;
  left: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #2d3136;
  content: "";
}

.hamburger::before {
  top: 4px;
}

.hamburger span {
  top: 9px;
}

.hamburger::after {
  top: 14px;
}

.search-icon {
  border: 2px solid #2d3136;
  border-radius: 50%;
  transform: scale(0.82);
}

.search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: #2d3136;
  content: "";
  transform: rotate(45deg);
}

.back-icon::before {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 11px;
  height: 11px;
  border-left: 2px solid #2d3136;
  border-bottom: 2px solid #2d3136;
  content: "";
  transform: rotate(45deg);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: #333333;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 88px;
  height: 24px;
  object-fit: contain;
}

.app-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #ff893c, #ff342b);
  font-weight: 900;
}

.app-avatar {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  font-size: 21px;
}

.app-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f2f3f5;
}

.app-avatar-remote {
  position: relative;
}

.app-avatar-remote > span {
  position: absolute;
}

.app-avatar-remote > img {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: #a3a8b0;
  font-size: 11px;
}

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

.breadcrumb b {
  color: #777d86;
  font-weight: 500;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 28px;
  margin-bottom: 16px;
  overflow: hidden;
  color: #6f7680;
  font-size: 12px;
  white-space: nowrap;
}

.tab {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.tab.active {
  color: #1f2227;
  font-weight: 800;
}

.tab.active::after {
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  content: "";
}

.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 13px;
  color: #2d3136;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.section-title::after {
  color: #555b64;
  content: ">";
  font-size: 17px;
  line-height: 1;
}

.home-section {
  min-width: 0;
}

.app-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 64px;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-right: -20px;
  padding-right: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.app-grid::-webkit-scrollbar {
  display: none;
}

.grid-item {
  display: block;
  min-width: 0;
  color: inherit;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
}

.grid-name {
  display: block;
  width: 64px;
  overflow: hidden;
  color: #34383f;
  font-size: 12px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-card {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 20;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 7px;
  width: min(440px, calc(100vw - 24px));
  min-height: 54px;
  border-radius: 12px;
  padding: 7px 10px;
  background: #fff0eb;
  box-shadow: 0 8px 20px rgba(255, 77, 50, 0.12);
  transform: translateX(-50%);
}

.download-icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
}

.download-card .copy {
  min-width: 0;
  color: #3a3d42;
  font-size: 11px;
  overflow: hidden;
  line-height: 15px;
  white-space: nowrap;
}

.primary-btn,
.outline-btn,
.small-btn {
  border: 0;
  border-radius: 18px;
  cursor: pointer;
}

.small-btn {
  height: 28px;
  min-width: 48px;
  padding: 0 10px;
  color: #ffffff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.outline-btn {
  display: inline-grid;
  place-items: center;
  height: 32px;
  min-width: 56px;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.primary-btn {
  height: 46px;
  color: #ffffff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 700;
  line-height: 17px;
}

.list {
  display: grid;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
}

.list-item {
  display: grid;
  grid-template-columns: 54px 1fr 58px;
  align-items: center;
  gap: 12px;
  min-height: 83px;
  border-bottom: 1px solid var(--line);
}

.list-item-link {
  color: inherit;
  text-decoration: none;
}

.list-item-link:active {
  background: #fff7f5;
}

.list-item .app-avatar {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  font-size: 18px;
}

.item-copy {
  min-width: 0;
}

.item-title {
  margin: 0 0 4px;
  color: #22252a;
  font-size: 13px;
  font-weight: 800;
}

.item-sub,
.item-meta {
  margin: 0;
  overflow: hidden;
  color: #9aa0a8;
  font-size: 11px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-app {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
}

.hero-app .app-avatar {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  font-size: 28px;
}

.hero-name {
  margin: 0 0 7px;
  color: #202124;
  font-size: 18px;
  font-weight: 900;
}

.company {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border-radius: 4px;
  padding: 0 10px;
  color: #8b929b;
  background: #f1f2f4;
  font-size: 11px;
}

.cta-stack {
  display: grid;
  gap: 11px;
  margin: 22px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 -4px 18px;
  text-align: center;
}

.stat {
  border-right: 1px solid #eeeeee;
}

.stat:last-child {
  border-right: 0;
}

.stat small {
  display: block;
  color: #a1a6ae;
  font-size: 10px;
}

.stat b {
  display: block;
  margin-top: 3px;
  color: #2c3035;
  font-size: 13px;
}

.preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 17px 0 20px;
}

.preview {
  position: relative;
  height: 164px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 255, 255, 0.72), transparent 12%),
    linear-gradient(160deg, #25c6ff, #1fb06c 47%, #ffe566 48%, #1c85f5);
}

.preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-button {
  border: 0;
  padding: 0;
  cursor: zoom-in;
}

body.menu-open,
body.image-viewer-open,
body.wechat-tip-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.wechat-tip[hidden] {
  display: none;
}

.wechat-tip {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  color: #ffffff;
  opacity: 0;
  transition: opacity 180ms ease;
}

.wechat-tip.is-open {
  opacity: 1;
}

.wechat-tip-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.82);
}

.wechat-tip-arrow {
  position: absolute;
  top: max(5px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  width: 80px;
  height: 86px;
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.wechat-tip-content {
  position: absolute;
  top: max(88px, calc(env(safe-area-inset-top) + 74px));
  right: max(22px, env(safe-area-inset-right));
  display: grid;
  justify-items: end;
  gap: 8px;
  max-width: calc(100vw - 44px);
  text-align: right;
}

.wechat-tip-content strong {
  font-size: 20px;
}

.wechat-tip-content span {
  font-size: 14px;
  line-height: 22px;
}

.wechat-tip-content button {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 7px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  opacity: 0;
  overscroll-behavior: contain;
  touch-action: none;
  transition: opacity 180ms ease;
}

.image-viewer.is-open {
  opacity: 1;
}

.image-viewer-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border: 0;
  background: rgba(8, 10, 13, 0.88);
  cursor: zoom-out;
}

.image-viewer-content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: max(20px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.image-viewer-image {
  display: block;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.image-viewer-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

@media (max-width: 520px) {
  .image-viewer-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .image-viewer-close {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
  }
}

.preview.alt {
  background:
    radial-gradient(circle at 52% 25%, rgba(255, 255, 255, 0.66), transparent 13%),
    linear-gradient(160deg, #f2b441, #4873d9 46%, #101928);
}

.preview.dark {
  background:
    radial-gradient(circle at 42% 34%, #ffcb50, transparent 15%),
    linear-gradient(160deg, #2e1d26, #866344, #1f2b39);
}

.copy-block h2,
.copy-block h3,
.info-block h2,
.info-block h3 {
  margin: 16px 0 8px;
  color: #202124;
  font-size: 14px;
}

.copy-block p {
  margin: 0;
  color: #5f656d;
  font-size: 12px;
  line-height: 20px;
  white-space: pre-line;
}

.intro-copy:not(.is-expanded) [data-expandable-text] {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.intro-more {
  display: block;
  margin: 5px 0 0 auto;
  border: 0;
  padding: 2px 0 2px 14px;
  color: var(--brand);
  background: #ffffff;
  font-size: 12px;
  cursor: pointer;
}

.intro-more[hidden] {
  display: none;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  color: #777d86;
  font-size: 12px;
}

.info-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 6px;
}

.info-list b {
  color: #3c4046;
}

.info-list span {
  white-space: pre-line;
}

.policy-links {
  display: flex;
  gap: 18px;
  margin: 16px 0 0;
  font-size: 12px;
}

.policy-links a {
  color: #4285e8;
  text-decoration: none;
}

.drawer-page {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.drawer-mask {
  position: fixed;
  inset: 0 0 0 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.drawer {
  position: relative;
  z-index: 2;
  width: min(310px, 82vw);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow-y: auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 180ms ease;
}

.drawer-page.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-page.is-open .drawer {
  transform: translateX(0);
}

.drawer-brand {
  justify-content: flex-start;
  margin-bottom: 26px;
}

.drawer-brand-logo {
  display: block;
  width: 118px;
  height: 42px;
  object-fit: contain;
}

.drawer-menu {
  display: grid;
  gap: 10px;
}

.drawer-menu a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  height: 44px;
  border-radius: 5px;
  padding: 0 12px;
  color: #2f3338;
  text-decoration: none;
}

.drawer-menu a.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.drawer-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.home-indicator {
  position: fixed;
  left: 50%;
  bottom: 4px;
  z-index: 30;
  width: 136px;
  height: 5px;
  border-radius: 5px;
  background: #111111;
  transform: translateX(-50%);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 50;
  min-width: 170px;
  max-width: calc(100vw - 40px);
  border-radius: 20px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.82);
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@media (min-width: 500px) {
  .qm-page {
    min-height: 812px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  }
}
