/* 抖漫首页扩展：本周主推 / 更新列表 / 榜单 / APP 下载 */
.hero-section {
  min-height: min(72vh, 680px);
  display: flex;
  align-items: center;
}
.hero-section .hero-scrim {
  background: linear-gradient(180deg, rgba(12,12,14,.28) 0%, rgba(12,12,14,.58) 50%, rgba(12,12,14,.82) 100%);
}
.hero-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,92,57,.18);
  border: 1px solid rgba(255,255,255,.28);
  color: #ffe9e2;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.featured-card {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(23,23,23,.12);
  border: 1px solid #e6e8ec;
}
.featured-cover {
  width: 42%;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-body {
  flex: 1;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #fff0eb;
  color: #ff5c39;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.featured-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #171717;
  margin-bottom: 0.5rem;
}
.featured-body p {
  color: #5c6470;
  line-height: 1.7;
  font-size: 0.95rem;
}

.update-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .update-list { grid-template-columns: 1fr 1fr; }
}
.update-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.update-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23,23,23,.08);
}
.update-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
}
.update-meta { min-width: 0; flex: 1; }
.update-meta h3 {
  font-weight: 700;
  color: #171717;
  font-size: 0.98rem;
}
.update-meta p {
  color: #5c6470;
  font-size: 0.8rem;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.update-side {
  text-align: right;
  flex-shrink: 0;
}
.update-time { color: #9ca3af; font-size: 0.75rem; display: block; }
.update-badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #fff0eb;
  color: #ff5c39;
  font-size: 0.7rem;
  font-weight: 700;
}

.rank-panel {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 28px rgba(23,23,23,.04);
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
}
.rank-item + .rank-item { border-top: 1px solid #f3f4f6; }
.rank-no {
  width: 1.5rem;
  font-weight: 800;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}
.rank-item:nth-child(-n+3) .rank-no { color: #ff5c39; }
.rank-item h3 { font-size: 0.92rem; font-weight: 700; color: #171717; }
.rank-item span { font-size: 0.75rem; color: #9ca3af; }

.app-qr {
  width: 9.5rem;
  height: 9.5rem;
  background: #fff;
  border-radius: 1rem;
  padding: 0.65rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.app-qr svg { width: 100%; height: 100%; display: block; }
.app-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 1.4rem;
}
.app-pill {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.search-mask {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.45);
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
}
.search-mask.is-open { display: flex; }
.search-box {
  width: min(560px, 92vw);
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
.search-box input {
  width: 100%;
  border: 1px solid #e6e8ec;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  outline: none;
}
.search-box input:focus { border-color: #ff5c39; }

@media (max-width: 768px) {
  .featured-card { flex-direction: column; }
  .featured-cover { width: 100%; height: 200px; min-height: 200px; }
}
