/* ==========================================================================
   STVF · 列表页（cms/stvf-cn/list.html、cms/stvf-en/list.html）
   版式沿用 SIFF 列表页，配色取自电视节绿：
     品牌绿 #3d8b60 / 墨色 #24312a / 次级文字 #5d6a62 / 细分隔线 rgba(0,0,0,.12)
     浅绿面 #f2f8f4 / 圆角 12px / 标签底色 #eaf3ed + #3d6b4e
   结构：栏目索引（无底板无分割线，纯留白）→ 文章列表（右侧浮动分享工具条）→ 居中分页
   全部规则限定在 .cms-page 内，不影响其它页面。
   ========================================================================== */

/* ---------- 版式：单列居中 ---------- */
.cms-page .content {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 150px 40px 96px;
  overflow: visible;
  text-align: left;
  color: #24312a;
}

.cms-page .content .box {
  box-sizing: border-box;
  width: 100%;
  /* common.css 里有 .content .box{width:960px;max-width:960px}，必须一并覆盖 */
  max-width: 100%;
  margin: 48px 0 0;
  padding: 0;
}

/* ---------- 栏目索引：无卡片底板，靠留白与下方内容分隔 ---------- */
.cms-page .section-index {
  position: relative;
  padding: 0 0 12px;
  text-align: center;
}

/* ---------- 标题：大标题 + 品牌绿短线，整体居中 ---------- */
.cms-page .index-head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cms-page .index-title {
  margin: 0;
  padding-left: .1em;
  color: #24312a;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: .1em;
  word-break: break-word;
}

.cms-page .index-rule {
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 17px;
  background-color: #3d8b60;
}

/* ---------- 一级栏目：编号 + 名称，整体居中 ---------- */
.cms-page .index-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 34px;
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.cms-page .index-tab-item {
  margin: 0;
  padding: 0;
}

.cms-page .index-tab {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding: 8px 0;
  color: #4f6157;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.cms-page .index-tab-label {
  position: relative;
}

.cms-page .index-tab-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background-color: #3d8b60;
  transition: width .3s cubic-bezier(.22, .61, .36, 1);
}

.cms-page .index-tab:hover {
  color: #24312a;
}

.cms-page .index-tab:hover .index-tab-label::after {
  width: 16px;
}

.cms-page .index-tab.is-active {
  color: #3d8b60;
  font-weight: 500;
}

.cms-page .index-tab.is-active .index-tab-label::after {
  width: 100%;
}

.cms-page .index-tab:focus {
  outline: none;
}

.cms-page .index-tab:focus-visible,
.cms-page .index-sub-item:focus-visible,
.cms-page .pager a:focus-visible,
.cms-page .sharebar a:focus-visible {
  outline: 1px solid rgba(61, 139, 96, .45);
  outline-offset: 4px;
}

/* ---------- 下层：当前栏目的子栏目 ---------- */
.cms-page .index-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, .07);
}

.cms-page .index-sub:empty {
  display: none;
}

.cms-page .index-sub-label {
  color: #8a978f;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .16em;
}

.cms-page .index-sub-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5d6a62;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .2s ease;
}

.cms-page .index-sub-item i {
  width: 5px;
  height: 5px;
  background-color: transparent;
  border: 1px solid #b8c4bc;
  transform: rotate(45deg);
  transition: background-color .2s ease, border-color .2s ease;
}

.cms-page .index-sub-item:hover {
  color: #24312a;
}

.cms-page .index-sub-item:hover i {
  border-color: #2c6a48;
}

.cms-page .index-sub-item.is-current {
  color: #3d8b60;
}

.cms-page .index-sub-item.is-current i {
  background-color: #3d8b60;
  border-color: #3d8b60;
}

/* ---------- 列表：标题在左、日期在右 ---------- */
.cms-page .list,
.cms-page .list .wrapper {
  width: 100%;
  color: #24312a;
}

.cms-page .list .wrapper {
  padding: 0;
  min-height: 240px;
}

.cms-page .list ul {
  padding: 0;
}

.cms-page .list ul li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 19px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  line-height: 1.5;
  /* 出现动画：从下往上淡入，逐条延时（见文件末尾的 nth-child） */
  animation: list-row-in .46s cubic-bezier(.22, .61, .36, 1) both;
}

/* 悬停只在本行内铺底色，不越过上下分隔线，也不左右探出 */
.cms-page .list ul li::before {
  content: "";
  display: block;
  height: auto;
  position: absolute;
  top: 0;
  bottom: 1px;
  left: 0;
  right: 0;
  background-color: #f4faf6;
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

.cms-page .list ul li:hover::before {
  opacity: 1;
}

.cms-page .list ul li > * {
  position: relative;
  z-index: 1;
}

/* 悬停时滑入的箭头，位置在日期之前（用背景图，避免 ::after 的文字进无障碍朗读） */
.cms-page .list ul li::after {
  content: "";
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  visibility: visible;
  order: 1;
  align-self: center;
  margin: 0 10px 0 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233d8b60' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h10.5M8.8 3.6 13.2 8l-4.4 4.4'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .25s ease, transform .3s cubic-bezier(.22, .61, .36, 1);
  pointer-events: none;
  z-index: 1;
}

.cms-page .list ul li:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* 末行不留线，交给分页条顶部那条横线收口 */
.cms-page .list ul li:last-child {
  border-bottom: 0;
}

.cms-page .list ul li span.fl {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  order: 0;
  padding-right: 20px;
  font-size: 16px;
  line-height: 1.65;
}

.cms-page .list ul li span.time {
  flex: 0 0 auto;
  width: auto;
  min-width: 84px;
  order: 2;
  color: #8a978f;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition: color .2s ease;
}

.cms-page .list .wrapper li a {
  color: #24312a;
  font-weight: 500;
  transition: color .2s ease;
}

.cms-page .list ul li:hover span.time,
.cms-page .list .wrapper li a:hover {
  color: #3d8b60;
}

/* 标题里用 | 分隔的板块名，做成首页同款标签 */
.cms-page .list ul li span.tag {
  display: inline-block;
  margin-right: 10px;
  padding: 1px 8px;
  border-radius: 4px;
  background-color: #eaf3ed;
  color: #3d6b4e;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: 1px;
}

/* 无文章时的占位 */
.cms-page .list ul li span.fl:only-child {
  color: #5d6a62;
}

/* ---------- 列表出现动画：逐条淡入上移 ---------- */
@keyframes list-row-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cms-page .list ul li:nth-child(1) {
  animation-delay: .02s;
}

.cms-page .list ul li:nth-child(2) {
  animation-delay: .06s;
}

.cms-page .list ul li:nth-child(3) {
  animation-delay: .1s;
}

.cms-page .list ul li:nth-child(4) {
  animation-delay: .14s;
}

.cms-page .list ul li:nth-child(5) {
  animation-delay: .18s;
}

.cms-page .list ul li:nth-child(6) {
  animation-delay: .22s;
}

.cms-page .list ul li:nth-child(7) {
  animation-delay: .26s;
}

.cms-page .list ul li:nth-child(8) {
  animation-delay: .3s;
}

.cms-page .list ul li:nth-child(9) {
  animation-delay: .34s;
}

.cms-page .list ul li:nth-child(10) {
  animation-delay: .38s;
}

.cms-page .list ul li:nth-child(11) {
  animation-delay: .42s;
}

.cms-page .list ul li:nth-child(12) {
  animation-delay: .46s;
}

.cms-page .list ul li:nth-child(13) {
  animation-delay: .5s;
}

.cms-page .list ul li:nth-child(14) {
  animation-delay: .54s;
}

.cms-page .list ul li:nth-child(n + 15) {
  animation-delay: .58s;
}

@media (prefers-reduced-motion: reduce) {
  .cms-page .list ul li {
    animation: none;
  }
}

/* ---------- 右侧浮动分享工具条 ---------- */
.cms-page .content .sharebar {
  position: fixed;
  top: 50%;
  right: 28px;
  left: auto;
  z-index: 100;
  width: auto;
  margin: 0;
  background: none;
  border: 0;
  transform: translateY(-50%);
}

.cms-page .content .sharebar .share {
  display: block;
  margin: 0;
  padding: 0;
}

.cms-page .content .sharebar .share li {
  width: 44px;
  height: 44px;
  margin: 0 0 6px;
  padding: 0;
  background: none;
}

.cms-page .content .sharebar .share li:last-child {
  margin-bottom: 0;
}

/* 站内自带各平台图标（images/icons/*.png），放进白底细描边的小方块 */
.cms-page .content .sharebar .share li a {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 10px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  box-shadow: 0 8px 18px -14px rgba(36, 49, 42, .9);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.cms-page .content .sharebar .share li a::after {
  content: var(--share-label, "");
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cms-page .content .sharebar .share li.facebook a {
  background-image: url(../images/icons/facebook.png);
}

.cms-page .content .sharebar .share li.twitter a {
  background-image: url(../images/icons/x.png);
}

.cms-page .content .sharebar .share li.weixin a {
  background-image: url(../images/icons/wechat.png);
}

.cms-page .content .sharebar .share li.qq a {
  background-image: url(../images/icons/qq.png);
}

.cms-page .content .sharebar .share li.weibo a {
  background-image: url(../images/icons/weibo.png);
}

.cms-page .content .sharebar .share li.app a {
  background-image: url(../images/icons/idx-gfapp.png);
}

.cms-page .content .sharebar .share li.facebook a::after {
  --share-label: "Facebook";
}

.cms-page .content .sharebar .share li.twitter a::after {
  --share-label: "X";
}

.cms-page .content .sharebar .share li.weixin a::after {
  --share-label: "WeChat";
}

.cms-page .content .sharebar .share li.qq a::after {
  --share-label: "QQ";
}

.cms-page .content .sharebar .share li.weibo a::after {
  --share-label: "Weibo";
}

.cms-page .content .sharebar .share li.app a::after {
  --share-label: "APP";
}

.cms-page .content .sharebar .share li a:hover {
  border-color: #3d8b60;
  background-color: #f2f8f4;
  transform: translateY(-1px);
}

/* ---------- 居中分页 ---------- */
.cms-page .pager {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 用子元素 margin 控制间距：模板换行产生的空白匿名 item 为零宽，不受影响 */
  gap: 0;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, .12);
}

.cms-page .pager > * {
  margin: 0 4px;
}

.cms-page .pager-num {
  display: inline-block;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 8px;
  color: #4f6157;
  font-size: 13px;
  line-height: 32px;
  text-align: center;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.cms-page .pager-num:hover {
  border-color: #3d8b60;
  color: #3d8b60;
}

.cms-page .pager-num.is-current {
  background-color: #3d8b60;
  border-color: #3d8b60;
  color: #fff;
}

.cms-page .pager-step {
  display: inline-block;
  height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 999px;
  color: #4f6157;
  font-size: 13px;
  line-height: 32px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}

.cms-page .pager-step:hover {
  border-color: #3d8b60;
  color: #3d8b60;
}

.cms-page .pager-step.is-off {
  border-color: rgba(0, 0, 0, .08);
  color: #b8c4bc;
  cursor: default;
}

.cms-page .pager .pager-step:first-child {
  margin-right: 12px;
}

.cms-page .pager .pager-step:last-child {
  margin-left: 12px;
}

/* ---------- 适配 ---------- */
/* base.css 里 body{min-width:1280px} 会让页面在窄屏溢出；.list-body/.content-body 的灰底也一并覆盖 */
body.cms-page {
  min-width: 0;
  background-color: #fff;
}

@media only screen and (max-width: 1440px) {
  .cms-page .content {
    padding: 146px 32px 88px;
  }

  .cms-page .index-title {
    font-size: 27px;
  }

  .cms-page .index-tabs {
    gap: 2px 26px;
  }

  .cms-page .content .sharebar {
    right: 14px;
  }

  .cms-page .content .sharebar .share li,
  .cms-page .content .sharebar .share li a {
    width: 40px;
    height: 40px;
  }
}

/* ---------- 平板 ---------- */
@media only screen and (max-width: 1100px) {
  /* 1100px 以下换成 60px 的移动顶栏（见 mobile.css），已由 .main-nav-bar 占位 */
  .cms-page .content {
    padding: 36px 24px 72px;
  }

  .cms-page .content .box {
    margin-top: 36px;
  }

  .cms-page .index-title {
    font-size: 24px;
  }

  .cms-page .index-tabs {
    gap: 2px 20px;
  }
}

/* ---------- 手机 ---------- */
@media only screen and (max-width: 900px) {
  /* 移动端顶栏 60px 已由 .main-nav-bar 占位，这里只留呼吸空间 */
  .cms-page .content {
    padding: 36px 16px 56px;
  }

  .cms-page .content .box {
    display: flex;
    flex-direction: column;
    margin-top: 28px;
  }

  .cms-page .list,
  .cms-page .article {
    order: 1;
    width: 100%;
  }

  .cms-page .pager {
    order: 2;
  }

  /* 栏目索引 */
  .cms-page .index-title {
    font-size: 21px;
    letter-spacing: .06em;
  }

  .cms-page .index-rule {
    width: 24px;
    height: 2px;
    margin-top: 12px;
  }

  .cms-page .index-tabs {
    gap: 2px 14px;
    margin-top: 16px;
  }

  .cms-page .index-tab {
    padding: 6px 0;
    font-size: 13.5px;
  }

  .cms-page .index-tab-label::after {
    bottom: -6px;
  }

  .cms-page .index-sub {
    gap: 8px 14px;
    margin-top: 14px;
    padding-top: 12px;
  }

  .cms-page .index-sub-item {
    font-size: 12.5px;
  }

  /* 列表 */
  .cms-page .list .wrapper {
    min-height: 0;
  }

  .cms-page .list ul li {
    padding: 16px 0;
  }

  .cms-page .list ul li span.fl {
    font-size: 15px;
    line-height: 1.6;
  }

  /* 触屏没有 hover，去掉底色和箭头 */
  .cms-page .list ul li::before,
  .cms-page .list ul li::after {
    display: none;
  }

  .cms-page .list ul li span.tag {
    margin-right: 8px;
    padding: 1px 6px;
    font-size: 11px;
  }

  /* 分页 */
  .cms-page .pager {
    flex-wrap: wrap;
    row-gap: 8px;
    margin-top: 26px;
    padding-top: 16px;
  }

  .cms-page .pager > * {
    margin: 0 2px;
  }

  .cms-page .pager-num {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 28px;
  }

  .cms-page .pager-step {
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 28px;
  }

  .cms-page .pager .pager-step:first-child {
    margin-right: 6px;
  }

  .cms-page .pager .pager-step:last-child {
    margin-left: 6px;
  }

  /* 分享工具条在窄屏改为正文下方横排 */
  .cms-page .content .sharebar {
    position: static;
    order: 3;
    width: 100%;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, .1);
    transform: none;
  }

  .cms-page .content .sharebar .share {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .cms-page .content .sharebar .share li {
    margin: 0;
  }
}

/* ---------- 小屏手机：列表改为上下两行 ---------- */
@media only screen and (max-width: 640px) {
  .cms-page .list ul li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 0;
  }

  .cms-page .list ul li span.fl {
    width: 100%;
    padding-right: 0;
  }

  .cms-page .list ul li span.time {
    min-width: 0;
    text-align: left;
    font-size: 12px;
  }
}
