.home-page {
  padding: 30px 0 12px;
}

.site-container {
  width: min(1500px, calc(100% - 64px));
  margin: 0 auto;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

.carousel {
  position: relative;
  display: flex;
  min-width: 0;
}

.carousel-frame {
  position: relative;
  flex: 1 1 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #d7dfe1;
  background: #d32c16;
}

.carousel-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fade-in 350ms ease;
}

.carousel-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 49px;
  padding: 8px 140px 8px 18px;
  background: linear-gradient(to top, rgb(49 13 13 / 84%), rgb(49 13 13 / 18%));
  color: #fff;
  font-family: 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.carousel-caption span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.carousel-control {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 7%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: background-color 160ms ease, opacity 160ms ease;
}

.carousel-control::after {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  content: '';
}

.carousel-control.previous {
  left: 0;
}

.carousel-control.previous::after {
  left: 50%;
  transform: translate(-35%, -50%) rotate(-135deg);
}

.carousel-control.next {
  right: 0;
}

.carousel-control.next::after {
  left: 50%;
  transform: translate(-65%, -50%) rotate(45deg);
}

.carousel-frame:hover .carousel-control,
.carousel-control:focus-visible {
  background: rgb(35 12 12 / 28%);
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 50%;
  background: rgb(255 255 255 / 60%);
  cursor: pointer;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 5px;
  background: #f08200;
}

@keyframes fade-in {
  from {
    opacity: 0.78;
  }

  to {
    opacity: 1;
  }
}

.content-section {
  margin-top: 30px;
  background: transparent;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  border-bottom: 2px solid #c51807;
}

.section-heading > span {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 148px;
  padding: 0 28px 0 53px;
  background-position: 16px center;
  background-repeat: no-repeat;
  background-size: 35px auto;
  color: #fff;
  font-family: 'Microsoft YaHei', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 50px;
}

.section-heading > span::after {
  position: absolute;
  right: -15px;
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  content: '';
}

.section-heading a {
  padding: 0;
  margin-right: 18px;
  color: #c51807;
  font-family: inherit;
  font-size: 14px;
  line-height: inherit;
}

.section-heading a:hover {
  color: #c6421d;
}

.heading-blue > span,
.heading-orange > span,
.heading-red > span,
.heading-teal > span {
  background-color: #c51807;
  background-image: url('../assets/xiuqiu.png');
}

.heading-blue > span::after,
.heading-orange > span::after,
.heading-red > span::after,
.heading-teal > span::after {
  border-left: 15px solid #c51807;
}

.news-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-list li {
  border-bottom: 1px solid #e5ebef;
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  color: #3f4d55;
}

.news-list a::before {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d87915;
  content: '';
}

.news-list span {
  min-width: 0;
  overflow: hidden;
  font-family: 'Microsoft YaHei', sans-serif;
  font-size: 18px;
  text-overflow: clip;
  white-space: nowrap;
}

.news-list time {
  flex: none;
  margin-left: auto;
  color: #333;
  font-family: 'Microsoft YaHei', sans-serif;
  font-size: 14px;
}

.news-list a:hover span {
  color: #000;
}

.feature-news {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 18px 10px;
  margin-top: 0;
  border: 1px solid #d7dfe1;
  background: rgb(255 255 255 / 88%);
}

.feature-news .compact-list {
  flex: 1 1 auto;
}

.compact-list {
  padding: 0;
}

.compact-list a {
  min-height: 42px;
}

.compact-list li {
  border-bottom: 0;
}

.compact-list a::before {
  display: none;
}

.compact-list span,
.compact-list time {
  color: #333;
}

.home-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.compact-section {
  min-width: 0;
  margin-top: 20px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.support-grid > * {
  min-width: 0;
}

.support-grid > .content-section,
.support-grid > .reporting-section {
  margin-top: 0;
}

.reporting-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 18px;
  background: #fff;
}

.reporting-title {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 19px 12px;
}

.reporting-emblem {
  display: grid;
  flex: none;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid #bd3d2b;
  border-radius: 50%;
  color: #bd3d2b;
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 23px;
  font-weight: 700;
}

.reporting-title h2 {
  display: none;
}

.reporting-title p,
.reporting-details p {
  margin: 4px 0 0;
  color: #6c554e;
  font-size: 13px;
  line-height: 1.55;
}

.reporting-details {
  padding: 11px 0;
  margin: 0 19px;
  overflow-wrap: anywhere;
  border-top: 1px solid #eadbd5;
}

/* 友情链接单独占一行：整行宽度变大，链接改为横向排列、超出自动换行 */
.friends-section {
  margin-top: 20px;
  padding-bottom: 12px;
}

.friend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 34px;
  padding: 12px 0 0;
}

.friend-list a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 38px;
  overflow: hidden;
  color: #507079;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}

.friend-list a:hover {
  color: #26898d;
}

.channel-empty {
  padding: 34px 12px;
  color: #7b8587;
  font-size: 15px;
  text-align: center;
}

@media (max-width: 1199px) {
  .feature-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 20px;
  }

  .home-list-grid,
  .support-grid {
    gap: 10px;
  }
}

@media (min-width: 1200px) {
  .home-list-grid,
  .support-grid {
    gap: 28px;
  }
}

@media (min-width: 901px) {
  .carousel-frame {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 900px) {
  .feature-layout {
    grid-template-columns: 1fr;
  }

  .carousel {
    display: block;
  }

  .carousel-frame {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .feature-news {
    margin-top: 20px;
  }

  .home-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-page {
    padding-top: 40px;
  }

  .site-container {
    width: min(calc(100% - 30px), 620px);
  }

  .carousel-frame {
    aspect-ratio: 16 / 10;
  }

  .carousel-caption {
    min-height: 44px;
    padding: 7px 105px 7px 12px;
    font-size: 14px;
  }

  .carousel-control {
    width: 9%;
    opacity: 0.82;
  }

  .carousel-control::after {
    width: 11px;
    height: 11px;
    border-width: 2px;
  }

  .carousel-dots {
    right: 12px;
    bottom: 15px;
    gap: 5px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dot.active {
    width: 19px;
  }

  .content-section {
    margin-top: 28px;
  }

  .section-heading {
    position: relative;
    min-height: 50px;
    height: 50px;
    align-items: flex-start;
  }

  .section-heading > span {
    position: absolute;
    top: 0;
    left: 0;
    height: 50px;
    min-width: 148px;
    padding: 0 15px 0 60px;
    font-size: 18px;
    line-height: 50px;
  }

  .section-heading > span::after {
    right: -15px;
    border-top-width: 23px;
    border-bottom-width: 23px;
    border-left-width: 15px;
  }

  .section-heading a {
    display: block;
    flex: none;
    width: 50px;
    height: 40px;
    padding-top: 10px;
    margin: 0 0 0 auto;
    font-family: 'Helvetica Neue', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
  }

  .feature-news {
    padding: 0 12px 8px;
  }

  .feature-news .section-heading {
    margin: 0 -12px;
  }

  .news-list a,
  .compact-list a {
    min-height: 42px;
    gap: 8px;
    line-height: 42px;
  }

  .news-list span {
    flex: 1 1 auto;
    font-size: 18px;
    line-height: 42px;
    text-overflow: clip;
  }

  .news-list time {
    font-size: 14px;
    line-height: 42px;
  }

  .home-list-grid,
  .support-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* .friends-section 必须排在 .content-section 之后，否则会被它的 28px 反超 */
  .compact-section,
  .support-grid,
  .friends-section {
    margin-top: 20px;
  }

  .support-grid .reporting-section,
  .support-grid .content-section {
    margin-top: 0;
  }
}


/* ==========================================================================
   平台“变换图片文章V2”组件：外观对齐本地轮播设计
   组件真实层级（JS u_u1_init_img() 运行时生成）：
     .carousel > .carousel-frame > table > tbody > tr > td > #u_u1_centerCutImg
   注意 table 位于 .carousel-frame 内部，不是 .carousel 的直接子元素，
   且组件把尺寸全写死在内联 style / HTML 属性上：
     table 收缩为 250px、画框 250x165、img 带 width="250" height="165"、
     标题栏 250x25 —— 因此下面全部用 !important 覆盖，并显式把 table 撑满画框。
   （规则均以 .carousel-frame 限定，不影响本地 .carousel-frame 结构）
   ========================================================================== */
/* 组件输出的隐藏摘要占位 div（无 class 无 id，内联 height:0px / width:250px）
   在画框内占位，直接隐藏。必须同时排除带 class 的 div：本地 .carousel-frame
   的直接子 div 都带 class（.carousel-caption / .carousel-dots），只用 :not([id])
   会把它们一起隐藏掉 */
.carousel-frame > div:not([class]):not([id]) {
  display: none !important;
  width: 0 !important;
}

.carousel-frame > table {
  position: relative;
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  border: 0;
}

.carousel-frame > table > tbody {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-frame > table > tbody > tr {
  display: block;
  width: 100%;
  height: 100%;
}

/* 最后一行是标题行：里面的 div 已绝对定位拉到画框底部，本身不占高度 */
.carousel-frame > table > tbody > tr:last-child {
  height: auto;
}

.carousel-frame > table > tbody > tr > td {
  display: block;
  width: 100% !important;
  height: 100% !important;
  padding: 0;
}

/* 画框：高度跟随 .carousel-frame（宽屏下由右侧列表撑高，与小屏自动比例两头兼顾）
   内联写死的 165px 必须覆盖，否则宽屏会出现下方露出红色底板 */
.carousel #u_u1_centerCutImg {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  border: 1px solid #d7dfe1;
  background: #d32c16;
}

.carousel #u_u1_div,
.carousel #u_u1_imgdiv {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  filter: none;
}

/* 图片外面包了一层 <a id="u_u1_url">，默认 inline，需转块级并撑满 */
.carousel #u_u1_url {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel #u_u1_pic {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* 标题：由图片下方拉到图片底部，做成本地样式的渐变标题条 */
.carousel-frame > table > tbody > tr:last-child > td > div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  width: auto !important;
  height: auto !important;
  min-height: 49px;
  padding: 8px 140px 8px 18px;
  background: linear-gradient(to top, rgb(49 13 13 / 84%), rgb(49 13 13 / 18%));
  text-align: left;
}

.carousel #u_u1_newstitle {
  display: -webkit-box;
  overflow: hidden;
  color: #fff !important;
  font-family: 'Microsoft YaHei', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  text-align: left;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 数字按钮（1-6）伪装成本地圆点指示器，仍可点击切换 */
.carousel #u_u1_centerCutImg > div:last-child {
  position: absolute !important;
  top: auto !important;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none;
  border: 0;
  filter: none;
  text-align: left;
}

.carousel .imagechangenews_pnode,
.carousel .imagechangenews_fnode {
  display: block;
  width: 9px;
  height: 9px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 50%;
  background: rgb(255 255 255 / 60%);
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none;
}

.carousel .imagechangenews_fnode {
  width: 24px;
  border-radius: 5px;
  background: #f08200;
}
