.jmain {
  width: 1024px !important;
}

.jmain .menu {
  border-radius: 0;
}

.ui.jmain.container .menu {
  display: flex;
  justify-content: center;
  /* 居中所有导航项目 */
  padding: 0 20px;
  /* 左右各留 20px 的空白 */
}

section {}

#navbar {
  position: relative;
  width: 100%;
  z-index: 1000;
  transition: top 0.3s;
}

#navbar.sticky {
  position: fixed;
  top: 0;
  width: 1024px;
  left: 50%;
  transform: translateX(-50%);
}

#navbar.a.active {
  background-color: #4CAF50;
}

.carousel-container {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  text-align: center;
  /* 居中对齐所有内容 */
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  display: block;
  /* 确保图片独占一行，避免与文字混排 */
}

.carousel-slide h3 {
  position: absolute;
  bottom: 60px;
  /* 调整标题位置，避免遮挡分页指示器 */
  width: 100%;
  margin-top: 1em;
  color: #ffffff;
  /* 标题颜色 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* 添加阴影，提高可读性 */
}

.carousel-slide p {
  position: absolute;
  bottom: 40px;
  /* 调整段落位置 */
  width: 100%;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

.carousel-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background-color: #ffffff;
}

.jmain .segment {
  width: 100% !important;
}

.jmain .carousel-slide .ui.header {
  margin-bottom: 18px;
  padding: 5px;
  background: #ffffff7d;
}

section#top {
  height: auto;
}

section#top .ui.segment {
  border-radius: 0;
}

.logo {
  padding-right: 0 !important;
}

.logotextt {
  font-size: 21px;
  margin-bottom: 0;
  margin-top: 10px !important;
}

.logotextb {
  font-size: 25px;
  margin-top: 0;
}

.logotext {
  padding-left: 0 !important;
}

@media only screen and (min-width: 992px) {
  .ui.container {
    max-width: 1024px !important;
  }
}

.language .image {
  display: inline-block !important;
}


.news-list {
  width: 100%;
  /* 宽度 */
  margin: 20px auto;
  /* 外边距 */
}

.news-item {
  border-bottom: 1px solid #ccc;
  /* 底部边框 */
  padding: 15px 0;
  /* 内边距 */
  margin-bottom: 15px;
  /* 底部外边距 */
}

.news-title {
  font-size: 1.2em;
  /* 字体大小 */
  color: #333;
  /* 字体颜色 */
  margin: 0;
  /* 外边距 */
}

.news-date {
  font-size: 0.9em;
  /* 字体大小 */
  color: #666;
  /* 字体颜色 */
  margin: 5px 0;
  /* 外边距 */
}

.news-summary {
  font-size: 1em;
  /* 字体大小 */
  color: #555;
  /* 字体颜色 */
  line-height: 1.5;
  /* 行高 */
}

/* 自定义样式 (可选) */
.ui.divided.items .item .content .header {
  font-weight: bold;
}

.ui.divided.items .item .content .meta .date {
  color: #999;
  /* 调整日期颜色 */
  display: block;
  /* 使日期单独占一行 */
}

.ui.divided.items .item .content .description p {
  color: #555;
  /* 调整描述文本颜色 */
}

.ui.items>.item>.content>.description {
  margin-top: 0;
}

.centered-title {
  text-align: center;
  /* 确保标题内部的文本居中 */
  margin: 0 auto 2em auto;
  /* 使用 margin: 0 auto; 实现块级元素居中 */
}

/* 确保标题的 sub header 也能居中 */
.centered-title .ui.header .sub.header {
  text-align: center;
}

.ui.segment[class*="bottom attached"]:last-child {
  margin-bottom: 1rem;
}


/* 移除所有单元格的侧边框，并保留底部边框 */
.ui.celled.table.styled-table th,
.ui.celled.table.styled-table td {
  border-top: none !important;
  padding: 1em;
}

.ui.celled.table.styled-table th {
  width: 150px;
}

/* 确保单元格底部有分隔线 */
.ui.celled.table.styled-table tr:not(:last-child) th,
.ui.celled.table.styled-table tr:not(:last-child) td {
  border-bottom: 1px solid rgba(34, 36, 38, .1) !important;
}

.ui.Massive.rounded.image {
  width: 100%;
}

#news h3 {
  margin-top: .6em;
  margin-bottom: .6em;
}

#news p {
  margin-bottom: .5em;
}