/* Mobile home: retain the original banner, four entrances and editorial sections. */

.home-banner {
  margin: .7rem .8rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(120deg,#d7f0ff,#eaf8ff);
}

.home-banner .carousel {
  height: 7.5rem;
}

.home-banner img {
  width: 100%;
  height: 7.5rem;
  object-fit: cover;
}

.home-shortcuts {
  margin: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.home-shortcuts ul {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.home-shortcuts li>a {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: .35rem;
  padding: .7rem .2rem;
  font-size: .65rem;
}

.home-shortcuts .nav-icon {
  display: block;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: .55rem;
  padding: .3rem;
  color: var(--brand);
  background: #f1f8ff;
}

.home-featured,.home-section,section.home-news {
  margin: .7rem .8rem;
  padding: .85rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.home-featured .section-heading {
  margin-bottom: .3rem;
  font-size: .85rem;
  font-weight: 650;
}

.home-featured .section-title::before {
  content: "";
  display: inline-block;
  height: .75rem;
  width: .17rem;
  margin-right: .4rem;
  border-radius: 2px;
  background: var(--brand);
  vertical-align: -.05rem;
}

.home-featured li {
  display: flex;
  gap: .65rem;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}

.home-featured li:last-child {
  border: 0;
  padding-bottom: 0;
}

.home-featured .img {
  flex-shrink: 0;
}

.home-featured img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: .65rem;
}

.home-featured .card-text {
  min-width: 0;
  flex: 1;
}

.home-featured .app-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
  font-weight: 600;
}

.sub-title,.home-featured .card-summary {
  font-size: .55rem;
  color: var(--muted);
  margin-top: .2rem;
}

.sub-title i {
  margin: 0 .3rem;
}

.home-featured .card-summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-featured .button {
  flex-shrink: 0;
  padding-inline: .6rem;
}

#home-rank-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: .85rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}

#home-rank-tabs i {
  cursor: pointer;
  padding-bottom: .3rem;
  border-bottom: 2px solid transparent;
}

#home-rank-tabs .is-active {
  color: var(--ink);
  border-color: var(--brand);
}

.home-ranking dd {
  min-width: 0;
}

.rank-panel {
  overflow: hidden;
}

.home-ranking .app-strip {
  overflow: hidden;
}

.home-ranking .app-strip-item {
  width: 3.7rem;
  text-align: center;
}

.rank-card {
  position: relative;
}

.home-ranking .rank-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: .65rem;
  margin: 0 auto;
}

.home-ranking .icon {
  position: absolute;
  left: .2rem;
  top: 0;
  width: .8rem;
  height: .8rem;
  border-radius: .2rem;
  background: var(--brand);
  color: #fff;
  font-size: .5rem;
  line-height: .8rem;
}

.home-ranking .title {
  margin: .4rem 0 .5rem;
  font-size: .6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-ranking .rank-download {
  display: inline-block;
  padding: .15rem .6rem;
  border: 1px solid #c3e6f8;
  color: var(--brand);
  font-size: .55rem;
  border-radius: .25rem;
}

.home-app-grid ul {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1rem .55rem;
}

.home-app-grid li {
  min-width: 0;
  text-align: center;
}

.home-app-grid img {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: .65rem;
  margin: auto;
}

.home-app-link p {
  margin: .4rem 0;
  font-size: .6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-app-grid .button {
  min-height: 1.4rem;
  font-size: .55rem;
  padding: .12rem .6rem;
}

.home-topic-grid ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .8rem .65rem;
}

.home-topic-grid li {
  min-width: 0;
}

.home-topic-grid img {
  width: 100%;
  aspect-ratio: 1.9;
  border-radius: .35rem;
}

.home-topic-grid .card-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: .35rem;
  font-size: .65rem;
}

.home-topic-content>span {
  display: block;
  text-align: center;
  margin-top: .8rem;
  padding-top: .7rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .6rem;
}

/* Native app strips reserve icon space and scroll without a JavaScript dependency. */

.app-strip-track {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.app-strip-item {
  flex: 0 0 3.7rem;
  min-width: 0;
  scroll-snap-align: start;
  text-align: center;
}
