/* 青海省机关党建网——二十届五中全会专题页静态样式 */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #333333;
  background: #FFFFFF;
  font-family: "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-shell {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 上部分：红金背景图 */
.special-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #B91C1C url("../images/special-hero-bg.png") center 52% / cover no-repeat;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-inner h1 {
  color: #FFF3C4;
  font-family: "Source Han Serif SC", SimSun, FangSong, serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-shadow: 0 3px 12px rgba(105, 0, 0, 0.45);
}

.hero-inner h1 span {
  display: block;
}

.main-content {
  padding-bottom: 48px;
  background: #F7F4EF;
}

/* 权威发布 */
.authority-section {
  padding-top: 32px;
}

.authority-panel {
  padding: 24px 28px;
  color: #FFFFFF;
  background: #A9342A;
  box-shadow: 0 8px 24px -16px rgba(169, 52, 42, 0.6);
}

.authority-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.25);
}

.authority-heading h2 {
  color: #FFFFFF;
  font-family: "Source Han Serif SC", SimSun, FangSong, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.heading-line {
  width: 128px;
  height: 1px;
}

.heading-line-left {
  background: linear-gradient(to right, transparent, rgba(201, 162, 75, 0.8));
}

.heading-line-right {
  background: linear-gradient(to left, transparent, rgba(201, 162, 75, 0.8));
}

.heading-diamond {
  width: 8px;
  height: 8px;
  background: #C9A24B;
  transform: rotate(45deg);
}

.authority-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.authority-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 0 24px;
  border: 1px solid rgba(201, 162, 75, 0.3);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.authority-card:hover {
  border-color: rgba(201, 162, 75, 0.7);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}

.authority-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.authority-card-subtitle {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.card-arrow {
  flex-shrink: 0;
  margin-left: 16px;
  color: #E5C982;
  font-size: 22px;
  transition: transform 180ms ease;
}

.authority-card:hover .card-arrow {
  transform: translateX(4px);
}

/* 图片新闻：左侧轮播，右侧新闻资讯 */
.carousel-section {
  margin-top: 32px;
}

.news-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
  align-items: stretch;
}

.news-carousel {
  position: relative;
  height: 420px;
  overflow: hidden;
  border: 1px solid rgba(216, 201, 167, 0.5);
  border-radius: 3px;
  background: #E8DFCE;
  box-shadow: 0 8px 24px -18px rgba(70, 48, 30, 0.5);
}

.carousel-slide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 720px;
  max-width: calc(100% - 48px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 700ms ease;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 80px 24px 24px;
  color: #FFFFFF;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.45), transparent);
}

.carousel-caption h3 {
  max-width: 850px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.carousel-caption p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.25);
  font-size: 30px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 180ms ease;
}

.carousel-arrow:hover {
  background: rgba(139, 26, 26, 0.8);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-list-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 24px;
  border: 1px solid #E8E2D8;
  background: #FFFFFF;
}

.news-list-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E8E2D8;
}

.news-list-heading > span {
  width: 4px;
  height: 20px;
  background: #C9A24B;
}

.news-list-heading h2 {
  color: #8B1A1A;
  font-family: "Source Han Serif SC", SimSun, FangSong, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.news-list-content {
  flex: 1;
}

.news-list-item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px dashed #DDD5C7;
}

.news-list-item:last-child {
  border-bottom: 0;
}

.news-list-item h3 {
  display: -webkit-box;
  overflow: hidden;
  color: #333333;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 180ms ease;
}

.news-list-item:hover h3 {
  color: #8B1A1A;
}

.news-list-item p {
  margin-top: 8px;
  color: #999999;
  font-size: 12px;
}

.news-list-more {
  padding-top: 8px;
  text-align: right;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.carousel-dot:hover {
  background: #FFFFFF;
}

.carousel-dot.active {
  width: 28px;
  background: #C9A24B;
}

/* 交流·动态 */
.exchange-section {
  width: calc(100% - 40px);
  max-width: 1160px;
  margin: 32px auto 0;
  padding: 28px;
  border-bottom: 1px solid #EEEEEE;
  background: #FFFFFF;
}

.section-title-image {
  width: 100%;
  height: auto;
}

.exchange-title-image {
  margin-bottom: 20px;
}

.exchange-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EEEEEE;
}

.exchange-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.exchange-thumb {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  border-radius: 3px;
  object-fit: cover;
}

.exchange-item h3 {
  color: #333333;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  transition: color 180ms ease;
}

.exchange-item:hover h3 {
  color: #8B1A1A;
}

.exchange-item p {
  margin-top: 8px;
  color: #999999;
  font-size: 12px;
}

.more-link-row {
  margin-top: 20px;
  text-align: right;
}

.more-link {
  color: #2E7D8C;
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms ease;
}

.more-link:hover {
  color: #8B1A1A;
}

/* 评论·理论：完整笔记本图片 */
.comment-section {
  padding-top: 32px;
  padding-bottom: 32px;
}

.comment-title-image {
  margin-bottom: 24px;
}

.special-notebook {
  position: relative;
  height: 300px;
}

.notebook-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.notebook-content {
  position: relative;
  padding: 60px 52px 0 84px;
}

.notebook-entry {
  display: grid;
  grid-template-columns: 1px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 0 4px;
  transition: background-color 180ms ease;
}

.notebook-entry:hover {
  background: rgba(201, 162, 75, 0.045);
}

.notebook-tag {
  color: #2E7D8C;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.notebook-entry h3 {
  overflow: hidden;
  color: #333333;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease;
}

.notebook-entry:hover h3 {
  color: #8B1A1A;
}

.notebook-date {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #999999;
  font-size: 12px;
}

.notebook-arrow {
  color: #C9A24B;
  font-size: 18px;
  transition: transform 180ms ease;
}

.notebook-entry:hover .notebook-arrow {
  transform: translateX(4px);
}

.comment-more {
  margin-top: 16px;
}

/* 下部分：仅显示主办单位 */
.site-footer {
  padding: 32px 20px;
  border-top: 1px solid rgba(201, 162, 75, 0.4);
  color: #FFFFFF;
  background: #8B1A1A;
  text-align: center;
}

.site-footer p {
  font-family: "Source Han Serif SC", SimSun, FangSong, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* 中小屏幕：轮播与新闻列表上下排列 */
@media (max-width: 1023px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-carousel {
    height: 360px;
  }

  .news-list-panel {
    height: auto;
  }
}

/* 移动端适配 */
@media (max-width: 767px) {
  .hero-inner h1 {
    font-size: 40px;
  }

  .authority-links {
    grid-template-columns: 1fr;
  }

  .authority-card {
    height: auto;
    min-height: 100px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .heading-line {
    width: 80px;
  }

  .news-carousel {
    height: 320px;
  }

  .carousel-slide {
    width: calc(100% - 40px);
    max-width: none;
  }

  .carousel-caption {
    padding-right: 24px;
    padding-left: 24px;
  }

  .carousel-caption h3 {
    font-size: 20px;
  }

  .notebook-content {
    padding-right: 22px;
    padding-left: 64px;
  }

  .notebook-entry {
    grid-template-columns: 60px minmax(0, 1fr) 85px;
    gap: 8px;
  }

  .notebook-entry h3 {
    font-size: 15px;
  }

  .notebook-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-inner h1 {
    font-size: 34px;
  }

  .authority-panel,
  .exchange-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .authority-card-title {
    font-size: 16px;
  }

  .exchange-thumb {
    width: 120px;
    height: 82px;
  }
}
