/* 精选作品 — 移动端 */

@media (max-width: 720px) {
  body.page-featured.mobile-featured-page .site-header,
  body.page-featured.mobile-featured-detail-page .site-header {
    display: none !important;
  }
}

body.page-featured.mobile-featured-page,
body.page-featured.mobile-featured-detail-page {
  background: #f5f7fa;
}

body.page-featured.mobile-featured-page .app-shell,
body.page-featured.mobile-featured-detail-page .app-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

.mobile-feat-main {
  max-width: 520px;
  margin: 0 auto;
}

.mobile-feat-shell {
  padding: max(8px, env(safe-area-inset-top, 0px)) 16px 12px;
}

.mobile-feat-detail-shell {
  padding: 0 0 var(--mobile-shell-bottom-gap, 12px);
}

.mobile-feat-shell .mobile-home-header {
  margin-bottom: 14px;
}

.mobile-feat-shell--favorites .mobile-home-header {
  margin-bottom: 10px;
}

.mobile-feat-favorites-head {
  margin: 0 0 12px;
}

.mobile-feat-favorites-head__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #101828;
  letter-spacing: -0.02em;
}

.mobile-feat-favorites-head__hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: #667085;
}

body.page-featured.mobile-feat-favorites-page {
  background: #f5f7fa;
}

.mobile-home-header__tool {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #475467;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
}

.card-block {
  margin: 0 16px 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef2f6;
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.05);
}

/* 顶栏 */
.mobile-feat-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef2f6;
}

.mobile-feat-topbar__back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #344054;
  text-decoration: none;
}

.mobile-feat-topbar__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.mobile-feat-topbar__logo {
  border-radius: 6px;
}

.mobile-feat-topbar__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #101828;
  text-align: center;
}

.mobile-feat-topbar__tool {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #475467;
  border-radius: 10px;
}

.mobile-feat-sort-panel {
  display: flex;
  gap: 8px;
  padding: 0 0 10px;
  margin-bottom: 4px;
}

.mobile-feat-sort-panel.hidden {
  display: none;
}

.mobile-feat-sort-panel a {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #475467;
  background: #fff;
  border: 1px solid #e8eef5;
}

.mobile-feat-hot-picks {
  margin: 0 0 14px;
}

.mobile-feat-hot-picks__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mobile-feat-hot-picks__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #101828;
}

.mobile-feat-hot-picks__scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-feat-hot-picks__card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mobile-feat-hot-picks__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
}

.mobile-feat-hot-picks__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-feat-hot-picks__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  color: #98a2b3;
}

.mobile-feat-hot-picks__tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.mobile-feat-hot-picks__card-title {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #344054;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-feat-sort-panel a.is-active {
  color: #fff;
  background: #1e80ff;
  border-color: #1e80ff;
}

/* 搜索 */
.mobile-feat-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 12px;
  padding: 0 12px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8eef5;
}

.mobile-feat-search__icon {
  color: #98a2b3;
  flex-shrink: 0;
}

.mobile-feat-search__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 14px;
  min-width: 0;
}

/* 轮播（横版横幅 1000×280，与首页一致） */
.mobile-feat-carousel {
  position: relative;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1000 / 280;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.mobile-feat-carousel__slide {
  display: none;
  height: 100%;
}

.mobile-feat-carousel__slide.is-active {
  display: block;
}

.mobile-feat-carousel__slide a {
  display: block;
  height: 100%;
  line-height: 0;
}

.mobile-feat-carousel__slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1000 / 280;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mobile-feat-carousel--default .mobile-feat-carousel__default-copy {
  padding: 22px 18px;
  color: #fff;
}

.mobile-feat-carousel__default-copy h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.mobile-feat-carousel__default-copy p {
  margin: 0 0 12px;
  font-size: 13px;
  opacity: 0.9;
}

.mobile-feat-carousel__cta {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.mobile-feat-carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.mobile-feat-carousel__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.mobile-feat-carousel__dots span.is-active {
  width: 16px;
  border-radius: 3px;
  background: #fff;
}

/* 分类 */
.mobile-feat-tags {
  display: flex;
  gap: 8px;
  margin-left: 0;
  margin-right: 0;
  padding: 0 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-feat-tags::-webkit-scrollbar {
  display: none;
}

.mobile-feat-tags__item {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #475467;
  background: #fff;
  border: 1px solid #e8eef5;
}

.mobile-feat-tags__item.is-active {
  color: #fff;
  background: #1e80ff;
  border-color: #1e80ff;
}

/* 网格 */
.mobile-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}

.mobile-feat-card {
  position: relative;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eef2f6;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05);
}

.mobile-feat-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mobile-feat-card__media {
  aspect-ratio: 5 / 6;
  background: #eef2f6;
  overflow: hidden;
}

.mobile-feat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-feat-card__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-size: 12px;
}

.mobile-feat-card__body {
  padding: 8px 8px 9px;
  min-height: 52px;
}

.mobile-feat-card__title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  color: #101828;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-feat-card__author {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  font-size: 10px;
  color: #667085;
}

.mobile-feat-card__author img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-feat-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #98a2b3;
  margin-bottom: 4px;
}

.mobile-feat-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.mobile-feat-card__stats svg {
  width: 12px;
  height: 12px;
}

.mobile-feat-card__ratio {
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f2f4f7;
  font-size: 9px;
}

.mobile-feat-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.mobile-feat-card__tags span {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f2f4f7;
  color: #667085;
}

.mobile-feat-card__fav {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #98a2b3;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-feat-card__fav.is-active {
  color: #f43f5e;
}

.mobile-feat-empty,
.mobile-feat-more {
  padding: 24px 16px;
  text-align: center;
}

.mobile-feat-more__btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbeafe;
  color: #1e80ff;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

/* 详情页 */
.mobile-feat-detail-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef2f6;
  overflow: visible;
}

.mobile-feat-detail-nav__back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #344054;
  text-decoration: none;
}

.mobile-feat-detail-nav__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  color: #101828;
  min-width: 0;
}

.mobile-feat-detail-nav__spacer {
  display: block;
  width: 40px;
  height: 40px;
}

.mobile-feat-detail-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-shrink: 0;
  overflow: visible;
}

.mobile-feat-detail-nav__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #475467;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}

.mobile-feat-detail-nav__icon svg {
  display: block;
  overflow: visible;
}

.mobile-feat-detail-nav__icon.is-active {
  color: #f04438;
}

.mobile-feat-detail-nav__icon--danger {
  color: #f04438;
}

.mobile-feat-detail-nav__icon:active {
  opacity: 0.75;
}

.mobile-feat-detail-hero {
  padding: 0;
  overflow: hidden;
}

.mobile-feat-detail-hero__img-wrap {
  line-height: 0;
  background: #f2f4f7;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.mobile-feat-detail-hero__img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  background: #f8fafc;
  cursor: zoom-in;
}

.mobile-feat-detail-hero__title,
.mobile-feat-detail-hero__tags,
.mobile-feat-detail-hero__author,
.mobile-feat-detail-hero__stats,
.mobile-feat-detail-hero__actions {
  padding-left: 16px;
  padding-right: 16px;
}

.mobile-feat-detail-hero__title {
  margin: 14px 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #101828;
  line-height: 1.35;
}

.mobile-feat-detail-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 12px;
}

.mobile-feat-detail-hero__tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e80ff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.mobile-feat-detail-hero__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
}

.mobile-feat-detail-hero__author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-feat-detail-hero__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #101828;
}

.mobile-feat-detail-hero__sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #667085;
}

.mobile-feat-detail-hero__stats {
  display: flex;
  gap: 16px;
  padding-bottom: 14px;
  font-size: 13px;
  color: #667085;
}

.mobile-feat-detail-hero__stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mobile-feat-detail-hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 16px;
}

.mobile-feat-detail-hero__actions--single {
  grid-template-columns: 1fr;
}

.mobile-feat-detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.mobile-feat-detail-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #1e80ff, #3b9bff);
  box-shadow: 0 6px 16px rgba(30, 128, 255, 0.28);
}

.mobile-feat-detail-btn--outline {
  color: #1e80ff;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.mobile-feat-detail-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #101828;
}

.mobile-feat-detail-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-feat-detail-block__head h3 {
  margin: 0;
}

.mobile-feat-detail-copy-all {
  border: 0;
  background: transparent;
  color: #1e80ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.mobile-feat-detail-intro {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #475467;
}

.mobile-feat-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-feat-detail-tags span {
  padding: 4px 10px;
  border-radius: 8px;
  background: #f2f4f7;
  font-size: 12px;
  color: #475467;
  font-weight: 600;
}

.mobile-feat-detail-dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.mobile-feat-detail-dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  font-size: 13px;
}

.mobile-feat-detail-dl dt {
  margin: 0;
  color: #98a2b3;
}

.mobile-feat-detail-dl dd {
  margin: 0;
  color: #344054;
  font-weight: 600;
  word-break: break-word;
}

.mobile-feat-detail-dl--copyable div {
  grid-template-columns: 72px 1fr 28px;
  align-items: start;
}

.mobile-feat-detail-dl__copy {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #f2f4f7;
  color: #667085;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.mobile-feat-detail-related {
  margin-top: 8px;
  padding: 0 16px 8px;
}

.mobile-feat-detail-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-feat-detail-related__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.mobile-feat-detail-related__more {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1e80ff;
  text-decoration: none;
}

.mobile-feat-detail-related__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-feat-detail-related__scroll::-webkit-scrollbar {
  display: none;
}

.mobile-feat-detail-related__item {
  flex-shrink: 0;
  width: 132px;
  text-decoration: none;
  color: inherit;
}

.mobile-feat-detail-related__media {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f6;
}

.mobile-feat-detail-related__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-feat-detail-related__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 600;
  color: #98a2b3;
  text-align: center;
  line-height: 1.35;
}

.mobile-feat-detail-related__title {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 分享弹层 */
.mobile-feat-share {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
}

.mobile-feat-share.hidden {
  display: none;
}

.mobile-feat-share__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.mobile-feat-share__panel {
  position: relative;
  width: min(100%, 400px);
  padding: 18px 16px;
  border-radius: 18px;
  background: #fff;
}

.mobile-feat-share__heading {
  margin: 0 0 14px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

.mobile-feat-share__card img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.mobile-feat-share__card p {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #344054;
}

.mobile-feat-share__btn {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: #1e80ff;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.mobile-feat-share__btn--outline {
  background: #eff6ff;
  color: #1e80ff;
  border: 1px solid #bfdbfe;
}

.mobile-feat-share__cancel {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #667085;
  font-weight: 600;
}
