/* AI代码：contentId=4 专题主页、新闻卡片和栏目更多页独立样式 */
.feature-paper-page,
.feature-paper-more-page {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 750px;
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #fafafa;
}

/* AI代码：专题内容使用独立滚动容器，并为底部下载栏预留空间 */
.feature-paper-scroll,
.feature-paper-more-scroll {
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fafafa;
}

.feature-paper-page.has-download .feature-paper-scroll,
.feature-paper-more-page.has-download .feature-paper-more-scroll {
  padding-bottom: 56px;
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

.feature-paper-scroll .van-pull-refresh__track,
.feature-paper-more-scroll .van-pull-refresh__track {
  min-height: 100%;
}

.feature-paper-main {
  width: 100%;
  min-height: 100%;
}

/* AI代码：首屏加载遮罩避免专题栏目加载过程中出现跳动 */
.feature-paper-loading-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 750px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
}

/* AI代码：专题头图按原始比例完整显示 */
.feature-paper-banner {
  width: 100%;
  overflow: hidden;
  background: #f3f4f6;
}

.feature-paper-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* AI代码：专题简介使用前置竖线、三行省略和独立展开按钮 */
.feature-paper-intro {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  padding: 0.3rem 0.4rem 0.3rem 0.3rem;
  border-bottom: 0.2rem solid #f5f5f5;
  color: #5f6368;
  font-size: 0.32rem;
  line-height: 1.75;
  background: #fff;
}

.feature-paper-intro-line {
  flex: 0 0 0.05rem;
  width: 0.05rem;
  margin-right: 0.3rem;
  background: #c8c8c8;
}

.feature-paper-intro-body {
  position: relative;
  flex: 1;
  min-width: 0;
}

.feature-paper-intro-text {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.feature-paper-intro-text.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.feature-paper-intro-measure {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  visibility: hidden;
  pointer-events: none;
}

.feature-paper-intro-toggle {
  display: block;
  margin: 0.08rem 0 0 auto;
  padding: 0.08rem 0;
  border: 0;
  font-size: 0.28rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
}

/* AI代码：栏目导航支持吸顶、多行展开和主题色高亮 */
.feature-paper-column-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: 100%;
  max-height: 2.4rem;
  padding: 0 0.72rem 0.2rem 0.32rem;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 180ms ease;
}

.feature-paper-column-nav.is-expanded {
  max-height: none;
}

.feature-paper-page .is-fixed .feature-paper-column-nav {
  box-shadow: 0 0.08rem 0.24rem rgba(0, 0, 0, 0.12);
}

.feature-paper-column-chip {
  margin: 0.2rem 0.2rem 0 0;
  padding: 0.1rem 0.18rem;
  border: 0;
  border-radius: 0.08rem;
  color: #555b64;
  font-size: 0.3rem;
  line-height: 1.35;
  cursor: pointer;
  background: #eceef1;
  transition: color 180ms ease, background-color 180ms ease;
}

.feature-paper-column-chip.is-active {
  font-weight: 600;
}

.feature-paper-column-toggle {
  position: absolute;
  right: 0.16rem;
  bottom: 0.22rem;
  width: 0.56rem;
  height: 0.56rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #555b64;
  font-size: 0.32rem;
  cursor: pointer;
  background: #fff;
}

/* AI代码：多栏目内容使用白色分区和独立栏目标题 */
.feature-paper-column-section,
.feature-paper-single-list {
  margin-top: 0.2rem;
  background: #fff;
}

.feature-paper-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 0.88rem;
  padding: 0.16rem 0.4rem;
  border-bottom: 1px solid #f0f1f3;
}

.feature-paper-column-header h2 {
  margin: 0;
  color: #16181c;
  font-size: 0.34rem;
  font-weight: 700;
  line-height: 1.5;
}

.feature-paper-column-header button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 0.8rem;
  height: 0.64rem;
  padding: 0;
  border: 0;
  color: #555b64;
  font-size: 0.34rem;
  cursor: pointer;
  background: transparent;
}

/* AI代码：新闻卡片为主页和栏目更多页共享的统一视觉结构 */
.feature-news-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
}

.feature-news-list > li {
  margin: 0;
  padding: 0 0.4rem;
  list-style: none;
}

.feature-news-item {
  position: relative;
  margin: 0;
  border-bottom: 1px solid #eceef1;
}

.feature-news-list > li:last-child .feature-news-item {
  border-bottom: 0;
}

.feature-news-button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.28rem 0;
  border: 0;
  color: #16181c;
  text-align: left;
  cursor: pointer;
  background: transparent;
}

.feature-news-button:active {
  opacity: 0.72;
}

.feature-news-button h3 {
  margin: 0;
  overflow: hidden;
  color: #16181c;
  font-size: 0.34rem;
  font-weight: 400;
  line-height: 1.45;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feature-news-meta {
  display: flex;
  align-items: center;
  min-height: 0.4rem;
  margin-top: 0.12rem;
  overflow: hidden;
  color: #666d76;
  font-size: 0.24rem;
  line-height: 1.5;
}

.feature-news-meta span {
  max-width: 55%;
  margin-right: 0.24rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.feature-news-small-layout {
  display: flex;
  align-items: stretch;
}

.feature-news-small-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  margin-right: 0.32rem;
}

.feature-news-small-cover {
  position: relative;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 1.6rem;
  border-radius: 0.1rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.feature-news-item-big h3,
.feature-news-item-three h3 {
  margin-bottom: 0.16rem;
}

.feature-news-big-cover {
  position: relative;
  width: 100%;
  height: 4.2rem;
  overflow: hidden;
  border-radius: 0.12rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.feature-news-three-cover {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.feature-news-three-cover > div {
  width: calc((100% - 0.18rem) / 3);
  height: 1.8rem;
  margin-right: 0.09rem;
  border-radius: 0.1rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.feature-news-three-cover > div:last-child {
  margin-right: 0;
}

.feature-news-small-cover.is-placeholder,
.feature-news-big-cover.is-placeholder,
.feature-news-three-cover > div.is-placeholder {
  background-color: #eef0f2;
}

.feature-news-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.1rem;
  text-shadow: 0 0 0.18rem rgba(0, 0, 0, 0.46);
  transform: translate(-50%, -50%);
}

.feature-news-photo-count {
  position: absolute;
  right: 0.22rem;
  bottom: 0.2rem;
  padding: 0.06rem 0.16rem;
  border-radius: 0.08rem;
  color: #fff;
  font-size: 0.24rem;
  background: rgba(0, 0, 0, 0.58);
}

.feature-news-photo-count i {
  margin-right: 0.06rem;
}

/* AI代码：统一专题加载、空数据和失败重试状态 */
.feature-paper-state {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2.4rem;
  padding: 0.4rem;
  color: #666d76;
  font-size: 0.28rem;
  background: #fff;
}

.feature-paper-state-error {
  flex-direction: column;
}

.feature-paper-state-error button {
  margin-top: 0.2rem;
  padding: 0.1rem 0.24rem;
  border: 1px solid #d5d8dc;
  border-radius: 0.08rem;
  color: #3f4650;
  font-size: 0.26rem;
  cursor: pointer;
  background: #fff;
}

.feature-paper-empty {
  min-height: 4rem;
}

/* AI代码：栏目更多页使用固定语义化标题栏和独立滚动区域 */
.feature-paper-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  height: 0.88rem;
  padding: 0 0.24rem;
  border-bottom: 1px solid #eceef1;
  background: #fff;
}

.feature-paper-more-header button,
.feature-paper-more-header > span {
  display: flex;
  align-items: center;
  width: 0.72rem;
  height: 0.72rem;
  padding: 0;
  border: 0;
  color: #252a31;
  font-size: 0.38rem;
  cursor: pointer;
  background: transparent;
}

.feature-paper-more-header h1 {
  flex: 1;
  margin: 0;
  overflow: hidden;
  color: #16181c;
  font-size: 0.34rem;
  font-weight: 600;
  line-height: 0.88rem;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.feature-paper-more-scroll {
  height: calc(100vh - 0.88rem);
}

/* AI代码：专题主页和更多页共用底部App下载栏 */
.feature-paper-download {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-sizing: content-box;
  width: 100%;
  max-width: 750px;
  height: 56px;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid #eceef1;
  background: rgba(255, 255, 255, 0.96);
}

.feature-paper-download-logo {
  width: 68%;
  height: 38px;
}

.feature-paper-download-logo img {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.feature-paper-download > a {
  display: inline-block;
  padding: 0 9px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  line-height: 27px;
  text-decoration: none;
  background: #be2c1f;
}

/* AI代码：为键盘操作提供清晰焦点，并尊重系统减少动画设置 */
.feature-paper-page button:focus-visible,
.feature-paper-more-page button:focus-visible,
.feature-paper-download > a:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .feature-paper-page *,
  .feature-paper-more-page * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* AI代码：窄屏压缩小图尺寸，防止新闻标题区域过窄 */
@media screen and (max-width: 340px) {
  .feature-news-small-cover {
    flex-basis: 2.1rem;
    width: 2.1rem;
    height: 1.5rem;
  }

  .feature-news-small-content {
    margin-right: 0.24rem;
  }
}
