* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  outline: none;
  border: none;
}

.content {
  width: 100%;
  padding: 17px min(9.375vw, 140px) 65px;
}

.news-container {
  display: flex;
}
.news-container-left-top {
  width: 100%;
}
.news-container-left {
  width: 284px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.news-center-title {
  width: 100%;
  height: 87px;
  background: #1c62c2;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 20px 0px 24px 34px;
}
.news-center-title span {
  font-family: Microsoft YaHei;
  font-weight: bold;
  font-size: 18px;
  line-height: 18px;
  height: 18px;
  color: #ffffff;
  margin-bottom: 12px;
}
.news-center-title span:last-child {
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
  height: 13px;
  line-height: 13px;
}

.news-center-content-tabs {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
  margin-top: 15px;
  background: #f7f9fa;
  height: 664px;
  overflow-y: auto;
}

.news-center-content-tabs a {
  width: 100%;
}

.news-center-content-tabs-item {
  width: 100%;
  font-family: NotoSansHans;
  font-weight: 500;
  font-size: 20px;
  color: #4a4a4a;
  line-height: 80px;
  height: 80px;
  padding-left: 34px;
}
.news-center-content-tabs-item:hover {
  background: #dae7fa;
}

.news-center-content-tabs-item.active {
  background: #dae7fa;
  position: relative;
}
.news-center-content-tabs-item.active::before {
  content: "";
  display: block;
  width: 4px;
  height: 100%;
  background: #459bff;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.news-container-right {
  width: calc(100% - 284px - 20px);
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-left: 20px;
}

.news-list {
  padding-top: 23px;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  max-height: 100%;
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

.news-list-item {
  width: 100%;
  display: flex;
  align-items: center;
  height: 54px;
  background: #fff;
  padding-left: 24px;
  padding-right: 28px;
}

.news-list-item-right-title {
  width: 83%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: -moz-box;
}

.news-list-item a {
  font-family: NotoSansHans;
  font-weight: 400;
  font-size: 18px;
  color: #212329;
  line-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block !important;
  width: 100%;
}

.news-list-item a {
  font-family: NotoSansHans;
  font-weight: 400;
  font-size: 18px;
  color: #212329;
  line-height: 30px;
}
.news-list-item .iconfont {
  width: 14px;
  height: 14px;
  font-size: 14px;
  color: #8a8a8a;
  margin-right: 10px;
  margin-bottom: 4px;
}
.news-list-item .news-list-item-right-time {
  font-family: NotoSansHans;
  font-weight: 400;
  font-size: 16px;
  color: #626262;
  margin-left: auto;
}

/* 单数变成灰色 */
.news-list-item:nth-child(odd) {
  background: #f7f9fa;
}
/* 鼠标hover */
.news-list-item:hover {
  background: #dae7fa;
}
.news-list-item:hover a {
  color: #1c62c2;
}
.news-list-item:hover .iconfont {
  color: #1c62c2;
}
.news-list-item:hover .news-list-item-right-time {
  color: #1c62c2;
}

.news-title {
  width: 100%;
  height: 74px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  font-family: NotoSansHans;
  font-weight: bold;
  font-size: 20px;
  color: #4a4a4a;
  padding-left: 24px;
  line-height: 74px;
  margin-bottom: 14px;
}

/* 下属团场样式 */
.subordinate {
  width: 100%;
  margin-bottom: 15px;
}

#swiper-container-subordinate {
  display: flex;
  align-items: center;
  justify-content: center;
}

#swiper-container-subordinate .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

#swiper-container-subordinate .swiper-slide a {
  width: 100%;
  height: 100%;
}

#swiper-container-subordinate .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#swiper-container-subordinate .swiper-slide p {
  height: 17px;
  font-family: NotoSansHans;
  font-weight: 500;
  font-size: 18px;
  color: #383333;
  line-height: 30px;
}
#swiper-container-subordinate:hover .custom-swiper-btn {
  display: flex;
}
.custom-swiper-btn {
  width: 32px;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0 2px 2px 0;
  position: absolute;
  top: 40%;
  z-index: 10;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.swiper-button-prev.custom-swiper-btn {
  left: 0;
  color: #fff !important;
}

.swiper-button-next.custom-swiper-btn {
  right: 0;
  color: #fff !important;
}

.swiper-button-prev.custom-swiper-btn::after {
  content: "";
}

.swiper-button-next.icon-zuo:before {
  transform: rotate(180deg);
}

.swiper-button-next.custom-swiper-btn::after {
  content: "";
}

.archiving-topic {
  margin-top: 24px;
}

.archiving-topic-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
}

.archiving-topic-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.archiving-topic-content-item-title {
  padding: 12px;
  background: #f7f9fa;
  border-radius: 4px;
  font-size: 20px;
  line-height: 1.5;
  transition: all 0.3s;
}

.archiving-topic-content-item-title:hover {
  background: #dae7fa;
  color: #1c62c2;
}

.archiving-topic-content a {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* 响应式布局 */
@media screen and (max-width: 1300px) {
  .archiving-topic-content {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-list-item-right-title {
    width: 76%;
  }
}

@media screen and (max-width: 768px) {
  .archiving-topic-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .archiving-topic-content-item-title {
    font-size: 14px;
    padding: 10px;
  }
}

@media screen and (max-width: 480px) {
  .archiving-topic-content {
    gap: 12px;
  }

  .archiving-topic-content-item-title {
    font-size: 13px;
    padding: 8px;
  }
}

/* ========== 移动端适配样式 ========== */

/* 平板设备 (768px - 1023px) */
@media screen and (max-width: 1023px) and (min-width: 768px) {
  .content {
    padding: 15px 20px 50px;
  }
  
  .news-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .news-container-left {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .news-container-left-top{
    width: 50% !important;
  }
  
  .news-center-title {
    width: 55%;
    height: 60px;
    padding: 15px 20px;
  }
  
  .news-center-title span {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .news-center-title span:last-child {
    font-size: 14px;
  }
  
  .news-center-content-tabs {
    width: 48%;
    height: 60px;
    flex-direction: row;
    margin-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .news-center-content-tabs-item {
    min-width: 120px;
    height: 60px;
    line-height: 60px;
    padding-left: 20px;
    font-size: 16px;
    white-space: nowrap;
  }
  
  .news-container-right {
    width: 100%;
    margin-left: 0;
  }
  
  .news-list-item {
    height: 50px;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .news-list-item a {
    font-size: 16px;
  }
  
  .news-list-item .news-list-item-right-time {
    font-size: 14px;
  }
  
  .archiving-topic-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .archiving-topic-content-item-title {
    font-size: 16px;
    padding: 12px;
  }
}

/* 大手机设备 (480px - 767px) */
@media screen and (max-width: 767px) and (min-width: 480px) {
  .content {
    padding: 12px 15px 40px;
  }
  .news-container-left-top{
    width: 50% !important;
  }
  .news-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .news-container-left {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  
  .news-center-title {
    width: 100%;
    height: 50px;
    padding: 12px 15px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .news-center-title span {
    font-size: 14px;
    margin-bottom: 0;
    margin-right: 10px;
  }
  
  .news-center-title span:last-child {
    font-size: 12px;
  }
  
  .news-center-content-tabs {
    width: 100%;
    height: 50px;
    flex-direction: row;
    margin-top: 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .news-center-content-tabs-item {
    min-width: 100px;
    height: 50px;
    line-height: 50px;
    padding-left: 15px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  .news-container-right {
    width: 100%;
    margin-left: 0;
  }
  
  .news-list {
    padding-top: 15px;
    gap: 8px;
  }
  
  .news-list-item {
    height: 45px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .news-list-item a {
    font-size: 14px;
    line-height: 20px;
  }
  
  .news-list-item .iconfont {
    width: 12px;
    height: 12px;
    font-size: 12px;
    margin-right: 8px;
  }
  
  .news-list-item .news-list-item-right-time {
    font-size: 12px;
  }
  
  .news-list-item-right-title {
    width: 70%;
  }
  
  .archiving-topic {
    margin-top: 20px;
  }
  
  .archiving-topic-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .archiving-topic-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .archiving-topic-content-item-title {
    font-size: 14px;
    padding: 10px;
    line-height: 1.4;
  }
  
  /* Swiper 移动端优化 */
  #swiper-container-subordinate .swiper-slide {
    height: 120px;
  }
  
  .custom-swiper-btn {
    width: 28px;
    height: 50px;
    top: 55%;
  }
}

/* 小手机设备 (320px - 479px) */
@media screen and (max-width: 479px) {
  .content {
    padding: 10px 12px 30px;
  }
  
  .news-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .news-container-left {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  
  .news-center-title {
    width: 100%;
    height: 45px;
    padding: 10px 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .news-center-title span {
    font-size: 13px;
    margin-bottom: 0;
    margin-right: 8px;
  }
  
  .news-center-title span:last-child {
    font-size: 11px;
  }
  
  .news-center-content-tabs {
    width: 100%;
    height: 45px;
    flex-direction: row;
    margin-top: 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .news-center-content-tabs-item {
    min-width: 80px;
    height: 45px;
    line-height: 45px;
    padding-left: 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  
  .news-container-right {
    width: 100%;
    margin-left: 0;
  }
  
  .news-list {
    padding-top: 12px;
    gap: 6px;
  }
  
  .news-list-item {
    height: 40px;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .news-list-item a {
    font-size: 13px;
    line-height: 18px;
  }
  
  .news-list-item .iconfont {
    width: 10px;
    height: 10px;
    font-size: 10px;
    margin-right: 6px;
  }
  
  .news-list-item .news-list-item-right-time {
    font-size: 11px;
  }
  
  .news-list-item-right-title {
    width: 65%;
  }
  
  .archiving-topic {
    margin-top: 15px;
  }
  
  .archiving-topic-title {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .archiving-topic-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .archiving-topic-content-item-title {
    font-size: 13px;
    padding: 8px;
    line-height: 1.3;
  }
  
  /* Swiper 小屏优化 */
  #swiper-container-subordinate .swiper-slide {
    height: 100px;
  }
  
  .custom-swiper-btn {
    width: 24px;
    height: 40px;
  }
  
  /* 分页移动端优化 */
  .customBootstrap {
    text-align: center;
    margin-top: 15px;
  }
  
  .pagination>li>a,
  .pagination>li>span {
    font-size: 12px;
    padding: 6px 10px;
    margin: 0 2px;
  }
}

/* 超小屏幕设备 (320px以下) */
@media screen and (max-width: 319px) {
  .content {
    padding: 8px 10px 25px;
  }
  
  .news-center-title {
    height: 40px;
    padding: 8px 10px;
  }
  
  .news-center-title span {
    font-size: 12px;
  }
  
  .news-center-title span:last-child {
    font-size: 10px;
  }
  
  .news-center-content-tabs {
    height: 40px;
  }
  
  .news-center-content-tabs-item {
    min-width: 70px;
    height: 40px;
    line-height: 40px;
    padding-left: 10px;
    font-size: 12px;
  }
  
  .news-list-item {
    height: 35px;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .news-list-item a {
    font-size: 12px;
    line-height: 16px;
  }
  
  .news-list-item .iconfont {
    width: 8px;
    height: 8px;
    font-size: 8px;
    margin-right: 5px;
  }
  
  .news-list-item .news-list-item-right-time {
    font-size: 10px;
  }
  
  .news-list-item-right-title {
    width: 60%;
  }
  
  .archiving-topic-content-item-title {
    font-size: 12px;
    padding: 6px;
  }
  
  #swiper-container-subordinate .swiper-slide {
    height: 80px;
  }
  
  .custom-swiper-btn {
    width: 20px;
    height: 35px;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .news-center-content-tabs-item:hover {
    background: transparent;
  }
  
  .news-center-content-tabs-item:active {
    background: #dae7fa;
  }
  
  .news-list-item:hover {
    background: inherit;
  }
  
  .news-list-item:active {
    background: #dae7fa;
  }
  
  .news-list-item:active a {
    color: #1c62c2;
  }
  
  .news-list-item:active .iconfont {
    color: #1c62c2;
  }
  
  .news-list-item:active .news-list-item-right-time {
    color: #1c62c2;
  }
  
  .archiving-topic-content-item-title:hover {
    background: #f7f9fa;
  }
  
  .archiving-topic-content-item-title:active {
    background: #dae7fa;
    color: #1c62c2;
  }
  
  /* 增加触摸目标大小 */
  .news-center-content-tabs-item {
    min-height: 44px;
  }
  
  .news-list-item {
    min-height: 44px;
  }
  
  .archiving-topic-content-item-title {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* 横屏模式优化 */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .content {
    padding: 8px 15px 20px;
  }
  
  .news-container-left {
    flex-direction: row;
    gap: 15px;
  }
  
  .news-center-title {
    width: auto;
    flex: 1;
  }
  
  .news-center-content-tabs {
    width: auto;
    flex: 2;
  }
  
  .archiving-topic {
    margin-top: 10px;
  }
  
  .archiving-topic-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .news-list-item .iconfont {
    transform: scale(1.1);
  }
  
  .custom-swiper-btn {
    transform: scale(1.1);
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .news-list-item,
  .archiving-topic-content-item-title,
  .custom-swiper-btn {
    transition: none;
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .news-list-item:nth-child(odd) {
    background: #e0e0e0;
  }
  
  .news-list-item:hover,
  .news-list-item:active {
    background: #b0b0b0;
  }
  
  .archiving-topic-content-item-title {
    border: 1px solid #000;
  }
}

/* ========== 移动端性能优化 ========== */

/* 移动端滚动优化 */
@media screen and (max-width: 767px) {
  .news-center-content-tabs {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  
  .news-center-content-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  /* 优化触摸滚动性能 */
  .news-list,
  .archiving-topic-content {
    -webkit-overflow-scrolling: touch;
  }
  
  /* 减少重绘和重排 */
  .news-list-item,
  .archiving-topic-content-item-title {
    will-change: auto;
    transform: translateZ(0);
  }
}

/* 移动端字体渲染优化 */
@media screen and (max-width: 767px) {
  .news-list-item a,
  .news-center-content-tabs-item,
  .archiving-topic-content-item-title {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
}

/* 移动端图片优化 */
@media screen and (max-width: 767px) {
  #swiper-container-subordinate .swiper-slide img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* 移动端加载状态优化 */
@media screen and (max-width: 767px) {
  .news-list-item {
    opacity: 1;
    transition: opacity 0.2s ease;
  }
  
  .news-list-item.loading {
    opacity: 0.6;
  }
}

/* 移动端焦点状态优化 */
@media screen and (max-width: 767px) {
  .news-center-content-tabs-item:focus,
  .news-list-item:focus,
  .archiving-topic-content-item-title:focus {
    outline: 2px solid #1c62c2;
    outline-offset: 2px;
  }
}

/* 移动端无障碍优化 */
@media screen and (max-width: 767px) {
  .news-list-item {
    position: relative;
  }
  
  .news-list-item a:focus {
    outline: 2px solid #1c62c2;
    outline-offset: 2px;
  }
  
  /* 增加点击区域 */
  .news-list-item a {
    padding: 8px 0;
    display: block;
  }
}

/* 移动端电池优化 */
@media screen and (max-width: 767px) {
  /* 减少不必要的动画 */
  .news-list-item:hover,
  .archiving-topic-content-item-title:hover {
    transition: none;
  }
  
  /* 优化阴影渲染 */
  .archiving-topic-content-item-title {
    box-shadow: none;
  }
  
  .archiving-topic-content-item-title:active {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
}

/* 移动端网络优化 */
@media screen and (max-width: 767px) {
  /* 预加载关键资源 */
  .news-list-item a {
    contain: layout style paint;
  }
  
  /* 减少DOM查询 */
  .news-container {
    contain: layout style;
  }
}

/* 移动端内存优化 */
@media screen and (max-width: 767px) {
  /* 使用transform代替top/left */
  .custom-swiper-btn {
    transform: translateZ(0);
    top: 55%;
  }
  
  /* 避免创建新的层叠上下文 */
  .news-list-item {
    isolation: isolate;
  }
}

/* 移动端调试样式（开发时使用） */
@media screen and (max-width: 767px) {
  /* 显示触摸目标边界 */
  .debug-touch-targets .news-center-content-tabs-item,
  .debug-touch-targets .news-list-item,
  .debug-touch-targets .archiving-topic-content-item-title {
    border: 1px solid red;
  }
  
  /* 显示视口信息 */
  .debug-viewport::before {
    content: "Mobile View";
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    z-index: 9999;
  }
}
