/* 静态页面基础重置；其余样式按模块组织。 */
html, body {
  margin: 0;
  padding: 0;
}

/* 习近平党建思想专栏：融入青海高原视觉元素 */
.party-page {
  --party-red: #a52824;
  --party-dark-red: #84201e;
  --party-gold: #b38a47;
  --party-ink: #292725;
  --party-muted: #8b8177;
  min-height: 100vh;
  color: var(--party-ink);
  background: #f5f3ef;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

.party-page *,
.party-page *::before,
.party-page *::after {
  box-sizing: border-box;
}

.party-page a {
  color: inherit;
  text-decoration: none;
}

.party-hero-outer {
  padding: 22px 20px 0;
  background: #eeeae3;
}

.party-hero {
  position: relative;
  width: 100%;
  max-width: 1160px;
  height: 310px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(179, 138, 71, 0.25);
  background: #f8f3e9;
  box-shadow: 0 12px 30px rgba(77, 62, 45, 0.08);
}

.party-landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.party-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  padding: 32px 24px 66px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.party-hero-kicker {
  display: flex;
  margin: 0 0 17px;
  align-items: center;
  gap: 13px;
  color: #8c6d43;
  font-size: 13px;
  letter-spacing: 0.22em;
}

.party-hero-kicker span {
  width: 35px;
  height: 1px;
  background: #bda678;
}

.party-hero h1 {
  margin: 0;
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", STSong, SimSun, serif;
  line-height: 1.18;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

.party-hero h1 span,
.party-hero h1 strong {
  display: block;
}

.party-hero h1 span {
  margin-bottom: 8px;
  color: #5c4a3b;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
}

.party-hero h1 strong {
  color: var(--party-dark-red);
  font-size: 54px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-indent: 0.13em;
}

.party-hero-motto {
  margin: 19px 0 0;
  color: #806d58;
  font-family: STKaiti, KaiTi, serif;
  font-size: 17px;
  letter-spacing: 0.2em;
}

.party-main {
  width: calc(100% - 40px);
  max-width: 1160px;
  margin: 0 auto;
  padding-bottom: 42px;
}

.party-lead {
  padding: 31px 0 27px;
  text-align: center;
}

.party-lead h2 {
  margin: 0;
  color: var(--party-red);
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", STSong, SimSun, serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.035em;
}

.party-lead-links {
  display: flex;
  margin-top: 15px;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: #5b554f;
  font-size: 16px;
  line-height: 1.7;
}

.party-lead-links a {
  position: relative;
  transition: color 0.2s ease;
}

.party-lead-links a + a::before {
  position: absolute;
  top: 50%;
  left: -18px;
  width: 1px;
  height: 15px;
  background: #d6cec4;
  content: "";
  transform: translateY(-50%);
}

.party-lead-links a:hover,
.party-text-link:hover,
.party-news-item:hover,
.party-guide-card:hover h3 {
  color: var(--party-red);
}

.party-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(350px, 1fr);
  gap: 28px;
  align-items: stretch;
}

.party-carousel {
  min-width: 0;
}

.party-carousel-stage {
  position: relative;
  height: 394px;
  overflow: hidden;
  background: #ddd6ca;
}

.party-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.party-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.party-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.party-slide-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 52px 70px 19px 23px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(20, 15, 12, 0.82), rgba(20, 15, 12, 0));
}

.party-slide-caption h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.party-carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: flex;
  width: 36px;
  height: 48px;
  padding: 0 0 4px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(30, 25, 20, 0.25);
  font-family: Arial, sans-serif;
  font-size: 34px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.party-carousel-stage:hover .party-carousel-arrow,
.party-carousel-arrow:focus-visible {
  opacity: 1;
}

.party-carousel-arrow:hover {
  background: rgba(165, 40, 36, 0.78);
}

.party-carousel-prev {
  left: 0;
}

.party-carousel-next {
  right: 0;
}

.party-carousel-dots {
  display: flex;
  height: 31px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e8e2da;
  border-top: 0;
}

.party-carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8c0b5;
  cursor: pointer;
  transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.party-carousel-dots button.is-active {
  width: 23px;
  border-radius: 5px;
  background: var(--party-red);
}

.party-authority {
  display: flex;
  min-width: 0;
  padding: 13px 24px;
  flex-direction: column;
  border-top: 3px solid var(--party-red);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(73, 57, 40, 0.04);
}

.party-authority-list {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  justify-content: space-around;
}

.party-text-link {
  position: relative;
  display: -webkit-box;
  overflow: hidden;
  padding: 9px 0 9px 16px;
  color: #37332f;
  font-size: 16px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.party-text-link::before {
  position: absolute;
  top: 19px;
  left: 1px;
  width: 5px;
  height: 5px;
  background: #b8433e;
  content: "";
  transform: rotate(45deg);
}

.party-dual-section {
  display: grid;
  margin-top: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.party-list-section {
  min-width: 0;
  background: #ffffff;
}

.party-section-heading {
  display: flex;
  height: 52px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8e0d6;
  background: linear-gradient(90deg, #f7eae5 0%, #fbf8f3 62%, #ffffff 100%);
}

.party-section-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.party-section-title h2 {
  margin: 0;
  color: #8e2b27;
  font-family: "Source Han Serif SC", STSong, SimSun, serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.party-section-mark {
  position: relative;
  display: block;
  width: 5px;
  height: 24px;
  background: var(--party-red);
}

.party-section-mark::after {
  position: absolute;
  right: -4px;
  bottom: 0;
  width: 4px;
  height: 16px;
  background: #c6a46c;
  content: "";
}

.party-more {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8c8175;
  font-size: 13px;
}

.party-more span {
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.party-more:hover {
  color: var(--party-red);
}

.party-news-list {
  padding: 9px 20px 11px;
  border: 1px solid #eee8e0;
  border-top: 0;
}

.party-news-item {
  position: relative;
  display: flex;
  min-height: 51px;
  padding: 12px 0 12px 16px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px dashed #e4ddd4;
  color: #3c3834;
  font-size: 16px;
  line-height: 1.55;
  transition: color 0.2s ease;
}

.party-news-item:last-child {
  border-bottom: 0;
}

.party-news-item::before {
  position: absolute;
  top: 22px;
  left: 1px;
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a99c8e;
  content: "";
}

.party-local-tag {
  flex: 0 0 auto;
  padding: 1px 5px;
  border: 1px solid #c7a673;
  border-radius: 2px;
  color: #9b7339;
  font-size: 11px;
  line-height: 1.4;
}

.party-guide-section {
  margin-top: 34px;
}

.party-guide-header {
  display: flex;
  height: 53px;
  padding: 0 13px 0 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #a93630;
  background: linear-gradient(90deg, #f7eae5, #fbf8f3 58%, #ffffff);
}

.party-guide-controls {
  display: flex;
  gap: 6px;
}

.party-guide-controls button {
  width: 29px;
  height: 25px;
  padding: 0 0 3px;
  border: 1px solid #d9cec0;
  color: #8a7763;
  background: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.party-guide-controls button:hover {
  border-color: #a93630;
  color: #ffffff;
  background: #a93630;
}

.party-guide-grid {
  display: grid;
  padding: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19px;
  border: 1px solid #e9e2d9;
  border-top: 0;
  background: #ffffff;
}

.party-guide-card {
  min-width: 0;
  animation: party-guide-in 0.35s ease;
}

.party-guide-image {
  height: 161px;
  overflow: hidden;
  background: #eee6db;
}

.party-guide-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.party-guide-card:hover .party-guide-image img {
  transform: scale(1.035);
}

.party-guide-card h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 11px 0 0;
  color: #45403b;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

/* 青海花海页头：鲜红主调与浅色标题形成清晰层次 */
.party-hero-outer {
  background: linear-gradient(180deg, #cf2e28 0%, #e05a4e 100%);
}

.party-hero {
  height: 330px;
  border-color: rgba(139, 24, 21, 0.48);
  background: #c92d27 url("../images/party-hero-qinghai.jpg") center center / cover no-repeat;
  box-shadow: 0 14px 32px rgba(126, 27, 23, 0.22);
}

.party-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(171, 23, 20, 0.5), transparent 42%),
    linear-gradient(90deg, rgba(201, 36, 30, 0.72) 0%, rgba(218, 52, 43, 0.42) 50%, rgba(184, 25, 23, 0.68) 100%);
  content: "";
}

.party-landscape {
  display: none;
}

.party-hero h1 {
  text-shadow: 0 2px 3px rgba(92, 14, 12, 0.45), 0 5px 18px rgba(109, 19, 16, 0.28);
}

.party-hero h1 span {
  color: #ffe9dc;
}

.party-hero h1 strong {
  color: #fff3d6;
}

.party-hero-kicker {
  color: #ffe2d5;
}

.party-hero-kicker span {
  background: #f3c09d;
}

.party-hero-motto {
  padding: 4px 17px;
  border-radius: 20px;
  color: #fff4e8;
  background: rgba(139, 20, 18, 0.28);
  backdrop-filter: blur(2px);
}

.party-footer {
  display: flex;
  min-height: 88px;
  padding: 22px;
  align-items: center;
  justify-content: center;
  border-top: 4px solid #a91917;
  background: linear-gradient(120deg, #c82520 0%, #df493c 50%, #bf1c19 100%);
}

.party-footer p {
  margin: 0;
  color: #fff5eb;
  font-family: "Source Han Serif SC", STSong, SimSun, serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

@keyframes party-guide-in {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@media (max-width: 1000px) {
  .party-feature-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 1fr);
    gap: 20px;
  }

  .party-carousel-stage {
    height: 370px;
  }

  .party-authority {
    padding-right: 18px;
    padding-left: 18px;
  }

  .party-authority-title small {
    display: none;
  }

  .party-guide-image {
    height: 135px;
  }
}

@media (max-width: 760px) {
  .party-hero-outer {
    padding: 12px 12px 0;
  }

  .party-hero {
    height: 290px;
  }

  .party-hero-content {
    padding: 28px 15px 59px;
  }

  .party-hero h1 span {
    font-size: 24px;
  }

  .party-hero h1 strong {
    font-size: 39px;
    letter-spacing: 0.07em;
    text-indent: 0.07em;
  }

  .party-hero-kicker {
    font-size: 11px;
  }

  .party-hero-motto {
    font-size: 14px;
  }

  .party-main {
    width: calc(100% - 24px);
  }

  .party-lead {
    padding: 25px 0 22px;
  }

  .party-lead h2 {
    font-size: 25px;
  }

  .party-lead-links {
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
  }

  .party-lead-links a + a::before {
    display: none;
  }

  .party-feature-grid,
  .party-dual-section {
    grid-template-columns: 1fr;
  }

  .party-carousel-stage {
    height: 320px;
  }

  .party-authority-list {
    min-height: 0;
  }

  .party-dual-section {
    gap: 26px;
  }

  .party-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    padding: 15px;
  }

  .party-guide-image {
    height: 130px;
  }
}

@media (max-width: 420px) {
  .party-hero h1 strong {
    font-size: 34px;
  }

  .party-hero-kicker span {
    width: 18px;
  }

  .party-carousel-stage {
    height: 260px;
  }

  .party-slide-caption h3 {
    font-size: 17px;
  }

  .party-guide-image {
    height: 105px;
  }
}

/* 背景图通栏铺满页头，标题内容保持居中 */
.party-hero-outer {
  padding: 0;
}

.party-hero {
  width: 100%;
  max-width: none;
  border-right: 0;
  border-left: 0;
}

.party-hero-content {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

/* 最终精简版：大字宋体标题 */
.party-hero h1 {
  font-family: "FZXiaoBiaoSong-B05S", "Source Han Serif SC", "Noto Serif CJK SC", STZhongsong, SimSun, serif;
  line-height: 1.2;
}

.party-hero h1 span {
  margin-bottom: 10px;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.party-hero h1 strong {
  font-size: 66px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
}

.party-main {
  padding-top: 34px;
}

.party-footer {
  min-height: 176px;
}

@media (max-width: 760px) {
  .party-hero h1 span {
    font-size: 29px;
  }

  .party-hero h1 strong {
    font-size: 46px;
  }

  .party-hero-content {
    padding: 24px 15px 43px;
  }
}

@media (max-width: 420px) {
  .party-hero h1 strong {
    font-size: 39px;
  }
}
