.haoban-phone-case {
  --haoban-phone-ink: #172956;
  --haoban-phone-muted: #526381;
}

@media (min-width: 1025px) {
  .blog-article.haoban-phone-case { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.haoban-phone-case .blog-article-body {
  width: 100%;
  max-width: 58rem;
  justify-self: center;
  margin-inline: auto;
  padding-top: clamp(1.5rem, 4vw, 4rem);
  color: var(--haoban-phone-ink);
}

.haoban-phone-flow {
  display: grid;
  grid-template-columns: minmax(0, 375px) 44px minmax(0, 375px);
  justify-content: center;
  align-items: start;
  column-gap: clamp(4px, 1vw, 12px);
}

.haoban-phone-case .haoban-community-preview { margin: 0; }

.haoban-phone-case .haoban-community-preview figcaption {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
}

.haoban-phone-screen {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 375 / 812;
  overflow: hidden;
  border-radius: 16px;
  background: #eef1fc;
  box-shadow: 0 12px 28px rgb(23 41 86 / 9%);
}

.haoban-phone-case .haoban-community-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}

.haoban-community-open {
  position: absolute;
  top: 26%;
  left: 2.5%;
  width: 46%;
  height: 37.5%;
  border-radius: 8px;
}

.haoban-phone-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  align-self: center;
  place-items: center;
  margin-top: 52px;
  border-radius: 50%;
  color: #1649a0;
  background: #e6edf9;
}

.haoban-phone-arrow:hover { background: #d6e3f7; }

.haoban-phone-case .haoban-reader-tabs {
  min-height: 44px;
  height: 44px;
  gap: 4px;
  margin: 0 0 8px;
  padding-inline: 4px;
  border: 0;
  border-radius: 8px;
  background: #edf1f9;
}

.haoban-phone-case .haoban-reader-tabs a {
  min-width: 0;
  min-height: 44px;
  padding-inline: 2px;
  font-size: 12px;
}

.haoban-phone-case .haoban-reader-tabs [aria-selected="true"]::before {
  inset: 4px 0;
  background: #fff;
}

.haoban-phone-reader {
  --haoban-article-gutter: 16px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  background: #fff;
  color: #172238;
  font: 400 14px/1.75 "PingFang SC", "Microsoft YaHei", sans-serif;
}

.haoban-phone-reader::-webkit-scrollbar { display: none; }

.haoban-phone-reader .haoban-reading-panel { margin: 0; padding: 0; border: 0; }
.haoban-phone-reader .haoban-update-story { border: 0; border-radius: 0; }
.haoban-phone-reader figure { margin: 0; }

.haoban-phone-reader .haoban-update-chapter > figure {
  padding-inline: var(--haoban-article-gutter);
  background: #fff;
}


.haoban-phone-reader .haoban-reader-cover-features {
  top: 41%;
  left: 4.5%;
  right: 30.5%;
  color: #000;
}

.haoban-phone-reader .haoban-update-heading,
.haoban-phone-reader .haoban-update-prose,
.haoban-phone-reader .haoban-update-ending {
  padding: 24px var(--haoban-article-gutter);
}

.haoban-phone-reader .haoban-update-heading h2 {
  margin: 0 0 20px;
  font: 650 22px/1.4 var(--haoban-reader-font);
  letter-spacing: 0;
  text-wrap: wrap;
}

.haoban-phone-reader .haoban-reader-author {
  align-items: center;
  gap: 8px;
}

.haoban-phone-reader .haoban-reader-author > div { min-width: 0; }

.haoban-phone-reader .haoban-reader-author img,
.haoban-phone-reader .haoban-reader-company {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.haoban-phone-reader .haoban-reader-author strong { font-size: 12px; line-height: 18px; }
.haoban-phone-reader .haoban-reader-author small { margin-top: 0; font-size: 12px; line-height: 18px; }

.haoban-phone-reader p,
.haoban-phone-reader .haoban-update-lead {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
}

.haoban-phone-reader .haoban-update-prose h3,
.haoban-phone-reader .haoban-update-ending h3 {
  margin: 4px 0 0;
  font: 650 18px/1.45 var(--haoban-reader-font);
}

.haoban-phone-reader .haoban-update-index {
  font: 600 14px/1 var(--haoban-reader-font);
}

.haoban-phone-reader .haoban-update-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
}

.haoban-phone-reader .haoban-article-source {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
}

.haoban-phone-case :is(.haoban-community-open, .haoban-phone-arrow, .haoban-phone-reader):focus-visible {
  outline: 2px solid #1649a0;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .haoban-phone-flow {
    grid-template-columns: min(375px, calc(100% - 48px)) 44px min(375px, calc(100% - 48px));
    justify-content: start;
    column-gap: 8px;
    overflow-x: auto;
    padding: 4px 4px 12px;
  }
}

@media (max-width: 360px) {
  .haoban-phone-flow { grid-template-columns: calc(100% - 8px) 44px calc(100% - 8px); }
}

.haoban-phone-reader :is(.haoban-update-prose, .haoban-update-ending) p,
.haoban-phone-reader .haoban-update-lead { font-size: 16px; line-height: 26px; margin-top: 12px; }
.haoban-phone-reader .haoban-reader-author small { line-height: 20px; }
.haoban-phone-reader .haoban-article-source { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }

.haoban-phone-navbar {
  position: absolute;
  inset: 24px 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(rgb(0 0 0 / 12%), transparent);
  pointer-events: none;
}
.haoban-phone-navbar svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 20%));
}

.haoban-phone-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  padding: 0 18px;
  color: #fff;
  font: 600 11px/1 Helvetica, Arial, sans-serif;
  background: rgb(0 0 0 / 12%);
  text-shadow: 0 1px 2px rgb(0 0 0 / 20%);
  pointer-events: none;
}
.haoban-phone-status-icons { display: flex; align-items: center; gap: 5px; }
.haoban-phone-status-icons svg { width: 17px; height: 14px; }
.haoban-phone-status-icons .haoban-phone-battery { width: 25px; }

.haoban-phone-reader { container-type: inline-size; }
#version-update .haoban-update-heading h2 {
  font-size: min(22px, calc((100cqi - 32px) * .06414));
}

#version-update .haoban-reader-cover {
  --haoban-cover-standard: url("../assets/visual-work/channels/haoban-reader-update-titled.webp");
  --haoban-cover-medium: url("../assets/visual-work/channels/haoban-reader-update-titled-medium.webp");
  --haoban-cover-compact: url("../assets/visual-work/channels/haoban-reader-update-titled-compact.webp");
}

#fatigue .haoban-reader-cover {
  --haoban-cover-standard: url("../assets/visual-work/channels/haoban-reader-fatigue-titled.webp");
  --haoban-cover-medium: url("../assets/visual-work/channels/haoban-reader-fatigue-titled-medium.webp");
  --haoban-cover-compact: url("../assets/visual-work/channels/haoban-reader-fatigue-titled-compact.webp");
}

#haoban-3 .haoban-reader-cover {
  --haoban-cover-standard: url("../assets/visual-work/channels/haoban-reader-launch-titled.webp");
  --haoban-cover-medium: url("../assets/visual-work/channels/haoban-reader-launch-titled-medium.webp");
  --haoban-cover-compact: url("../assets/visual-work/channels/haoban-reader-launch-titled-compact.webp");
}

.haoban-reader-cover-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: center / cover no-repeat var(--haoban-cover-standard);
}

@container (max-width: 332px) {
  .haoban-reader-cover-art { background-image: var(--haoban-cover-medium); }
}

@container (max-width: 256px) {
  .haoban-reader-cover-art { background-image: var(--haoban-cover-compact); }
}
