/* 禁用子页进出动画，避免返回首页时闪一下 */
.page-slide-enter-active,
.page-slide-leave-active,
.page-slide-enter-from,
.page-slide-leave-to {
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.page,
.postlist-bg,
.menu-scroll-list,
.page-no-tab {
  contain: none !important;
}

img,
.record-cover,
.postlist-bg img {
  opacity: 1 !important;
  transition: none !important;
}

/* 首页轮播：支持手指滑动 */
.swiper-wrap {
  position: relative;
  overflow: hidden;
  padding: 10px 15px;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
}
.swiper-inner {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
  will-change: transform;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.swiper-inner.dragging {
  transition: none !important;
}
.swiper-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 分类大图：跟 3:2 素材同比例，整图可见；底栏留白防遮挡 */
.type-page {
  padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important;
  background: #f7f7f7 !important;
}
.type-page .type-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 3 / 2 !important;
  flex-shrink: 0 !important;
  border-radius: 12px !important;
  background: #f3f5f8 !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.type-page .type-card .shipin-img,
.type-page .shipin-img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  content-visibility: visible !important;
  display: block !important;
}
.type-page .type-card-mask {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)) !important;
  padding: 36px 12px 12px !important;
}
.type-page .shipin-ul {
  display: block !important;
}
.type-page .type-card-title {
  font-size: 15px !important;
  line-height: 1.35 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.load-more {
  min-height: 44px;
  line-height: 44px;
}

/* 分类列表：彻底隐藏底部加载提示（兼容旧 JS 缓存） */
.type-list-page .load-more,
.type-list-page .postlist-bg .load-more {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* 首页列表：隐藏「上拉加载更多」占位文案 */
.home-page .load-more {
  min-height: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

/* 详情页收藏：点亮态 */
.footer-icon.is-collected {
  color: #ff9500;
}
.footer-icon.is-collected img {
  filter: invert(58%) sepia(93%) saturate(1200%) hue-rotate(360deg) brightness(103%) contrast(101%);
}

/* 发现页：勿压扁 .page 底栏留白（曾写成 8px，末条卡在 tabbar 下） */
.faxian-page {
  padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important;
  background: #f7f7f7 !important;
}

/* 发现列表卡：对齐首页阅读感，避免 70×60 + 单行标题显得「卡住」 */
.faxian-page .list-li {
  align-items: stretch !important;
  gap: 12px;
  margin: 10px 15px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.faxian-page .list-img {
  width: 110px !important;
  height: 72px !important;
  border-radius: 8px !important;
  background: #f0f2f5;
}

.faxian-page .fengrui-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.faxian-page .list-li-left {
  height: auto !important;
  min-height: 72px !important;
  margin-left: 0 !important;
}

.faxian-page .list-li-left-h {
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
}

.faxian-page .list-li-tag {
  margin-top: 4px !important;
  font-size: 11px !important;
}

.faxian-page .list-li-left-describe {
  color: #adadad !important;
  margin-top: auto !important;
  padding-top: 4px !important;
  font-size: 11px !important;
}

/* home notice bar — light study tone */
.home-page .notice-flex{
  margin:0 15px 10px!important;
  padding:8px 12px!important;
  border-radius:10px!important;
  align-items:center;
  gap:8px;
  background:#fff!important;
  border:1px solid #e8eef5;
  box-shadow:none;
  position:relative;
}
.home-page .notice-flex::before{
  content:"公告";
  flex:0 0 auto;
  height:22px;
  line-height:22px;
  padding:0 8px;
  border-radius:6px;
  font-size:11px;
  font-weight:600;
  color:var(--theme-color,#1e90ff);
  background:#e8f3ff;
}
.home-page .notice-icon{display:none!important}
.home-page .notice-marquee{flex:1;min-width:0;overflow:hidden}
.home-page .notice-marquee-track{
  display:inline-block;white-space:nowrap;width:max-content;
  font-size:13px;line-height:22px;font-weight:400;color:#64748b;
  animation:none;
}
.home-page .notice-marquee-track.is-scroll{
  animation:hd-notice-scroll 16s linear infinite;
  padding-right:2em;
}
.home-page .notice-flex:hover .notice-marquee-track.is-scroll{animation-play-state:paused}
@keyframes hd-notice-scroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}


/* VIP 专区 */
.vip-zone{background:#f7f8fa;min-height:100%;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.vip-zone__hero{margin:12px 16px;padding:16px 16px 14px;border-radius:14px;background:#fff;border:1px solid #eef1f6}
.vip-zone__hero h2{margin:0;font-size:17px;font-weight:700;color:#0f172a}
.vip-zone__hero p{margin:6px 0 0;font-size:12px;line-height:1.5;color:#94a3b8}
.vip-zone__actions{margin-top:12px}
.vip-zone__btn{appearance:none;border:1px solid #b7d9ff;background:#eef6ff;color:var(--theme-color,#1e90ff);border-radius:8px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer}
.vip-zone__btn--primary{background:var(--theme-color,#1e90ff);border-color:var(--theme-color,#1e90ff);color:#fff}
.vip-zone__empty{text-align:center;padding:48px 24px 24px;color:#64748b}
.vip-zone__empty>p:first-child{font-size:15px;font-weight:600;color:#334155;margin:0 0 8px}
.vip-zone__hint{font-size:12px;color:#94a3b8;line-height:1.5;margin:0 0 16px}
.vip-zone .load-more{text-align:center;color:#94a3b8;font-size:12px;padding:12px 0 20px}


/* 富文本列表：全局 *{padding:0} 会挤掉 ul 缩进，圆点贴边像“多余的点” */
.rich ul,.article-body ul,.hd-review-preview__body ul{margin:.55em 0;padding-left:1.35em;list-style:disc}
.rich ol,.article-body ol{margin:.55em 0;padding-left:1.35em;list-style:decimal}
.rich li,.article-body li{margin:.2em 0;display:list-item;list-style:inherit}
.rich p,.article-body p{margin:0 0 .75em}

/* mine header fallback + 位置兜底（覆盖旧 absolute 居中） */
.user-page .mine_head_body{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
  padding:12px 0 8px !important;
}
.user-page .mine_head{
  padding-bottom:52px !important; /* 覆盖旧 padding-bottom:36%/40% */
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .user-page .mine_head {
    background:
      radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255,255,255,.28), transparent 55%),
      linear-gradient(180deg, #7ec2ff 0%, var(--theme-color, #1e90ff) 52%, #c5dff8 100%) !important;
  }
  .user-page .tx {
    box-shadow: 0 6px 18px rgba(30, 144, 255, .28) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .user-page .mine-wave__layer { animation: none !important; }
}
