:root {
  --common-nav-ink: #241a22;
  --common-nav-glass: rgba(255, 255, 255, .72);
  --common-nav-line: rgba(255, 255, 255, .88);
  --common-nav-shadow: 0 18px 46px rgba(48, 20, 35, .18);
}

/* The navigation is fixed so it never changes a page's measured content width. */
.common-nav {
  position: fixed;
  top: 50%;
  right: max(16px, env(safe-area-inset-right));
  z-index: 1200;
  width: 232px;
  transform: translateY(-50%);
  isolation: isolate;
  pointer-events: none;
}

.common-nav__panel {
  position: relative;
  display: grid;
  gap: 0;
  width: 66px;
  padding: 4px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  transition: width .24s ease, border-radius .24s ease, background-color .24s ease, box-shadow .24s ease;
  pointer-events: auto;
  margin-left: auto;
}

.common-nav__panel:hover,
.common-nav__panel:focus-within,
.common-nav.is-open .common-nav__panel {
  width: 232px;
  gap: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .64);
  box-shadow: var(--common-nav-shadow);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.common-nav__trigger {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  aspect-ratio: 1;
  justify-self: end;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background: #f19ab7;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(184, 78, 118, .3);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.common-nav__trigger:hover,
.common-nav__trigger:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(48, 20, 35, .16);
}

.common-nav__trigger img {
  display: block;
  width: 50px;
  height: 54px;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}

/* Keep the compact trigger circular; show the transparent character as the open panel header. */
.common-nav__panel:hover .common-nav__trigger,
.common-nav__panel:focus-within .common-nav__trigger,
.common-nav.is-open .common-nav__trigger {
  width: 100%;
  height: 76px;
  min-width: 0;
  min-height: 76px;
  justify-self: stretch;
  padding: 0;
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.common-nav__panel:hover .common-nav__trigger img,
.common-nav__panel:focus-within .common-nav__trigger img,
.common-nav.is-open .common-nav__trigger img {
  width: 52px;
  height: 76px;
  max-width: 52px;
}

.common-nav__links {
  display: grid;
  gap: 6px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .24s ease, opacity .16s ease, transform .24s ease;
}

.common-nav__panel:hover .common-nav__links,
.common-nav__panel:focus-within .common-nav__links,
.common-nav.is-open .common-nav__links {
  max-height: min(400px, calc(100vh - 132px));
  opacity: 1;
  transform: translateY(0);
}

.common-nav__link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 11px;
  color: var(--common-nav-ink);
  background: rgba(255, 255, 255, .56);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.common-nav__link:hover,
.common-nav__link:focus-visible {
  color: #1f1720;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 16px rgba(48, 20, 35, .12);
  transform: translateX(-2px);
}

.common-nav__link:active {
  transform: translateX(-2px) scale(.98);
}

.common-nav__dot {
  display: inline-grid;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #8d7782;
}

.common-nav__link[data-tone="oppo"] .common-nav__dot { background: #101010; }
.common-nav__link[data-tone="vivo"] .common-nav__dot { background: #3578e5; }
.common-nav__link[data-tone="stock"] .common-nav__dot { background: #d74747; }
.common-nav__link[data-tone="mixed"] .common-nav__dot { background: #9d82dc; }
.common-nav__link[data-tone="tradein"] .common-nav__dot { background: #e8bd50; }
.common-nav__link[data-tone="monitor"] .common-nav__dot { background: #137e80; }

.common-nav__link[aria-current="page"] {
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(36, 26, 34, .12);
}

.page-back-button {
  gap: 8px;
  min-height: 40px;
  align-items: center;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.oppo-logo.page-back-button {
  min-width: 132px;
  padding: 0 14px;
  color: #3a202d;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.oppo-logo.page-back-button span:first-child {
  font-size: 20px;
  line-height: 1;
}

button,
a[href] {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled),
a[href] {
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, opacity .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

button:not(:disabled):active,
a[href]:active {
  filter: brightness(.97);
  transform: scale(.985);
}

button:focus-visible,
a[href]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(84, 145, 224, .42);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .common-nav {
    top: auto;
    right: 12px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(232px, calc(100vw - 24px));
    transform: none;
  }

  .common-nav__panel:hover,
  .common-nav__panel:focus-within {
    width: 66px;
    gap: 0;
    border-radius: 50%;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .common-nav__panel:hover .common-nav__links,
  .common-nav__panel:focus-within .common-nav__links {
    opacity: 0;
    max-height: 0;
  }

  .common-nav.is-open .common-nav__panel {
    width: min(232px, calc(100vw - 24px));
    border-radius: 24px;
    background: rgba(255, 255, 255, .78);
  }

  .common-nav.is-open .common-nav__links {
    opacity: 1;
    max-height: min(400px, calc(100vh - 132px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .common-nav *,
  button,
  a[href] {
    transition-duration: .01ms !important;
  }
}

/* Avatar shape invariant: the character never becomes a stretched menu header. */
.common-nav__panel:hover .common-nav__trigger,
.common-nav__panel:focus-within .common-nav__trigger,
.common-nav.is-open .common-nav__trigger {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  aspect-ratio: 1 !important;
  justify-self: end;
  padding: 0;
  background: #f19ab7 !important;
  border: 1px solid rgba(255, 255, 255, .86) !important;
  border-radius: 50% !important;
  box-shadow: 0 10px 24px rgba(184, 78, 118, .3) !important;
}

.common-nav__panel:hover .common-nav__trigger img,
.common-nav__panel:focus-within .common-nav__trigger img,
.common-nav.is-open .common-nav__trigger img {
  width: 50px !important;
  height: 54px !important;
  max-width: 50px !important;
  object-fit: contain;
}

/* Reference avatar: a soft outer ring, pink inner disc, and a centered compact character. */
.common-nav__trigger,
.common-nav__panel:hover .common-nav__trigger,
.common-nav__panel:focus-within .common-nav__trigger,
.common-nav.is-open .common-nav__trigger {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  padding: 0 !important;
  overflow: hidden;
  isolation: isolate;
  background: #f7edf2 !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 13px rgba(184, 78, 118, .14) !important;
}

.common-nav__trigger::before {
  position: absolute;
  inset: 5px;
  z-index: 0;
  content: "";
  border-radius: 50%;
  background: #ef9ab8;
}

.common-nav__trigger img,
.common-nav__panel:hover .common-nav__trigger img,
.common-nav__panel:focus-within .common-nav__trigger img,
.common-nav.is-open .common-nav__trigger img {
  position: relative;
  z-index: 1;
  width: 34px !important;
  height: 46px !important;
  max-width: 34px !important;
  object-fit: contain;
}
