/* 专题列表与详情 — 与资料下载内页统一风格 */
@import url('channel-wide.css');

body.page-topic .xx_art {
  width: 96% !important;
  max-width: 1760px !important;
  margin: 20px auto 0 !important;
  box-sizing: border-box !important;
}

.page-topic .xx_art {
  overflow: visible;
  margin-bottom: 50px;
}

.page-topic .yksite-tp-panel {
  padding-bottom: 24px;
}

.page-topic .yksite-tp-item.xxn_list {
  box-sizing: border-box;
  overflow: visible;
}

.page-topic .yksite-tp-item table {
  table-layout: fixed;
  width: 100%;
}

.page-topic .yksite-tp-item table td:first-child {
  width: 200px;
}

.page-topic .yksite-tp-item table td:last-child {
  width: 120px;
  min-width: 120px;
}

.page-topic .yksite-tp-item table td:nth-child(2) {
  overflow: hidden;
  word-wrap: break-word;
}

/* 列表 / 矩阵切换（右上） */
.page-topic .yksite-tp-toolbar {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  text-align: right;
  overflow: visible;
}

.yksite-tp-view-toggle {
  display: inline-flex;
  border: 1px solid #dedede;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.yksite-tp-view-toggle__btn {
  padding: 6px 18px;
  font-size: 14px;
  line-height: 1.4;
  border: none;
  background: #fff;
  color: #666;
  cursor: pointer;
  outline: none;
}

.yksite-tp-view-toggle__btn + .yksite-tp-view-toggle__btn {
  border-left: 1px solid #dedede;
}

.yksite-tp-view-toggle__btn:hover {
  color: #c5001b;
}

.yksite-tp-view-toggle__btn.is-active {
  background: #c5001b;
  color: #fff;
}

.yksite-tp-view {
  display: none;
}

.yksite-tp-view.is-active {
  display: block;
}

/* 封面占位 */
.yksite-tp-item__cover {
  display: block;
  width: 176px;
  height: 99px;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
}

.yksite-tp-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yksite-tp-item__cover-fallback,
.yksite-tp-card__thumb .yksite-tp-item__cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 187px;
  background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%);
  color: #c5001b;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
}

.yksite-tp-item__cover .yksite-tp-item__cover-fallback {
  min-height: 99px;
  font-size: 16px;
}

.yksite-tp-item__summary {
  color: #999;
  font-size: 14px;
  margin-top: 8px;
  line-height: 23px;
}

.yksite-tp-btn {
  display: inline-block;
  padding: 6px 18px;
  font-size: 14px;
  border: 1px solid #ccc;
  color: #323232;
  background: #fff;
  text-decoration: none;
  line-height: 1.4;
  border-radius: 3px;
}

.yksite-tp-btn:hover {
  border-color: #c5001b;
  color: #c5001b;
  text-decoration: none;
}

.yksite-tp-btn--primary {
  background: #c5001b;
  border-color: #c5001b;
  color: #fff;
}

.yksite-tp-btn--primary:hover {
  background: #b91103;
  border-color: #b91103;
  color: #fff;
}

/* 矩阵 */
.yksite-tp-grid {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.yksite-tp-card {
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #eee;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
  overflow: hidden;
}

.yksite-tp-card:hover {
  box-shadow: 0 0 20px #eee;
}

.yksite-tp-card__thumb {
  display: block;
  height: 187px;
  overflow: hidden;
  background: #f5f5f5;
  text-decoration: none;
}

.yksite-tp-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.yksite-tp-card:hover .yksite-tp-card__thumb img {
  transform: scale(1.05);
}

.yksite-tp-card__body {
  padding: 18px 16px 26px;
}

.yksite-tp-card__body h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.45;
}

.yksite-tp-card__body h3 a {
  color: #323232;
  text-decoration: none;
}

.yksite-tp-card__body h3 a:hover {
  color: #c5001b;
}

.yksite-tp-card__summary {
  margin: 0 0 20px;
  font-size: 13px;
  color: #999;
  line-height: 1.65;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yksite-tp-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 2px;
}

.page-topic .yksite-tp-view--list {
  margin-bottom: 40px;
}

.page-topic .yksite-tp-item__summary {
  margin-bottom: 12px;
}

.yksite-tp-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 15px;
}

/* 详情页 */
.yksite-tp-detail-ban {
  width: 100%;
  height: 500px;
  background: #181818 url(../../img/newsbg.jpg) top center no-repeat;
  background-size: cover;
  position: relative;
}

.yksite-tp-detail-ban__mask {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.52);
}

.yksite-tp-detail-ban .articlebox {
  position: relative;
  z-index: 1;
}

.yksite-tp-detail-ban__lead {
  margin: 12px 0 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.page-topic-detail .yksite-tp-detail-main {
  width: 100%;
  float: none;
}

body.page-topic .xx_l {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  box-sizing: border-box !important;
}

.yksite-topic-article {
  font-size: 16px;
  line-height: 1.9;
  color: #5d5d5d;
}

.yksite-topic-article img {
  max-width: 100%;
  height: auto;
}

.yksite-topic-article table {
  max-width: 100%;
  border-collapse: collapse;
}

.yksite-topic-article table td,
.yksite-topic-article table th {
  border: 1px solid #ddd;
  padding: 8px 12px;
}

.yksite-tp-detail-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #efefef;
}

@media (max-width: 991px) {
  .yksite-tp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-topic .yksite-tp-item table td:first-child {
    width: 140px;
  }

  .yksite-tp-item__cover {
    width: 120px;
    height: 68px;
  }
}

@media (max-width: 640px) {
  .yksite-tp-grid {
    grid-template-columns: 1fr;
  }

  .page-topic .yksite-tp-item table,
  .page-topic .yksite-tp-item tr,
  .page-topic .yksite-tp-item td {
    display: block;
    width: 100% !important;
  }

  .yksite-tp-item__cover {
    width: 100%;
    height: auto;
    max-height: 180px;
    margin-bottom: 12px;
  }

  .yksite-tp-item table td:last-child {
    text-align: left;
    padding-top: 12px;
  }
}
