/* 今日头条主体内容样式 */
.news-container {
  max-width: 1200px;
  margin: 20px auto;
  overflow: hidden;
}

.news-feature {
  display: flex;
  background-color: #fff;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  margin-bottom: -25px;
  border-radius: 4px;
  overflow: hidden;
}
.news-feature a {
  display: flex;
  background-color: #fff;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
}

.news-feature__image-col {
  width: 60%;
}

.news-feature__image-wrapper {
	height: 100%;
}

.news-feature__image {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.news-feature__image:hover {
  /* transform: scale(1.03); */
}

.news-feature__content {
  width: 40%;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-feature__title {
  font-family: PingFangSC, PingFang SC;
  font-weight: 500;
  font-size: 30px;
  color: #302e2e;
  line-height: 65px;
  text-align: left;
  font-style: normal;
  cursor: pointer;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-feature__text {
  cursor: pointer;
  margin-top: 40px;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 20px;
  color: #2f2e2e;
  line-height: 45px;
  text-align: left;
  font-style: normal;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

/* 公示公告区域样式 */
.news-notice {
  display: flex;
  align-items: center;
  background: #fff6f6;
  border-radius: 10px;
  padding: 24px 0;
  max-width: 1200px;
  margin: 32px auto 0 auto;
  position: relative;
}

.news-notice-img {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 32px;
  position: relative;
  height: 100%;
}

.news-notice-img-icon {
  border-radius: 14px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 30px;
}

.news-notice-list {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  gap: 0 48px;
  align-items: center;
  height: 100%;
  min-height: 80px;
}

.news-notice-item {
  display: flex;
  align-items: center;
  width: 43%;
  font-size: 17px;
  color: #444;
  text-decoration: none;
}

.news-notice-item span {
  margin-left: 10px;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 18px;
  color: #918f8f;
  line-height: 40px;
  text-align: left;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  -webkit-line-clamp: 1;
  flex: 1;
  cursor: pointer;
}

.news-notice-item:hover span {
  color: #ad1600;
}

.news-notice-title {
  margin-left: 10px;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 18px;
  color: #918f8f;
  line-height: 40px;
  text-align: left;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  -webkit-line-clamp: 1;
  flex: 1;
  cursor: pointer;
}

.news-notice-date {
  flex: none;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 18px;
  color: #918f8f;
  line-height: 40px;
  text-align: left;
  font-style: normal;
}

.news-notice-more {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 39px;
  height: 73px;
  background: #bc1906;
  border-radius: 20px;
  font-family: PingFangSC, PingFang SC;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  line-height: 22px;
  font-style: normal;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-notice-more a {
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
  font-style: normal;
  margin: 0;
  text-decoration: none;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 2px;
  text-align: center;
}

.news-notice-dot {
  width: 10px;
  height: 10px;
  background: #d11210;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

/* 新闻内容部分样式 */
.news-tabs-content {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  gap: 20px;
  justify-content: space-between;
}

.news-main-section {
  width: 790px;
  background: #fff;
  border-radius: 8px;
  padding: 0 0 20px 0;
}

.news-side-section {
  /* flex: 1; */
  display: flex;
  width: 410px;
  flex-direction: column;
  gap: 20px;
}

/* 选项卡样式改进 */
.news-tabs-list {
  display: flex;
  background: #f9f0f0;
  overflow: hidden;
}

.news-tab-item {
  cursor: pointer;
  width: 25%;
  text-align: center;
  padding: 15px 0;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 20px;
  color: #2f2e2e;
  line-height: 31px;
  letter-spacing: 1px;
  font-style: normal;
}

.news-tab-active {
  background-color: #bc1906;
  color: #fff;
  font-weight: 500;
  border-bottom: none;
}

.news-article {
  text-decoration: none;
  display: block;
  color: inherit;
  border-bottom: 1px dotted #d8d8d8;
  padding: 25px 20px;
  width: 100%;
  box-sizing: border-box;
}

.news-article:hover {
  background-color: #f9f9f9;
}

.news-article-item {
  display: flex;
  gap: 20px;
  width: 100%;
}

.news-article-img-box {
  width: 280px;
  height: 160px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

.news-article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* Fix for text overflow in flex container */
}

.news-article-title {
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  -webkit-line-clamp: 1;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 20px;
  color: #2f2e2e;
  line-height: 43px;
  text-align: left;
  font-style: normal;
}

.news-article-title:hover {
  color: #bc1906;
}

.news-article-text {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 16px;
  color: #2f2e2e;
  line-height: 35px;
  text-align: left;
  font-style: normal;
}

/* 只在IE10+生效 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .news-article-text {
    display: block;
    max-height: 70px; /* 2行 * 35px行高 */
    overflow: hidden;
  }

  .news-article-text::after {
    content: "...";
    position: absolute;
    right: 0;
    bottom: 0;
    background: inherit;
    padding-left: 5px;
  }
}

/* 或者使用IE专属hack，其他浏览器不会识别 */
_:-ms-input-placeholder,
:root .news-article-text {
  display: block;
  max-height: 70px;
  overflow: hidden;
}

_:-ms-input-placeholder,
:root .news-article-text::after {
  content: "...";
  position: absolute;
  right: 0;
  bottom: 0;
  background: inherit;
  padding-left: 5px;
}
_:-ms-input-placeholder,
:root .news-article-content{
  padding-left: 10px;
}

_:-ms-input-placeholder,
:root .news-main-section{
  padding-right: 20px;
}
_:-ms-input-placeholder,
:root .index-gsgg-more p{
  width: 25px;
}
.news-article-date {
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 18px;
  color: #939393;
  line-height: 35px;
  text-align: left;
  font-style: normal;
}

.news-more-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 20px;
  color: #bc1906;
  line-height: 31px;
  letter-spacing: 1px;
  text-align: center;
  font-style: normal;
  margin-top: 40px;
}

.news-more-btn:hover {
  color: #bc1906;
}

.news-more-icon {
  width: 16px;
  height: 16px;
  margin-left: 10px;
}

/* 右侧视频部分样式改进 */
.news-side-col {
  margin-bottom: 30px;
  background-color: #f7f7f7;
}

.video-section {
  background-color: #f7f7f7;
  border-radius: 8px;
  padding-bottom: 15px;
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background-color: #bc1906;
  /* border-radius: 8px 8px 0 0; */
}

.video-title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  position: relative;
  display: flex;
  align-items: center;
}

.video-title-text {
  position: relative;
  padding-left: 0;
  font-family: PingFangSC, PingFang SC;
  font-size: 20px;
  color: #fff;
  line-height: 31px;
  text-align: left;
  font-style: normal;
}

.video-title-text::before {
  display: none;
}

.video-more {
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 20px;
}

.video-container {
  padding: 15px;
  background-color: #f7f7f7;
}

.video-featured {
  position: relative;
}

.video-featured-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
  /* border-radius: 4px; */
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-play-icon img {
  width: 60px;
  height: 60px;
}

.video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 16px;
  box-sizing: border-box;
  font-family: PingFangSC, PingFang SC;
}

.video-list-item {
  padding: 12px 0;
  border-bottom: 1px dashed #ddd;
  position: relative;
  width: 90%;
  margin: 0 auto;
  display: block;
}

.video-list-item:last-child {
  border-bottom: none;
}

.video-item-title {
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 16px;
  color: #2f2e2e;
  line-height: 35px;
  text-align: left;
  font-style: normal;
}

.video-item-title:hover {
  color: #bc1906;
}

.video-item-inactive {
  color: #666;
}

/* 工会信息部分 */
.union-section {
  /* background: #fff; */
  background-color: #f7f7f7;
  border-radius: 8px;
  padding-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
}

.union-tabs {
  display: flex;
  justify-content: space-between;
  /* padding: 15px 20px; */
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 15px;
  width: 90%;
  margin: 0 auto 15px auto;
}

.union-tabs-content {
  display: flex;
  position: relative;
}

.union-tab-group {
  position: relative;
  margin-right: 40px;
  padding: 10px 0;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 20px;
  color: #2f2e2e;
  line-height: 31px;
  letter-spacing: 1px;
  text-align: left;
  font-style: normal;
}

.union-tab {
  cursor: pointer;
  font-family: PingFangSC, PingFang SC;
  font-weight: 500;
  font-size: 18px;
  color: #2f2e2e;
  line-height: 28px;
  text-align: center;
  display: inline-block;
  position: relative;
}

.union-tab-active {
  color: #bc1906;
  font-weight: 500;
}

.union-tab-active::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #bc1906;
}

.union-tab-indicator {
  display: none;
}

.union-more {
  cursor: pointer;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 18px;
  color: #2f2e2e;
  line-height: 50px;
  text-align: left;
  font-style: normal;
  display: block;
  text-decoration: none;
}

.union-content {
  padding: 15px 0;
}

.union-publication {
  display: flex;
  gap: 15px;
  padding: 0 15px;
  text-decoration: none;
}

.union-publication-cover {
  width: 110px;
  height: 140px;
  object-fit: cover;
  border: 1px solid #eee;
}

.union-publication-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 0;
}

.union-publication-title {
  font-size: 18px;
  font-weight: 400;
  color: #2f2e2e;
  margin-bottom: 10px;
  line-height: 26px;
  cursor: pointer;
}

.union-publication-title:hover {
  color: #bc1906;
}

.union-publication-source {
  font-size: 16px;
  color: #666;
  margin-bottom: 5px;
}

.union-publication-date {
  font-size: 16px;
  color: #999;
  margin-top: auto;
}

.news-side-col:last-child {
  background: none;
}

/* 专题部分 */
.special-topic-section {
  padding-bottom: 15px;
  border: 1px solid #d8d8d8;
}

.special-topic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  width: 90%;
  margin: 0;
  background-color: #bc1906;
}

.special-topic-header div:first-child {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  position: relative;
  padding-left: 0;
  font-family: PingFangSC, PingFang SC;
  line-height: 31px;
}

.special-topic-header div:first-child::before {
  display: none;
}

.special-topic-header div:last-child {
  color: #fff;
  cursor: pointer;
  font-size: 100%;
}

.special-topic-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

.special-topic-item {
  width: 100%;
  height: 95px;
  overflow: hidden;
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
}

.special-topic-item:last-child {
  margin-bottom: 0;
}

.special-topic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 新闻标签布局修复 */
.news-tabs {
  width: 100%;
}

/* 页面整体间距微调 */
.news-container {
  max-width: 1200px;
  margin: 20px auto;
  overflow: hidden;
}

/* 修复顶部标签区域 */
.news-tabs-content {
  justify-content: space-between;
}

.news-side-row {
  width: 100%;
}

.special-title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  position: relative;
  display: flex;
  align-items: center;
}

.special-title-text {
  position: relative;
  padding-left: 0;
  font-family: PingFangSC, PingFang SC;
  font-size: 20px;
  color: #fff;
  line-height: 31px;
  text-align: left;
  font-style: normal;
}

.special-more {
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0 15px;
  border-radius: 20px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
  /* 基础容器适配 */
  .news-container {
    width: 95%;
    margin: 10px auto;
  }
  
  /* 头条新闻适配 */
  .news-feature {
    flex-direction: column;
    margin-bottom: 10px;
  }
  .news-feature__image-col,
  .news-feature__content {
    width: 100%;
  }
  .news-feature__content {
    padding: 15px;
  }
  .news-feature__title {
    font-size: 18px;
    line-height: 35px;
    margin-bottom: 10px;
  }
  .news-feature__text {
    font-size: 14px;
    line-height: 24px;
    margin-top: 10px;
    -webkit-line-clamp: 4;
  }
  
  /* 公示公告适配 */
  .news-notice {
    padding: 15px 0;
    margin: 20px auto 0;
  }
  .news-notice-img {
    margin-right: 15px;
  }
  .news-notice-img-icon {
    margin-left: 15px;
  }
  .news-notice-list {
    gap: 15px 0;
    min-height: auto;
  }
  .news-notice-item {
    width: 100%;
    font-size: 14px;
  }
  .news-notice-item span,
  .news-notice-title {
    font-size: 14px;
    line-height: 28px;
  }
  .news-notice-date {
    font-size: 12px;
    line-height: 28px;
    margin-left: 10px;
  }
  .news-notice-more {
    width: 30px;
    height: 60px;
    font-size: 14px;
    right: 10px;
  }
  
  /* 新闻内容区域适配 */
  .news-tabs-content {
    flex-direction: column;
    gap: 15px;
    width: 95%;
    margin: 10px auto;
  }
  .news-main-section {
    width: 100%;
    padding: 0;
  }
  .news-side-section {
    width: 100%;
  }
  
  /* 新闻标签适配 */
  .news-tabs-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .news-tab-item {
    width: auto;
    padding: 10px 15px;
    font-size: 16px;
    flex-shrink: 0;
  }
  
  /* 新闻文章适配 */
  .news-article {
    padding: 15px 10px;
  }
  .news-article-item {
    flex-direction: column;
    gap: 10px;
  }
  .news-article-img-box {
    width: 100%;
    height: auto;
  }
  .news-article-title {
    font-size: 16px;
    line-height: 30px;
  }
  .news-article-text {
    font-size: 14px;
    line-height: 24px;
  }
  .news-article-date {
    font-size: 14px;
    line-height: 24px;
  }
  .news-more-btn {
    font-size: 16px;
    margin-top: 20px;
    padding-right: 10px;
  }
  
  /* 视频区域适配 */
  .video-section {
    padding-bottom: 10px;
  }
  .video-header {
    padding: 10px 15px;
  }
  .video-title-text {
    font-size: 16px;
  }
  .video-featured-img {
    height: 180px;
  }
  .video-play-icon {
    width: 40px;
    height: 40px;
  }
  .video-play-icon img {
    width: 40px;
    height: 40px;
  }
  .video-caption {
    font-size: 14px;
    padding: 8px 10px;
  }
  .video-list-item {
    width: 95%;
    padding: 8px 0;
  }
  .video-item-title {
    font-size: 14px;
    line-height: 24px;
  }
  
  /* 工会信息适配 */
  .union-tabs {
    width: 95%;
  }
  .union-tab-group {
    font-size: 16px;
    margin-right: 20px;
  }
  .union-tab {
    font-size: 14px;
  }
  .union-more {
    font-size: 14px;
    line-height: 30px;
  }
  .union-publication {
    flex-direction: column;
    gap: 10px;
  }
  .union-publication-cover {
    width: 100%;
    height: auto;
    max-height: 200px;
  }
  .union-publication-title {
    font-size: 16px;
    line-height: 24px;
  }
  .union-publication-source,
  .union-publication-date {
    font-size: 14px;
  }
  
  /* 专题部分适配 */
  .special-topic-header {
    padding: 10px 15px;
    width: 100%;
  }
  .special-topic-header div:first-child {
    font-size: 16px;
  }
  .special-topic-item {
    height: 80px;
  }
}

@media screen and (max-width: 480px) {
  .news-feature__title {
    font-size: 16px;
    line-height: 28px;
  }
  .news-feature__text {
    font-size: 13px;
    line-height: 22px;
  }
  .video-featured-img {
    height: 150px;
  }
  .special-topic-item {
    height: 70px;
  }
}