/* Base */
:root {
  --primary: #4a76b9;
  --primary-deep: #194fb3;
  --primary-dark: #174394;
  --accent: #79a9d0;
  --accent-soft: #e3eef8;
  --bg: #f4f8fc;
  --surface: #ffffff;
  --surface-soft: #f5f9fc;
  --text: #174394;
  --muted: #5c7a94;
  --line: #d9e6f1;
  --shadow: 0 18px 40px rgba(44, 85, 118, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1400px, calc(100% - 24px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 34, 70, 0.88), rgba(20, 67, 130, 0.72)),
    url("assets/images/85cfbdcea5a0d1e7ff9dde82a1d3563f.jpg") center/cover no-repeat;
}

.topbar-inner,
.header-inner,
.nav-inner,
.footer-inner,
.notice-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-inner {
  position: relative;
  z-index: 1;
  min-height: 40px;
  gap: 16px;
}

.topbar-left,
.topbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.divider {
  opacity: 0.35;
}

.topbar-links a:hover {
  color: #ffffff;
}

.site-header {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background: #ffffff;
  border-bottom: 1px solid #dbe9f1;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
}

.site-header-home::before {
  background: none;
}

.site-header-home {
  border-bottom: 1px solid #dbe9f1;
}

.header-pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(46vw, 560px);
  z-index: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(74, 136, 185, 0.08), transparent 22%),
    repeating-linear-gradient(90deg, rgba(74, 136, 185, 0.05) 0, rgba(74, 136, 185, 0.05) 1px, transparent 1px, transparent 118px);
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  min-height: 102px;
  gap: 24px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  min-height: 110px;
  padding: 18px 22px;
  color: #183f86;
  background: transparent;
}

.brand-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}

.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}

.brand > * {
  position: relative;
  z-index: 2;
}

.brand-copy {
  min-width: 0;
}

.brand-mark {
  width: 88px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: multiply;
  opacity: 0.78;
  filter: brightness(1.08) saturate(0.88);
}

.brand-sub,
.brand-en {
  margin: 0;
  color: rgba(24, 63, 134, 0.82);
  font-size: 12px;
  letter-spacing: 1px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.brand-cn {
  margin: 6px 0;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: #19448f;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  box-shadow: 0 10px 24px rgba(23, 67, 148, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: #ffffff !important;
}

.header-link-card:hover,
.header-link-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 28px rgba(23, 67, 148, 0.24);
  transform: translateY(-1px);
}

.header-link-card-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  letter-spacing: 1px;
}

.header-link-card-title {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.header-link-card a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.header-link-card a:hover {
  color: #ffffff !important;
  text-decoration: none;
}

.search-box {
  display: flex;
  min-width: 320px;
  max-width: 360px;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #f7fbfd;
  border: 1px solid #d6e7ef;
}

.search-box input {
  flex: 1;
  padding: 12px 18px;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

.search-box input::placeholder {
  color: #8aa4b8;
}

.search-box button {
  padding: 0 20px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: var(--primary);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #d4e4ec;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--primary-dark);
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  box-shadow: 0 8px 18px rgba(7, 32, 54, 0.12);
}

.nav-inner {
  min-height: 58px;
  gap: 0;
  justify-content: space-between;
  overflow: visible;
}

.nav-inner > a,
.nav-link {
  position: relative;
  display: block;
  padding: 17px 14px;
  border: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  text-align: center;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-item {
  position: relative;
  display: flex;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 0;
  min-width: 100%;
  width: 100%;
  max-width: none;
  padding: 0;
  border: 1px solid #d6e5f0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 30px rgba(7, 32, 54, 0.18);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-submenu a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  border-radius: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  background: #ffffff;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-submenu a:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.nav-submenu a:last-child {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-inner > a:hover,
.nav-inner > a:focus-visible,
.nav-link:hover,
.nav-link:focus-visible,
.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link {
  color: var(--primary-dark);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.94));
  box-shadow: 0 10px 20px rgba(7, 32, 54, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-inner > a.active,
.nav-link.active {
  color: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.nav-open .nav-inner {
  display: flex;
}

/* 首页轮播图 */
.home-carousel {
  width: 100%;
  background: #000;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  min-height: 300px;
  max-height: 600px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
  background: #ffffff;
}

.home-banner {
  padding: 24px 0 0;
  background: linear-gradient(180deg, #edf4fb 0%, #f8fbfe 100%);
}

.home-banner-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.home-banner-copy,
.home-banner-panel {
  padding: 34px 36px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(10, 56, 90, 0.08);
}

.home-banner-copy {
  color: var(--primary-dark);
  background:
    url("assets/images/guizhou-urbanization-map.png") center/cover no-repeat;
  position: relative;
}

.home-banner-tag {
  margin: 0 0 14px;
  color: rgba(25, 68, 143, 0.82);
  font-size: 13px;
  letter-spacing: 2px;
}

.home-banner-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.32;
}

.home-banner-copy p:not(.home-banner-tag) {
  margin: 18px 0 0;
  color: rgba(23, 67, 148, 0.92);
  line-height: 1.9;
  font-size: 15px;
}

.home-banner-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.home-banner-actions .btn {
  min-width: 136px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  box-shadow: 0 10px 24px rgba(23, 67, 148, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-banner-actions .btn:hover,
.home-banner-actions .btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 28px rgba(23, 67, 148, 0.24);
  transform: translateY(-1px);
}

.home-banner-actions .btn-primary,
.home-banner-actions .btn-secondary {
  color: #ffffff;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.home-banner-panel {
  padding: 0;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.home-banner-panel .slide {
  min-height: 100%;
  position: absolute;
  inset: 0;
  padding: 28px 28px 68px;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-banner-panel .slide.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.home-banner-panel .slide-focus-map {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25)),
    url("assets/images/slide-focus-map-custom.png") center/100% 100% no-repeat;
}

.home-banner-panel .slide-service-map {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25)),
    url("assets/images/slide-service-map.png") center/cover no-repeat;
}

.home-banner-panel .slide-platform-map {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25)),
    url("assets/images/slide-platform-map.png") center/cover no-repeat;
}

.home-banner-panel .slide .slide-label {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.home-banner-panel .slide h3 {
  color: #ffffff;
  font-size: 28px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.home-banner-panel .slide p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.home-banner-panel .slide-dots {
  margin-top: 0;
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 1;
}

.home-banner-panel .dot {
  background: rgba(255, 255, 255, 0.4);
}

.home-banner-panel .dot.active {
  background: #ffffff;
}

.admin-banner-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-banner-slides-editor {
  display: grid;
  gap: 18px;
}

.admin-banner-slide-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.admin-banner-slide-preview {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #edf4fb 0%, #dbe9f7 100%);
  border: 1px solid #dbe7f2;
}

.admin-banner-slide-preview img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.admin-banner-slide-preview span {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.admin-banner-slide-fields {
  display: grid;
  gap: 14px;
}

.admin-banner-slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-banner-slide-head strong {
  color: var(--primary-dark);
}

.admin-banner-slide-head span {
  color: var(--muted);
  font-size: 13px;
}

.admin-banner-slide-fields textarea {
  min-height: 110px;
}

.admin-banner-live-preview {
  margin-top: 18px;
}

.admin-banner-live-stack {
  display: grid;
  gap: 18px;
}

.admin-banner-hero-live {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.admin-banner-hero-live-image {
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #edf4fb 0%, #dbe9f7 100%);
}

.admin-banner-hero-live-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-banner-hero-live-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.admin-banner-hero-live-copy span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-banner-hero-live-copy strong {
  color: var(--primary-dark);
  font-size: 28px;
  line-height: 1.35;
}

.admin-banner-hero-live-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-banner-hero-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-banner-hero-live-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
}

.admin-banner-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.admin-banner-live-card {
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(10, 56, 90, 0.06);
}

.admin-banner-live-card.is-active {
  border-color: rgba(25, 68, 143, 0.2);
}

.admin-banner-live-image {
  height: 160px;
  background: linear-gradient(180deg, #edf4fb 0%, #dbe9f7 100%);
}

.admin-banner-live-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-banner-live-copy {
  padding: 16px;
}

.admin-banner-live-copy strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.admin-banner-live-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.home-strip {
  background: #f2f7fb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-strip-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
}

.home-strip-title {
  flex: none;
  padding: 6px 14px;
  border-radius: 4px;
  color: #ffffff;
  background: var(--primary);
}

.home-strip-inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.home-simple-main {
  background: #ffffff;
}

.home-primary-section {
  padding-bottom: 44px;
}

.home-primary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* 首页新闻三栏布局 */
.home-news-section {
  padding: 32px 0 44px;
}

.home-news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0;
}

/* 左侧图片轮播 */
.home-news-image {
  position: relative;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(10, 56, 90, 0.08);
}

.news-image-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-image-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.news-image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.news-image-slide.active {
  opacity: 1;
}

.news-image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.news-image-nav {
  position: absolute;
  bottom: 50px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.news-image-nav button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.news-image-nav button:hover {
  background: rgba(255, 255, 255, 0.6);
}

.news-image-counter {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.news-image-counter .current {
  color: #fff;
  font-weight: 700;
}

/* 面板标题 */
.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 16px;
}

/* 科研板块标题栏 */
.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.column-header .column-title {
  font-size: 20px;
  color: var(--primary-dark);
  line-height: 1.3;
  margin: 0;
}

.column-header .more-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.column-header .more-link:hover {
  color: var(--primary);
}

.panel-heading h2 {
  margin: 0;
  font-size: 20px;
  color: var(--primary-dark);
  line-height: 1.2;
}

.panel-heading .heading-en {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 2px;
}

.panel-heading a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.panel-heading a:hover {
  color: var(--primary);
}

/* 中间/右侧列表面板 */
.home-news-list-panel,
.home-notice-list-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: none;
}

.home-news-list-panel {
  border-radius: 0 8px 8px 0;
  border-left: none;
}

.home-notice-list-panel {
  border-radius: 8px;
  margin-left: 24px;
}

/* 新闻动态列表 */
.news-date-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-date-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #eef3f7;
}

.news-date-list li:last-child {
  border-bottom: none;
}

.news-date {
  flex-shrink: 0;
  width: 50px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.news-date small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.news-title {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.news-title:hover {
  color: var(--primary);
}

/* 通知公告列表 */
.notice-date-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notice-date-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #eef3f7;
}

.notice-date-list li:last-child {
  border-bottom: none;
}

.notice-day {
  flex-shrink: 0;
  width: 44px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
}

.notice-day small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.notice-title {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.notice-title:hover {
  color: var(--primary);
}

.home-intro-card,
.home-notice-card,
.simple-card,
.simple-contact {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(10, 56, 90, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-intro-card,
.home-notice-card,
.simple-card {
  padding: 28px;
  border-radius: 8px;
}

.simple-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.simple-card-link-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.simple-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px 22px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 2px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  box-shadow: 0 12px 28px rgba(10, 56, 90, 0.08);
}

.simple-heading > div {
  display: grid;
  gap: 4px;
}

.simple-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  color: #ffffff;
}

.simple-heading a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.home-intro-card:hover,
.home-notice-card:hover,
.simple-card:hover,
.simple-contact:hover {
  transform: translateY(-2px);
  border-color: #c9e2ec;
  box-shadow: 0 14px 30px rgba(10, 56, 90, 0.09);
}

.home-intro-card h3,
.simple-card h3,
.simple-contact h3 {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 24px;
}

.home-intro-card p,
.simple-card p,
.simple-contact p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.9;
}

.simple-card-link-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.simple-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.simple-stats div {
  padding: 16px;
  border-radius: 6px;
  background: #f5fafc;
}

.simple-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.simple-stats span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-tabs {
  margin-bottom: 16px;
}

.simple-list-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.simple-list-item:last-child {
  border-bottom: 0;
}

.simple-list-item span {
  color: var(--primary);
  font-weight: 700;
}

.simple-list-item em {
  color: var(--text);
  font-style: normal;
  line-height: 1.8;
}

/* 科研板块 */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.research-column {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.research-column:hover {
  box-shadow: none;
  border-color: var(--primary);
}

.research-column .column-title {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--primary-dark);
  line-height: 1.3;
}

.research-column .column-en {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary-dark);
  padding-bottom: 12px;
}

.research-column .date-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-column .date-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed #eef3f7;
}

.research-column .date-item::before {
  content: "";
}

.research-column .date-item:last-child {
  border-bottom: none;
}

.research-column .date-day {
  flex-shrink: 0;
  width: 44px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
}

.research-column .date-day small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}

.research-column .date-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.2s;
}

.research-column .date-item a:hover {
  color: var(--primary);
}

.managed-simple-card-grid {
  align-items: stretch;
}

.simple-card-media-card {
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.simple-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(35, 67, 94, 0.92), rgba(74, 136, 185, 0.78)),
    linear-gradient(45deg, #9abada, #edf4fb);
}

.simple-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.simple-card-media-card:hover .simple-card-media img,
.simple-card-media-card:focus-visible .simple-card-media img {
  transform: scale(1.04);
}

.simple-card-media-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
}

.simple-card-media-placeholder span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 1px;
}

.simple-card-body {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 24px;
}

.simple-card-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.simple-card-media-card h3 {
  margin: 0;
  font-size: 22px;
}

.simple-card-media-card p {
  margin: 0;
}

.simple-card-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-card-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.simple-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.simple-card ul {
  margin: 0;
}

.simple-contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 28px;
  border-radius: 8px;
}

.simple-contact-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 680px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-home {
  background:
    linear-gradient(115deg, rgba(35, 67, 94, 0.95), rgba(74, 136, 185, 0.8)),
    linear-gradient(180deg, #e6f0f8, #a9c5de);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(5, 24, 45, 0.3), transparent 60%),
    radial-gradient(circle at left bottom, rgba(255, 255, 255, 0.12), transparent 26%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hero-inner-home {
  min-height: 530px;
  padding: 72px 0;
}

.hero-copy {
  color: #ffffff;
}

.hero-tag {
  margin: 0 0 16px;
  color: #dce9f5;
  font-size: 14px;
  letter-spacing: 3px;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.2;
}

.hero-text {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.9;
  font-size: 16px;
  word-break: break-word;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
}

.btn-primary {
  color: var(--primary-dark);
  background: #ffffff;
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-side {
  display: grid;
  gap: 18px;
}

.card-glass {
  padding: 28px;
  border-radius: 26px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.slides {
  min-height: 270px;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide-label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--accent-soft);
  font-size: 13px;
}

.slide h3 {
  margin: 18px 0 14px;
  font-size: 30px;
  line-height: 1.35;
}

.slide p {
  margin: 0;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

.slide-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.dot.active {
  width: 32px;
  border-radius: 999px;
  background: #ffffff;
}

.quick-panel {
  display: grid;
  gap: 12px;
}

.quick-panel a {
  display: grid;
  gap: 5px;
  padding: 18px 22px;
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-panel strong {
  font-size: 16px;
}

.quick-panel span {
  color: rgba(255, 255, 255, 0.82);
}

.notice-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.notice-strip-inner {
  min-height: 62px;
  gap: 18px;
}

.notice-badge {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.notice-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.notice-links a {
  color: var(--text);
  line-height: 1.7;
}

.template-note {
  background: #eef7fb;
  border-bottom: 1px solid var(--line);
}

.template-note p {
  margin: 0;
  padding: 14px 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: linear-gradient(180deg, #f8fbfd 0%, #eef6fa 100%);
}

.section-accent {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(44, 85, 118, 0.98), rgba(74, 136, 185, 0.94));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 34px;
}

.section-heading a {
  color: var(--primary);
  font-weight: 600;
}

.section-heading.light a {
  color: #dbe8f4;
}

.section-en {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
}

.section-heading.light .section-en {
  color: #c7dbed;
}

.overview-grid,
.news-layout,
.party-layout,
.card-grid,
.exchange-grid,
.contact-grid,
.text-card-grid {
  display: grid;
  gap: 24px;
}

.home-overview-grid {
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
}

.home-news-layout {
  grid-template-columns: 0.95fr 1.05fr;
}

.card-grid.three,
.exchange-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.two,
.contact-grid,
.text-card-grid {
  grid-template-columns: repeat(2, 1fr);
}

.party-layout {
  grid-template-columns: 1fr 0.92fr;
}

.overview-card,
.feature-news,
.list-panel,
.info-card,
.exchange-card,
.service-card,
.contact-card,
.text-card,
.sidebar-card,
.article-panel,
.content-panel,
.sidebar-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.overview-card,
.info-card,
.exchange-card,
.service-card,
.contact-card,
.text-card,
.sidebar-card,
.content-panel,
.article-panel {
  padding: 28px;
  border-radius: 22px;
}

.overview-main {
  background: linear-gradient(180deg, rgba(74, 136, 185, 0.06), rgba(74, 136, 185, 0)), #ffffff;
}

.overview-card h3,
.info-card h3,
.service-card h3,
.contact-card h3,
.article-row h3,
.sidebar-card h3,
.content-block h3,
.article-page .article-header h1,
.text-card h4 {
  margin-top: 0;
}

.overview-card p,
.info-card p,
.service-card p,
.contact-card p,
.feature-content p,
.exchange-card p,
.content-block p,
.text-card p {
  line-height: 1.9;
  color: var(--muted);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.mini-stats div {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.mini-stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: 18px;
}

.icon-list,
.info-card ul,
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon-list li,
.info-card li,
.detail-list li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px dashed var(--line);
}

.icon-list li::before,
.info-card li::before,
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.feature-news {
  display: grid;
  grid-template-rows: 240px auto;
  overflow: hidden;
  border-radius: 24px;
}

.feature-image {
  position: relative;
  background:
    linear-gradient(135deg, rgba(44, 85, 118, 0.92), rgba(74, 136, 185, 0.74)),
    linear-gradient(45deg, #9abada, #edf4fb);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.feature-image::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.feature-image span {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 600;
  background: var(--accent-soft);
}

.feature-content {
  padding: 26px 28px 30px;
}

.feature-content h3 {
  margin: 0 0 14px;
  font-size: 28px;
}

.feature-content a {
  color: var(--primary);
  font-weight: 700;
}

.list-panel {
  padding: 22px 24px;
  border-radius: 24px;
}

.tabs,
.list-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  cursor: pointer;
}

.tab.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.news-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.news-item:last-child,
.article-row:last-child,
.sidebar-card a:last-child {
  border-bottom: 0;
}

.date {
  display: grid;
  place-items: center;
  padding: 10px 8px;
  border-radius: 16px;
  color: var(--primary-dark);
  background: #eef8fb;
}

.date strong {
  font-size: 20px;
}

.date em {
  font-style: normal;
  font-size: 12px;
}

.news-item .text {
  line-height: 1.75;
}

.party-main {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(4, 20, 36, 0.16);
}

.party-main h3 {
  margin: 0 0 14px;
  font-size: 30px;
}

.party-main p {
  color: rgba(255, 255, 255, 0.84);
}

.party-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.party-tags span,
.article-page .article-tags span {
  padding: 8px 14px;
  border-radius: 999px;
}

.party-tags span {
  background: rgba(255, 255, 255, 0.12);
}

.party-list {
  display: grid;
  gap: 14px;
}

.party-list a {
  padding: 20px 22px;
  border-radius: 18px;
  color: #ffffff;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.exchange-card span {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 700;
  background: #e0f5fb;
}

.exchange-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.contact-section {
  background: #ffffff;
}

.sub-hero {
  padding: 34px 0 30px;
  color: var(--text);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.sub-hero .container {
  display: grid;
  gap: 8px;
}

.subpage-kicker {
  color: var(--primary);
}

.sub-hero h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
}

.sub-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.breadcrumb {
  font-size: 14px;
}

.subpage-note {
  background: #f6fbfd;
  border-bottom: 1px solid var(--line);
}

.subpage-note p {
  margin: 12px 0;
  padding: 13px 18px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: #ffffff;
}

.subpage-main {
  padding: 38px 0 72px;
}

.party-work-page {
  background: linear-gradient(180deg, #f8fbfd 0%, #eef6fa 100%);
}

.party-work-hero {
  background: linear-gradient(180deg, #eef7fb 0%, #f8fbfd 100%);
}

.party-work-main {
  padding: 38px 0 72px;
}

.party-work-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 920px;
}

.party-work-sidebar,
.party-work-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(10, 56, 90, 0.06);
}

.party-work-sidebar {
  min-height: 210px;
}

.party-work-sidebar-head {
  padding: 16px 18px;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.party-work-sidebar a {
  display: block;
  margin: 16px;
  padding: 12px 16px;
  border: 1px solid #d9e8f2;
  border-radius: 6px;
  color: var(--primary-dark);
  text-align: center;
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff, #f5f9fc);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.party-work-sidebar a.active,
.party-work-sidebar a:hover,
.party-work-sidebar a:focus-visible {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 10px 18px rgba(44, 85, 118, 0.14);
}

.party-work-panel {
  padding: 24px 28px 20px;
}

.party-work-panel-head {
  margin-bottom: 6px;
  padding-bottom: 18px;
  border-bottom: 2px solid #edf4f7;
}

.party-work-panel-head .section-en {
  margin-bottom: 8px;
}

.party-work-panel-title {
  display: grid;
  gap: 8px;
}

.party-work-panel-title h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 30px;
  line-height: 1.25;
}

.party-work-panel-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.party-work-list {
  display: grid;
  margin-top: 2px;
}

.party-work-item {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 16px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px dashed var(--line);
  transition: background 0.2s ease;
}

.party-work-title {
  color: var(--text);
  font-size: 16px;
  line-height: 1.85;
}

.party-work-item time {
  color: var(--muted);
  text-align: right;
  font-size: 13px;
  white-space: nowrap;
}

.party-work-item:hover,
.party-work-item:focus-visible {
  background: #f7fbfe;
}

.party-work-item:hover .party-work-title,
.party-work-item:focus-visible .party-work-title {
  color: var(--primary);
}

.party-work-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.party-work-pagination a,
.party-work-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
}

.party-work-pagination a {
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #ffffff;
}

.party-work-pagination a.active,
.party-work-pagination a:hover,
.party-work-pagination a:focus-visible {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.subpage-layout,
.article-page .article-layout {
  display: grid;
  gap: 24px;
}

.subpage-layout {
  grid-template-columns: 260px 1fr;
}

.news-page-layout {
  grid-template-columns: 1fr 300px;
}

.article-page .article-layout {
  grid-template-columns: 1fr 300px;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 18px 14px;
  border-radius: 8px;
  border-bottom: 2px solid #eaf2f6;
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
  box-shadow: 0 4px 12px rgba(10, 56, 90, 0.04);
}

.sidebar-nav a,
.sidebar-card a {
  display: block;
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-nav a.active,
.sidebar-nav a:hover,
.sidebar-card a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.content-block + .content-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-panel-filtered .content-block {
  display: none;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.section-panel-filtered .content-block.is-active {
  display: block;
}

.text-card-grid {
  margin-top: 20px;
}

.text-card {
  padding: 22px;
}

.text-card h4 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 20px;
}

.list-toolbar {
  margin-bottom: 18px;
}

.article-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}

.article-row h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.article-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.article-row span {
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
}

.sidebar-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar-card a {
  padding: 12px 0;
  border-radius: 0;
  border-bottom: 1px dashed var(--line);
}

.sidebar-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.sidebar-card h3 {
  margin-bottom: 14px;
  padding-bottom: 12px;
  font-size: 20px;
  border-bottom: 1px solid #eaf2f6;
}

.simple-subpage-layout .content-panel,
.simple-subpage-layout .article-panel,
.simple-subpage-layout .sidebar-nav,
.simple-subpage-layout .sidebar-card {
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(10, 56, 90, 0.06);
}

.simple-content-panel .list-toolbar {
  padding-bottom: 14px;
  border-bottom: 2px solid #edf4f7;
}

.article-page .simple-article-panel .article-header {
  padding-bottom: 24px;
}

.article-page .simple-article-panel .article-body {
  margin-top: 24px;
  padding: 22px 24px 8px;
  border: 1px solid #e8f1f5;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination a:hover {
  border-color: rgba(27, 89, 248, 0.28);
  background: #f7faff;
}

.pagination a.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(27, 89, 248, 0.15);
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 10px 6px;
  color: #7d8aa3;
  font-weight: 600;
}

.article-page .article-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.article-page .article-cover {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f4f9fb;
}

.article-page .article-cover img {
  width: 100%;
  height: auto;
}

.article-page .article-header h1 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.35;
  text-align: center;
}

.article-page .article-category {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.article-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.article-page .article-content {
  padding-top: 22px;
}

.article-page .article-summary {
  margin-top: 0;
  padding: 16px 18px;
  border: 1px solid #dcecf3;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: #f5fafc;
  color: var(--muted);
  line-height: 1.9;
}

.article-page .article-summary strong {
  color: var(--primary-dark);
}


.article-page .article-footer {
  margin-top: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-page .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.article-page .article-tags span {
  color: var(--primary-dark);
  background: var(--accent-soft);
}

.article-page .article-nav-links {
  display: grid;
  gap: 10px;
}

.article-page .article-nav-links a {
  color: var(--primary);
}

.feature-content h3,
.exchange-card h3,
.party-main h3,
.article-page .article-header h1,
.article-row h3,
.content-block h3 {
  word-break: break-word;
}

.site-footer {
  position: relative;
  margin-top: auto;
  overflow: visible;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: min(30vw, 420px);
  height: min(30vw, 420px);
  background: url("assets/images/corner-pattern.png") center/contain no-repeat;
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
}

.site-footer::before {
  left: 0;
  background-position: left bottom;
}

.site-footer::after {
  right: 0;
  background-position: right bottom;
  transform: scaleX(-1);
}

.footer-inner {
  position: relative;
  z-index: 1;
  gap: 20px;
  padding: 34px 0 42px;
}

.footer-inner-centered {
  justify-content: center;
  text-align: center;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  margin: 6px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

@media (max-width: 1100px) {
  .home-banner-inner,
  .home-primary-grid,
  .hero-inner,
  .home-overview-grid,
  .home-news-layout,
  .party-layout,
  .card-grid.three,
  .exchange-grid,
  .contact-grid,
  .simple-card-grid,
  .simple-contact,
  .subpage-layout,
  .news-page-layout,
  .article-layout,
  .party-work-layout {
    grid-template-columns: 1fr;
  }

  .notice-links,
  .card-grid.two,
  .text-card-grid,
  .mini-stats,
  .admin-banner-hero-live {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .home-strip-inner,
  .header-inner,
  .topbar-inner,
  .section-heading,
  .footer-inner,
  .notice-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner {
    padding: 20px 0 24px;
  }

  .brand {
    width: 100%;
    align-items: flex-start;
  }

  .brand-mark {
    width: 72px;
    height: 58px;
  }

  .brand-cn {
    font-size: 24px;
    line-height: 1.35;
  }

  .brand-sub,
  .brand-en {
    line-height: 1.6;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
  }

  .header-link-card {
    min-width: 124px;
    padding: 8px 14px;
  }

  .search-box {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-inner {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0 18px;
    justify-content: flex-start;
  }

  .nav-inner > a,
  .nav-link {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-item {
    width: 100%;
  }

  .nav-submenu {
    position: static;
    left: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0 0 8px;
    padding: 6px 0 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-submenu a {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
  }

  .nav-inner > a:hover,
  .nav-inner > a:focus-visible,
  .nav-inner > a.active,
  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-link.active,
  .nav-item:hover .nav-link,
  .nav-item:focus-within .nav-link {
    color: #ffffff;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .nav-submenu a:hover,
  .nav-submenu a:focus-visible {
    color: #ffffff;
    background: transparent;
  }

  .topbar-links,
  .topbar-left,
  .footer-links,
  .hero-actions {
    flex-wrap: wrap;
  }

  .topbar-inner {
    padding: 8px 0;
  }

  .notice-strip-inner,
  .section-heading {
    align-items: flex-start;
  }

  .hero-inner-home {
    min-height: auto;
    padding: 54px 0 58px;
  }

  .home-banner {
    padding-top: 18px;
  }

  .home-banner-copy,
  .home-banner-panel,
  .home-intro-card,
  .home-notice-card,
  .simple-card,
  .simple-contact {
    padding: 22px;
  }

  .home-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .simple-stats {
    grid-template-columns: 1fr;
  }

  .home-strip-inner {
    align-items: flex-start;
    min-height: auto;
    padding: 14px 0;
  }

  .hero-side,
  .quick-panel,
  .sidebar-panel {
    width: 100%;
  }

  .card-glass,
  .overview-card,
  .info-card,
  .exchange-card,
  .service-card,
  .contact-card,
  .text-card,
  .content-panel,
  .article-panel,
  .sidebar-card {
    padding: 22px;
  }

  .hero-copy h2,
  .home-banner-copy h2,
  .sub-hero h2,
  .section-heading h2,
  .simple-heading h2,
  .feature-content h3,
  .party-main h3,
  .article-header h1 {
    font-size: 28px;
  }

  .section,
  .subpage-main {
    padding: 56px 0;
  }

  .sub-hero {
    padding: 44px 0 36px;
  }

  .subpage-layout,
  .article-layout,
  .news-page-layout,
  .party-work-layout {
    gap: 18px;
  }

  .news-item,
  .simple-list-item,
  .article-row {
    grid-template-columns: 1fr;
  }

  .simple-list-item span,
  .article-row span {
    text-align: left;
  }

  .sidebar-nav {
    padding: 14px;
  }

  .party-work-main {
    padding: 30px 0 56px;
  }

  .party-work-sidebar {
    min-height: auto;
  }

  .party-work-sidebar a,
  .party-work-sidebar-head {
    margin: 0;
  }

  .party-work-sidebar a {
    margin: 14px;
  }

  .party-work-panel {
    padding: 22px 20px 16px;
  }

  .party-work-panel-title h3 {
    font-size: 26px;
  }

  .party-work-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 2px;
  }

  .party-work-item time {
    text-align: left;
  }


  .sidebar-nav a,
  .sidebar-card a {
    padding: 12px 14px;
  }

  .article-meta,
  .pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 20px);
  }

  .topbar {
    font-size: 12px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .brand-cn {
    font-size: 21px;
  }

  .header-tools {
    gap: 10px;
  }

  .header-link-card {
    min-width: auto;
    padding: 8px 12px;
  }

  .header-link-card-label {
    display: none;
  }

  .header-link-card-title {
    font-size: 14px;
  }

  .search-box input {
    padding: 10px 14px;
  }

  .search-box button {
    padding: 0 14px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero-inner-home {
    padding: 42px 0 46px;
  }

  .hero-tag {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .hero-copy h2,
  .home-banner-copy h2,
  .sub-hero h2,
  .section-heading h2,
  .simple-heading h2,
  .feature-content h3,
  .party-main h3,
  .article-header h1 {
    font-size: 24px;
  }

  .hero-text,
  .home-banner-copy p:not(.home-banner-tag),
  .overview-card p,
  .info-card p,
  .service-card p,
  .content-block p {
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .slide h3,
  .exchange-card h3,
  .article-row h3 {
    font-size: 20px;
  }

  .slide p,
  .news-item .text,
  .notice-links a {
    font-size: 14px;
  }

  .notice-strip-inner {
    padding: 14px 0;
  }

  .template-note p {
    padding: 12px 0;
    font-size: 13px;
  }

  .notice-links {
    gap: 12px;
  }

  .feature-news {
    grid-template-rows: 180px auto;
  }

  .feature-image::after {
    inset: 14px;
  }

  .feature-content,
  .list-panel {
    padding: 20px;
  }

  .news-item {
    gap: 12px;
    padding: 14px 0;
  }

  .date {
    width: fit-content;
    min-width: 74px;
  }

  .party-main,
  .party-list a {
    padding: 20px;
  }

  .mini-stats div,
  .pagination a {
    padding: 12px;
  }

  .article-header {
    padding-bottom: 18px;
  }

  .article-content {
    padding-top: 20px;
  }
}

.admin-body {
  min-height: 100vh;
}

.admin-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at top, rgba(74, 136, 185, 0.12), transparent 32%),
    linear-gradient(180deg, #f6fafd 0%, #eef4f9 100%);
}

.admin-login-card {
  width: min(100%, 460px);
  padding: 40px 36px;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.02);
}

.admin-login-card h1 {
  margin: 0;
  font-size: 30px;
}

.admin-login-text {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.admin-login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.admin-login-form label {
  display: grid;
  gap: 8px;
}

.admin-login-form span {
  font-weight: 600;
}

.admin-login-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d2e5ee;
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
}

.admin-login-form input:focus {
  outline: 0;
  border-color: #8fb4d2;
  box-shadow: 0 0 0 3px rgba(74, 136, 185, 0.14);
}

.admin-login-actions {
  display: grid;
  gap: 12px;
}

.admin-login-tip {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-main {
  padding-top: 24px;
}

.admin-dashboard-layout {
  display: block;
}

.admin-content-stack {
  display: grid;
  gap: 20px;
}

.admin-overview-panel {
  padding-bottom: 22px;
}

.admin-overview-header {
  align-items: flex-start;
}

.admin-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-summary-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.admin-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.admin-summary-card strong {
  color: var(--primary-dark);
  font-size: 34px;
  line-height: 1;
}

.admin-summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-summary-card-wide {
  grid-column: span 1;
}

.admin-summary-label {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.admin-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d8e8f1;
  border-radius: 999px;
  color: var(--text);
  background: #ffffff;
  transition: all 0.2s ease;
}

.admin-quick-links a:hover,
.admin-quick-links a:focus-visible {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
}

.admin-sections-layout {
  margin-top: 0;
}

.admin-panel {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid #edf2f7;
}

.admin-panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-panel-header h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.admin-panel-text {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.admin-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #334155;
  background: #f8fafc;
  font-size: 14px;
}

.admin-toolbar,
.admin-form-grid,
.admin-editor-actions {
  display: grid;
  gap: 12px;
}

.admin-toolbar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

.admin-sections-toolbar {
  grid-template-columns: 1fr auto;
}

.admin-toolbar select,
.admin-toolbar input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.admin-toolbar input:focus,
.admin-toolbar select:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: 0;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(74, 136, 185, 0.2);
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 900px;
  overflow: auto;
  padding-right: 4px;
}

.admin-list-item {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  color: var(--text);
  text-align: left;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-list-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.admin-list-item strong {
  font-size: 16px;
  line-height: 1.5;
}

.admin-list-item span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.admin-list-type {
  color: var(--primary) !important;
  font-weight: 700;
}

.admin-list-direct-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px !important;
  font-weight: 600;
}

.admin-list-direct-status.is-bound {
  color: #0f7f52 !important;
  background: #edf9f2;
}

.admin-list-direct-status.is-unbound {
  color: #8a5a00 !important;
  background: #fff7e8;
}

.admin-empty {
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
  font-size: 14px;
}

.admin-message {
  min-height: 0;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #475569;
  background: #f8fafc;
  line-height: 1.6;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.admin-message.success {
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.admin-message.error {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form label span {
  font-weight: 600;
  color: #334155;
  font-size: 14px;
}

.admin-field-hint {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin-top: -6px;
  margin-bottom: 8px;
}

.admin-visual-editor {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.admin-visual-editor[hidden] {
  display: none;
}

.admin-visual-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-visual-editor-header h3 {
  margin: 6px 0 8px;
  color: #0f172a;
}

.admin-visual-editor-header p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
  font-size: 14px;
}

.admin-home-card-editor {
  display: grid;
  gap: 16px;
}

.admin-home-card-item {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.admin-home-card-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-home-card-item-head strong {
  font-size: 16px;
  color: #0f172a;
}

.admin-home-card-item-head span {
  color: #64748b;
  font-size: 13px;
}

.admin-home-card-preview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.admin-home-card-preview-media {
  overflow: hidden;
  border-radius: 14px;
  min-height: 132px;
  background:
    linear-gradient(135deg, rgba(35, 67, 94, 0.92), rgba(74, 136, 185, 0.78)),
    linear-gradient(45deg, #9abada, #edf4fb);
}

.admin-home-card-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-home-card-preview-body {
  display: grid;
  gap: 8px;
  padding: 6px 0;
}

.admin-home-card-preview-body em {
  color: var(--primary);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.admin-home-card-preview-body strong {
  color: #0f172a;
  font-size: 20px;
}

.admin-home-card-preview-body p {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

.admin-home-card-preview-body ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #64748b;
}

.admin-home-card-fields {
  display: grid;
  gap: 12px;
}

.admin-home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-home-card-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-upload-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  transition: all 0.2s ease;
}
.admin-upload-card:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.admin-upload-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-upload-heading span:first-child {
  font-weight: 600;
}

.admin-upload-tip {
  color: #64748b;
  font-size: 13px;
}

.admin-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-upload-actions input[type="file"] {
  flex: 1 1 240px;
}

.admin-cover-preview {
  display: grid;
  gap: 10px;
}

.admin-cover-preview img {
  width: 100%;
  max-width: 260px;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.admin-upload-list {
  display: grid;
  gap: 10px;
}

.admin-upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.admin-upload-item strong,
.admin-upload-item span {
  display: block;
}

.admin-upload-item span {
  color: var(--muted);
  line-height: 1.6;
  word-break: break-all;
}

.admin-upload-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.admin-upload-item-actions button,
.admin-upload-item-actions a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  color: #3b82f6;
  background: #eff6ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}
.admin-upload-item-actions button:hover,
.admin-upload-item-actions a:hover {
  background: #dbeafe;
  color: #2563eb;
}
.admin-upload-item-actions button[data-remove-attachment],
.admin-upload-item-actions button[data-remove-section-attachment] {
  color: #ef4444;
  background: #fef2f2;
}
.admin-upload-item-actions button[data-remove-attachment]:hover,
.admin-upload-item-actions button[data-remove-section-attachment]:hover {
  background: #fee2e2;
  color: #dc2626;
}

.article-attachments {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid #dceaf1;
  border-radius: 14px;
  background: #fbfdff;
}

.article-attachments h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.article-attachments a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid #e7f0f4;
}

.article-attachments a:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.admin-form textarea {
  resize: vertical;
  line-height: 1.8;
  font-family: Consolas, "Courier New", monospace;
}

[data-admin-section="home-banner"] .admin-layout {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

[data-admin-section="home-banner"] .admin-panel {
  position: relative;
  overflow: hidden;
}

[data-admin-section="home-banner"] .admin-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.88), rgba(14, 165, 233, 0.68));
  pointer-events: none;
}

.admin-banner-guide {
  display: grid;
  gap: 16px;
}

.admin-banner-guide-card {
  padding: 18px 20px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #f2f7fc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-banner-guide-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 15px;
}

.admin-banner-guide-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

.admin-banner-example {
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  border-radius: 12px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.7;
  font-family: "Consolas", "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

[data-admin-section="home-banner"] .admin-form {
  gap: 18px;
}

[data-admin-section="home-banner"] .admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-admin-section="home-banner"] .admin-form textarea {
  min-height: 420px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}

[data-admin-section="home-banner"] .admin-panel-soft {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.8);
}

.admin-editor-actions {
  grid-template-columns: repeat(2, auto);
}

.admin-action-button {
  min-width: 108px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.admin-action-button.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 4px 10px rgba(74, 136, 185, 0.2);
}

.admin-action-button.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(74, 136, 185, 0.3);
}

.admin-upload-card .btn-secondary,
.admin-filter-bar .btn-secondary,
.admin-editor-actions .btn-secondary {
  color: #1f4b63;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.admin-upload-card .btn-secondary:hover,
.admin-filter-bar .btn-secondary:hover,
.admin-editor-actions .btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.admin-danger-button {
  color: #ffffff !important;
  background: linear-gradient(90deg, #ef4444, #f87171) !important;
  border: 0 !important;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2) !important;
}

.admin-danger-button:hover {
  background: linear-gradient(90deg, #dc2626, #ef4444) !important;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3) !important;
}

@media (max-width: 1100px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .admin-toolbar,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-editor-actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .admin-header-tools {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .admin-login-card {
    padding: 24px 20px;
  }
}

@media (max-width: 560px) {
  .admin-upload-item,
  .admin-upload-heading,
  .admin-upload-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-upload-item-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-editor-actions {
    grid-template-columns: 1fr;
  }

  .admin-action-button {
    width: 100%;
  }
}

/* --- 栏目动态区块编辑器样式 --- */
.admin-blocks-editor {
  margin-top: 1rem;
}
.admin-block-group {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: #fff;
  overflow: hidden;
  transition: all 0.2s ease;
}
.admin-block-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  border-bottom: 1px solid transparent;
}
.admin-block-group:hover {
  border-color: #cbd5e1;
}
.admin-block-header:hover {
  background: #f1f5f9;
}
.admin-block-body {
  display: none;
  padding: 1rem;
  border-top: 1px solid #ddd;
}
.admin-block-body.active {
  display: block;
}
.dynamic-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}
.dynamic-item textarea, .dynamic-item input {
  flex: 1;
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 4px;
}

/* --- 后台新版布局样式 --- */
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 26%),
    linear-gradient(180deg, #eff4fb 0%, #f7f9fc 100%);
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  align-content: start;
  gap: 28px;
  min-height: 100vh;
  padding: 28px 24px;
  color: #dbe7fb;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(18, 40, 71, 0.98) 100%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), transparent 48%);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-sidebar-brand {
  display: grid;
  gap: 16px;
}

.admin-sidebar-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-sidebar-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.admin-sidebar-brand-text h1 {
  margin: 4px 0 8px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.3;
}

.admin-sidebar-brand-text p {
  margin: 0;
  color: rgba(219, 231, 251, 0.78);
  line-height: 1.7;
  font-size: 14px;
}

.admin-sidebar-eyebrow,
.admin-topbar-eyebrow {
  margin: 0;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.admin-sidebar-nav {
  display: grid;
  gap: 10px;
}

.admin-nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  color: rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible,
.admin-nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.34), rgba(56, 189, 248, 0.18));
  border-color: rgba(125, 211, 252, 0.4);
  transform: translateX(2px);
}

.admin-sidebar-section {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar-title {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.admin-sidebar-note-block {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-sidebar-subtitle {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 13px;
  font-weight: 600;
}

.admin-sidebar-links {
  display: grid;
  gap: 10px;
}

.admin-sidebar-links a {
  color: rgba(219, 231, 251, 0.84);
  font-size: 14px;
  line-height: 1.6;
}

.admin-sidebar-links a:hover {
  color: #ffffff;
}

.admin-sidebar-notes {
  margin: 0;
  padding-left: 18px;
  color: rgba(219, 231, 251, 0.78);
  line-height: 1.8;
  font-size: 13px;
}

.admin-workspace {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 24px 28px 36px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.admin-topbar h2 {
  margin: 6px 0 8px;
  color: #0f172a;
  font-size: 30px;
}

.admin-topbar-text {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

.admin-hero-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.92), rgba(14, 116, 144, 0.86)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  box-shadow: 0 18px 42px rgba(29, 78, 216, 0.18);
}

.admin-hero-copy h3 {
  margin: 8px 0 10px;
  color: #ffffff;
  font-size: 28px;
}

.admin-hero-copy p:last-child {
  margin: 0;
  max-width: 820px;
  color: rgba(239, 246, 255, 0.9);
  line-height: 1.8;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-quick-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.admin-quick-status-card {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.04);
}

.admin-quick-status-card span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.admin-quick-status-card strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1.25;
  word-break: break-word;
}

.admin-quick-status-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
  font-size: 13px;
}

.admin-jump-button {
  min-width: 150px;
}

.admin-view-section {
  display: none;
  gap: 20px;
}

.admin-view-section.is-active {
  display: grid;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-header h2 {
  margin: 6px 0 8px;
  font-size: 28px;
  color: #0f172a;
}

.admin-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-overview-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.admin-summary-card,
.admin-panel {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.admin-topbar > *,
.admin-hero-card > *,
.admin-panel > * {
  position: relative;
  z-index: 1;
}

.admin-summary-card {
  padding: 24px;
}

.admin-summary-card strong {
  font-size: 36px;
}

.admin-panel {
  position: relative;
  padding: 24px;
}

.admin-panel-soft {
  background: rgba(255, 255, 255, 0.76);
}

.admin-layout {
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.admin-panel-header {
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.admin-panel-header h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  color: #0f172a;
}

.admin-panel-text {
  max-width: none;
}

.admin-header-tools {
  gap: 14px;
}

.admin-status {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 600;
}

.admin-toolbar {
  margin-bottom: 18px;
  gap: 12px;
}

.admin-toolbar-posts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-toolbar-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-toolbar .tab {
  width: 100%;
  min-width: 96px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(74, 136, 185, 0.18);
}

.admin-toolbar select,
.admin-toolbar input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 13px 16px;
  border-radius: 12px;
  background: #f8fafc;
}

.admin-form {
  gap: 16px;
}

.admin-post-form {
  display: grid;
  gap: 20px;
}

.admin-post-form-section {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.admin-post-form-section-hero {
  border-color: #bfdbfe;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34%),
    linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.admin-post-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-post-section-heading h3 {
  margin: 6px 0 8px;
  color: #0f172a;
  font-size: 20px;
}

.admin-post-section-heading p:not(.section-en) {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.admin-post-settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-post-core-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.admin-post-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-post-summary-grid,
.admin-post-content-field {
  display: grid;
}

.admin-post-title-field,
.admin-post-tags-field {
  min-width: 0;
}

.admin-post-content-field textarea {
  min-height: 380px;
  font-family: "Consolas", "Courier New", monospace;
  line-height: 1.7;
}

.admin-post-assets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-post-asset-card {
  display: grid;
  gap: 14px;
  height: 100%;
}

.admin-post-attachment-card {
  margin-top: 2px;
}

.admin-post-asset-card .admin-upload-actions {
  align-items: center;
}

.admin-module-panel {
  color: #e2e8f0;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 28%),
    linear-gradient(180deg, #17314f 0%, #132c47 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 48px rgba(15, 23, 42, 0.18);
}

.admin-module-panel .section-en,
.admin-module-panel h2,
.admin-module-panel .admin-panel-text,
.admin-module-panel label span {
  color: inherit;
}

.admin-module-panel-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border: 0;
}

.admin-module-actions {
  display: grid;
  gap: 12px;
}

.admin-module-actions .admin-action-button {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.admin-module-reset-button {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

.admin-module-light-button {
  color: #17314f;
  border: 0;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.admin-module-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-module-stat-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(51, 76, 108, 0.92) 0%, rgba(38, 61, 92, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-module-stat-card span {
  color: rgba(226, 232, 240, 0.88);
  font-size: 13px;
}

.admin-module-stat-card strong {
  font-size: 24px;
  line-height: 1;
}

.admin-module-filter-field {
  display: grid;
  gap: 10px;
}

.admin-module-filter-field span {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
}

.admin-module-panel select,
.admin-module-panel input {
  border: 1px solid rgba(191, 219, 254, 0.25);
  color: #f8fafc;
  background: rgba(51, 76, 108, 0.88);
}

.admin-module-panel select::placeholder,
.admin-module-panel input::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

.admin-module-search-button,
.admin-module-filter-field-hidden {
  display: none;
}

.admin-module-panel .admin-message {
  margin-bottom: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.16);
}

.admin-module-panel .admin-message.error {
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.18);
}

.admin-module-panel .admin-message.success {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.18);
}

.admin-module-list-shell {
  display: grid;
}

.admin-module-groups {
  display: grid;
  gap: 12px;
}

.admin-module-group-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(45, 69, 100, 0.86) 0%, rgba(34, 56, 86, 0.92) 100%);
}

.admin-module-group-summary {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.admin-module-group-summary::-webkit-details-marker {
  display: none;
}

.admin-module-group-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(226, 232, 240, 0.82);
  border-bottom: 2px solid rgba(226, 232, 240, 0.82);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.admin-module-group-card[open] .admin-module-group-arrow {
  transform: rotate(45deg);
}

.admin-module-group-title {
  color: #f8fafc;
  font-size: 17px;
  font-weight: 700;
}

.admin-module-group-meta {
  color: rgba(226, 232, 240, 0.82);
  font-size: 13px;
}

.admin-module-group-badge {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.admin-module-group-items {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.admin-module-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.18);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-module-item:hover {
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(30, 41, 59, 0.34);
  transform: translateY(-1px);
}

.admin-module-item.is-active {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.24);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}

.admin-module-item-main,
.admin-module-item-side {
  display: grid;
  gap: 6px;
}

.admin-module-item-main strong {
  color: #ffffff;
  font-size: 15px;
}

.admin-module-item-main span,
.admin-module-item-side span,
.admin-module-item-side em {
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
  font-style: normal;
}

.admin-module-item-side {
  justify-items: end;
}

.admin-editor-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-editor-meta-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.admin-editor-meta-card span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.admin-editor-meta-card strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.65;
  word-break: break-word;
}

.admin-form-grid {
  gap: 14px;
}

.admin-field-hint {
  padding: 12px 14px;
  border-left: 4px solid #93c5fd;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e40af;
}

.admin-list {
  gap: 12px;
  max-height: 780px;
}

.admin-list-item {
  padding: 18px 18px 16px;
  border-radius: 18px;
  border-color: #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-list-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 18px 26px rgba(59, 130, 246, 0.08);
}

.admin-list-item.is-active {
  border-color: rgba(37, 99, 235, 0.65);
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  box-shadow: 0 18px 28px rgba(37, 99, 235, 0.12);
}

.admin-message {
  margin-bottom: 18px;
  border-radius: 14px;
}

.admin-upload-card {
  border-radius: 18px;
  border-style: solid;
  border-color: #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}

.admin-upload-card:hover {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.admin-upload-heading {
  align-items: flex-start;
}

.admin-upload-item {
  border-radius: 14px;
}

.admin-mapping-list {
  display: grid;
  gap: 12px;
}

.admin-mapping-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.admin-mapping-item strong {
  color: #0f172a;
  font-size: 15px;
}

.admin-mapping-item span {
  color: #64748b;
  line-height: 1.7;
  font-size: 13px;
}

.admin-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-action-button {
  min-width: 120px;
  border-radius: 12px;
  font-weight: 600;
}

.admin-action-button.btn-primary {
  box-shadow: 0 12px 24px rgba(74, 136, 185, 0.22);
}

@media (max-width: 1280px) {
  .admin-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .admin-quick-status-grid,
  .admin-overview-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .admin-quick-status-grid,
  .admin-overview-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-toolbar-posts,
  .admin-toolbar-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-post-settings-grid,
  .admin-post-meta-grid,
  .admin-post-assets-grid,
  .admin-post-core-grid {
    grid-template-columns: 1fr;
  }

  .admin-module-item {
    grid-template-columns: 1fr;
  }

  .admin-module-item-side {
    justify-items: start;
  }
}

@media (max-width: 820px) {
  .admin-workspace {
    padding: 18px 16px 28px;
  }

  .admin-sidebar {
    padding: 18px 16px;
  }

  .admin-topbar,
  .admin-hero-card,
  .admin-section-header,
  .admin-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header-tools,
  .admin-editor-actions,
  .admin-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-topbar,
  .admin-hero-card,
  .admin-panel,
  .admin-summary-card {
    padding: 20px;
  }

  .admin-quick-status-grid,
  .admin-toolbar-posts,
  .admin-toolbar-sections,
  .admin-editor-meta,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-post-form-section {
    padding: 18px;
  }

  .admin-post-section-heading {
    flex-direction: column;
  }

  .admin-module-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-module-group-summary {
    grid-template-columns: 14px minmax(0, 1fr) auto;
  }

  .admin-module-group-meta {
    display: none;
  }
}

@media (max-width: 560px) {
  .admin-topbar h2,
  .admin-section-header h2 {
    font-size: 24px;
  }

  .admin-hero-copy h3 {
    font-size: 22px;
  }

  .admin-status,
  .admin-action-button,
  .admin-toolbar .tab {
    width: 100%;
  }
}

/* --- 后台登录页与列表细化 --- */
.admin-login-body {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 24%),
    linear-gradient(135deg, #eaf1fb 0%, #f7f9fc 100%);
}

.admin-login-shell {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(16px);
}

.admin-login-showcase {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100%;
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92)),
    linear-gradient(135deg, rgba(125, 211, 252, 0.14), transparent 55%);
}

.admin-login-showcase-inner {
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 620px;
}

.admin-login-showcase h1 {
  margin: 0;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.25;
}

.admin-login-showcase-text {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.9;
  font-size: 16px;
}

.admin-login-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.admin-login-feature-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.admin-login-feature-card strong {
  color: #ffffff;
  font-size: 16px;
}

.admin-login-feature-card span {
  color: rgba(219, 231, 251, 0.84);
  line-height: 1.8;
  font-size: 14px;
}

.admin-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.82));
}

.admin-login-card {
  width: min(100%, 460px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-login-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 32px;
}

.admin-login-text {
  margin: 12px 0 0;
  color: #64748b;
  line-height: 1.85;
}

.admin-login-form {
  gap: 18px;
  margin-top: 26px;
}

.admin-login-form label {
  gap: 10px;
}

.admin-login-form span {
  color: #334155;
  font-weight: 700;
}

.admin-login-form input {
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  color: #0f172a;
  background: #f8fbff;
}

.admin-login-form input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.admin-login-actions {
  display: grid;
  gap: 12px;
}

.admin-login-tip {
  margin-top: 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.admin-list-shell {
  display: grid;
  gap: 12px;
}

.admin-list-head {
  display: grid;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  color: #1d4ed8;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-post-list-head,
.admin-section-list-head {
  grid-template-columns: 1.2fr 1.6fr 0.9fr 0.9fr;
}

.admin-list {
  padding-right: 2px;
}

@media (max-width: 1100px) {
  .admin-login-shell {
    grid-template-columns: 1fr;
  }

  .admin-login-showcase,
  .admin-login-panel {
    padding: 28px 24px;
  }
}

@media (max-width: 820px) {
  .admin-login-body {
    padding: 16px;
  }

  .admin-login-shell {
    min-height: calc(100vh - 32px);
  }

  .admin-login-showcase h1 {
    font-size: 30px;
  }

  .admin-list-head {
    display: none;
  }
}

@media (max-width: 560px) {
  .admin-login-showcase,
  .admin-login-panel {
    padding: 22px 18px;
  }

  .admin-login-card h2 {
    font-size: 26px;
  }
}

/* 文章内容页面样式 */
.article-page {
  background: linear-gradient(180deg, #f8fbfd 0%, #eef6fa 100%);
}

.article-page .article-main {
  padding: 40px 0 72px;
}

.article-page .article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.article-page .article-sidebar {
  position: sticky;
  top: 24px;
  height: fit-content;
}

.article-page .article-nav-panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.article-page .article-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.article-page .nav-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.article-page .nav-link-item:hover {
  background: #f6fbfd;
  border-color: var(--primary);
}

.article-page .nav-link-item.active {
  background: linear-gradient(90deg, rgba(var(--primary), 0.08), rgba(var(--accent), 0.08));
  border-color: var(--primary);
  color: var(--primary-dark);
}

.article-page .nav-icon {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary);
}

.article-page .nav-text {
  font-size: 15px;
  font-weight: 500;
}

.article-page .article-recent-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.article-page .section-title {
  margin: 0 0 18px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
}

.article-page .recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-page .recent-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-page .recent-list a {
  color: var(--text);
  text-decoration: none;
  line-height: 1.6;
  font-size: 14px;
  transition: color 0.2s ease;
}

.article-page .recent-list a:hover {
  color: var(--primary);
}

.article-page .recent-list span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.article-page .article-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1024px) {
  .article-page .article-layout {
    grid-template-columns: 1fr;
  }

  .article-page .article-sidebar {
    display: none;
  }

  .article-page .article-content {
    padding: 32px 24px;
  }
}

.article-page .article-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px solid #f0f0f0;
}

.article-page .article-category {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
  background: #e0f5fb;
}

.article-page .article-title {
  margin: 0 0 20px 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-dark);
  text-align: center;
}

.article-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.article-page .meta-item {
  font-size: 14px;
  color: var(--muted);
}

.article-page .meta-item strong {
  color: var(--text);
  font-weight: 600;
}

.article-page .article-summary {
  padding: 24px;
  background: #f9fafb;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
}

.article-page .article-summary p {
  margin: 0;
  line-height: 1.8;
  font-size: 15px;
  color: var(--text);
}







.article-page .article-body blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: #f9fafb;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
}



.article-page .article-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 2px solid #f0f0f0;
}

.article-page .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.article-page .tag {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-dark);
  background: #e0f5fb;
  text-decoration: none;
}

.article-page .article-nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.article-page .nav-btn {
  flex: 1;
}

.article-page .nav-btn a {
  display: block;
  padding: 14px 20px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: #f9fafb;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.article-page .nav-btn a:hover {
  background: linear-gradient(90deg, rgba(var(--primary), 0.08), rgba(var(--accent), 0.08));
  border-color: var(--primary);
  color: var(--primary-dark);
}

.article-page .article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
}

.article-page .share-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.article-page .share-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}

.article-page .share-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* 文章目录 */
.article-page .article-toc {
  margin: 0 -24px 32px -24px;
  padding: 24px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

.article-page .article-toc h4 {
  margin: 0 0 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}

.article-page .article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-page .article-toc ul li a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.article-page .article-toc ul li a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .article-page .article-title {
    font-size: 28px;
  }

  .article-page .article-content {
    padding: 24px 20px;
  }

  .article-page .article-meta {
    flex-direction: column;
    gap: 12px;
  }

  .article-page .article-nav-links {
    flex-direction: column;
  }

}
/* =========================================================
   党建思政列表页优化
   目标：主体宽度与顶部导航栏一致；标题字号与行距收紧；
         悬浮效果参考通知公告列表，但保持本站蓝色主题。
   ========================================================= */

/* 主体整体宽度与 .container 保持一致，取消原 920px 限制 */
.party-work-main .party-work-layout {
  width: 100%;
  max-width: none;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.party-work-sidebar,
.party-work-panel {
  width: 100%;
  min-width: 0;
}

/* 内容面板略微优化留白 */
.party-work-panel {
  padding: 24px 28px 22px;
}

.party-work-panel-head {
  margin-bottom: 4px;
  padding-bottom: 16px;
}

/* 列表本体 */
.party-work-list {
  display: grid;
  margin-top: 2px;
}

/* 单条文章：行距与上下留白适当收紧 */
.party-work-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 20px;
  align-items: center;
  padding: 13px 18px 13px 28px;
  border-bottom: 1px solid #e5edf5;
  background: #ffffff;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

/* 左侧蓝色圆点，参考第二张图的列表表现 */
.party-work-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
  transition: background 0.22s ease, transform 0.22s ease;
}

/* 文章标题字号稍小、行距更紧 */
.party-work-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
  transition: color 0.22s ease;
}

/* 日期 */
.party-work-item time {
  color: var(--muted);
  text-align: right;
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
  transition: color 0.22s ease;
}

/* 悬浮时整行蓝色高亮，颜色沿用当前站点主题 */
.party-work-item:hover,
.party-work-item:focus,
.party-work-item:focus-visible,
.party-work-item:focus-within {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  box-shadow: 0 5px 14px rgba(23, 67, 148, 0.12);
}

.party-work-item:hover .party-work-title,
.party-work-item:focus .party-work-title,
.party-work-item:focus-visible .party-work-title,
.party-work-item:focus-within .party-work-title {
  color: #ffffff;
}

.party-work-item:hover time,
.party-work-item:focus time,
.party-work-item:focus-visible time,
.party-work-item:focus-within time {
  color: rgba(255, 255, 255, 0.92);
}

.party-work-item:hover::before,
.party-work-item:focus::before,
.party-work-item:focus-visible::before,
.party-work-item:focus-within::before {
  background: #ffffff;
  transform: translateY(-50%) scale(1.12);
}

.party-work-item:first-child {
  border-radius: 4px 4px 0 0;
}

.party-work-item:last-child {
  border-bottom: 0;
  border-radius: 0 0 4px 4px;
}

/* 中等屏幕：保持结构清晰 */
@media (max-width: 1100px) {
  .party-work-main .party-work-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* 平板 */
@media (max-width: 820px) {
  .party-work-main .party-work-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .party-work-item {
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 12px;
    padding: 12px 14px 12px 26px;
  }

  .party-work-title {
    font-size: 14px;
    line-height: 1.45;
  }

  .party-work-item::before {
    left: 12px;
  }
}

/* 手机 */
@media (max-width: 560px) {
  .party-work-item {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 11px 14px 11px 26px;
  }

  .party-work-item time {
    text-align: left;
  }
}


/* =========================================================
   党建思政主体区域最终对齐修正
   与顶部导航栏的 .container 左右边界保持一致
   ========================================================= */

.party-work-main .container.party-work-layout {
    width: min(1400px, calc(100% - 24px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.party-work-sidebar,
.party-work-panel {
    width: 100%;
    min-width: 0;
}

.party-work-panel {
    padding: 24px 28px 22px;
}

.party-work-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 20px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e5edf5;
    background: #ffffff;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
    box-sizing: border-box;
}

.party-work-title {
    color: #174394;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    padding-left: 4px;
    transition: color 0.22s ease;
    word-break: break-word;
}

.party-work-item time {
    color: #71879b;
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
    white-space: nowrap;
    transition: color 0.22s ease;
}

.party-work-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4a76b9;
    transform: translateY(-50%);
    transition: background 0.22s ease, transform 0.22s ease;
}

.party-work-item:hover,
.party-work-item:focus-within {
    background: linear-gradient(90deg, #2457a6 0%, #4a76b9 100%);
    box-shadow: 0 5px 14px rgba(23, 67, 148, 0.12);
}

.party-work-item:hover .party-work-title,
.party-work-item:focus-within .party-work-title,
.party-work-item:hover time,
.party-work-item:focus-within time {
    color: #ffffff;
}

.party-work-item:hover::before,
.party-work-item:focus-within::before {
    background: #ffffff;
    transform: translateY(-50%) scale(1.15);
}

@media (max-width: 1100px) {
    .party-work-main .container.party-work-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .party-work-main .container.party-work-layout {
        width: min(100% - 24px, 1200px);
        gap: 18px;
    }

    .party-work-item {
        grid-template-columns: minmax(0, 1fr) 105px;
        gap: 12px;
        padding: 13px 14px;
    }

    .party-work-title {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 560px) {
    .party-work-main .container.party-work-layout {
        width: calc(100% - 20px);
    }

    .party-work-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px 14px;
    }

    .party-work-item time {
        text-align: left;
        padding-left: 4px;
    }
}

/* =========================================================
   首页头部兼容修正
   修复最终版 CSS 合并后首页 Header 背景与博达搜索组件样式丢失的问题
   ========================================================= */

/* 首页 Header：恢复浅蓝色渐变背景，不再显示背景图片 */
.site-header.site-header-home {
  position: relative;
  overflow: hidden;
  background-image: none !important;
  background: linear-gradient(
    100deg,
    #eef9ff 0%,
    #dff2ff 32%,
    #c9e8fb 65%,
    #b9ddf5 100%
  ) !important;
  border-bottom: 1px solid #dbe9f1;
}

/* 清除旧的 Header 伪元素背景，避免覆盖浅蓝背景 */
.site-header.site-header-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none !important;
  pointer-events: none;
}

/* 不再显示原有右侧纹理 */
.site-header.site-header-home .header-pattern {
  display: none !important;
}

/* 保证 Header 内容处于正常层级 */
.site-header.site-header-home .header-inner {
  position: relative;
  z-index: 2;
}

/* 头部工具区稳定布局 */
.site-header.site-header-home .header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------
   博达全文检索组件：当前推荐结构
   .search-component-wrap > .site-search-form > .site-search-box
   --------------------------------------------------------- */
.search-component-wrap {
  width: 320px;
  flex: 0 0 320px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.search-component-wrap .site-search-form,
.site-search-form {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.search-component-wrap .site-search-box,
.site-search-box {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d6e7ef;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
}

.search-component-wrap .site-search-input,
.site-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  color: #174394;
  background: #ffffff;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 16px;
  line-height: 44px;
  box-shadow: none !important;
  box-sizing: border-box;
}

.search-component-wrap .site-search-input::placeholder,
.site-search-input::placeholder {
  color: #8aa4b8;
  opacity: 1;
}

.search-component-wrap .site-search-button,
.site-search-button {
  flex: 0 0 72px;
  width: 72px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  color: #ffffff;
  background: #4a76b9;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 16px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  box-shadow: none !important;
  box-sizing: border-box;
}

.search-component-wrap .site-search-button:hover,
.search-component-wrap .site-search-button:focus-visible,
.site-search-button:hover,
.site-search-button:focus-visible {
  background: #174394;
}

/* ---------------------------------------------------------
   兼容旧页面仍然使用 <form class="search-box"> 的情况
   防止出现浏览器默认 input/button 样式
   --------------------------------------------------------- */
.site-header.site-header-home .search-box {
  display: flex;
  align-items: stretch;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  height: 46px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d6e7ef;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
}

.site-header.site-header-home .search-box input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  outline: none;
  color: #174394;
  background: #ffffff;
  font-size: 16px;
  line-height: 44px;
  box-sizing: border-box;
}

.site-header.site-header-home .search-box input::placeholder {
  color: #8aa4b8;
}

.site-header.site-header-home .search-box button {
  flex: 0 0 72px;
  width: 72px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: #4a76b9;
  font-size: 16px;
  line-height: 44px;
  cursor: pointer;
  box-sizing: border-box;
}

.site-header.site-header-home .search-box button:hover {
  background: #174394;
}

/* 返回学校首页按钮与搜索框同高 */
.site-header.site-header-home .header-link-card {
  min-width: 136px;
  min-height: 46px;
  height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* 平板 */
@media (max-width: 820px) {
  .search-component-wrap {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .site-header.site-header-home .search-box {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .site-header.site-header-home .header-tools {
    width: 100%;
    align-items: stretch;
  }
}

/* 手机 */
@media (max-width: 560px) {
  .search-component-wrap .site-search-box,
  .site-search-box,
  .site-header.site-header-home .search-box {
    height: 42px;
  }

  .search-component-wrap .site-search-input,
  .site-search-input,
  .site-header.site-header-home .search-box input {
    height: 40px;
    line-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .search-component-wrap .site-search-button,
  .site-search-button,
  .site-header.site-header-home .search-box button {
    flex-basis: 64px;
    width: 64px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
  }

  .site-header.site-header-home .header-link-card {
    min-width: 116px;
    min-height: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }
}

/* =========================================================
   党建思政列表悬浮效果最终修正
   解决博达组件中仅标题文字变色、整行背景未高亮的问题
   ========================================================= */

/* 确保每一条文章本身可以承载整行背景 */
.party-work-list .party-work-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #ffffff !important;
}

/* 整行悬浮：蓝色主题背景 */
.party-work-list .party-work-item:hover,
.party-work-list .party-work-item:focus,
.party-work-list .party-work-item:focus-within {
  background: linear-gradient(90deg, #2457a6 0%, #4a76b9 100%) !important;
  box-shadow: 0 5px 14px rgba(23, 67, 148, 0.14) !important;
}

/* 博达组件可能把标题输出为 a，统一覆盖链接自身 hover 颜色 */
.party-work-list .party-work-item:hover .party-work-title,
.party-work-list .party-work-item:hover .party-work-title:hover,
.party-work-list .party-work-item:hover a,
.party-work-list .party-work-item:focus-within .party-work-title,
.party-work-list .party-work-item:focus-within a {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* 日期同步变白 */
.party-work-list .party-work-item:hover time,
.party-work-list .party-work-item:focus-within time,
.party-work-list .party-work-item:hover span,
.party-work-list .party-work-item:focus-within span {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* 左侧圆点同步变白 */
.party-work-list .party-work-item:hover::before,
.party-work-list .party-work-item:focus-within::before {
  background: #ffffff !important;
}

/* 防止其它全站 a:hover 规则把标题重新改回蓝色 */
.party-work-list a.party-work-title:hover,
.party-work-list .party-work-title:hover {
  color: inherit;
}

/* 如果博达模板直接把每条结果输出成 a.party-work-item，也同样生效 */
a.party-work-item:hover,
a.party-work-item:focus {
  color: #ffffff !important;
  background: linear-gradient(90deg, #2457a6 0%, #4a76b9 100%) !important;
  text-decoration: none !important;
}

/* 如果实际模板外层不是 party-work-item，兼容列表中的直接链接结构 */
.party-work-list > a:hover,
.party-work-list > a:focus {
  color: #ffffff !important;
  background: linear-gradient(90deg, #2457a6 0%, #4a76b9 100%) !important;
  text-decoration: none !important;
}



/* =========================================================
   五个文章列表页面最终统一样式
   1. 最新新闻
   2. 近期公告
   3. 学术交流
   4. 人才培养
   5. 党建思政
   ========================================================= */


/* =========================================================
   第一组：notice-box 结构
   适用：最新新闻、近期公告、学术交流、人才培养
   ========================================================= */

/* 每条文章记录 */
html body[data-page-key="news"]
.simple-content-panel .notice-box .notice-item,

html body[data-page-key="notices"]
.simple-content-panel .notice-box .notice-item,

html body[data-page-key="exchange"]
#events .notice-box .notice-item,

html body.party-work-page[data-page-key="talent-training"]
.party-work-list .notice-box .notice-item {
  height: auto !important;
  min-height: 60px !important;

  padding-top: 10px !important;
  padding-bottom: 10px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;

  box-sizing: border-box !important;
  align-items: center !important;
}


/* 标题外层 h4 */
html body[data-page-key="news"]
.simple-content-panel .notice-box h4.notice-item-title,

html body[data-page-key="notices"]
.simple-content-panel .notice-box h4.notice-item-title,

html body[data-page-key="exchange"]
#events .notice-box h4.notice-item-title,

html body.party-work-page[data-page-key="talent-training"]
.party-work-list .notice-box h4.notice-item-title {
  margin-top: 0 !important;
  margin-bottom: 0 !important;

  padding-top: 0 !important;
  padding-bottom: 0 !important;

  font-size: 16px !important;
  line-height: 1.35 !important;
}


/* 标题链接 */
html body[data-page-key="news"]
.simple-content-panel .notice-box h4.notice-item-title > a,

html body[data-page-key="notices"]
.simple-content-panel .notice-box h4.notice-item-title > a,

html body[data-page-key="exchange"]
#events .notice-box h4.notice-item-title > a,

html body.party-work-page[data-page-key="talent-training"]
.party-work-list .notice-box h4.notice-item-title > a {
  font-size: 16px !important;
  line-height: 1.35 !important;
}


/* 发布日期 */
html body[data-page-key="news"]
.simple-content-panel .notice-box .notice-item-date,

html body[data-page-key="notices"]
.simple-content-panel .notice-box .notice-item-date,

html body[data-page-key="exchange"]
#events .notice-box .notice-item-date,

html body.party-work-page[data-page-key="talent-training"]
.party-work-list .notice-box .notice-item-date {
  font-size: 14px !important;
  line-height: 1.35 !important;
}


/* 兼容日期使用 time 或普通 span 的情况 */
html body[data-page-key="news"]
.simple-content-panel .notice-box .notice-item > time,

html body[data-page-key="news"]
.simple-content-panel .notice-box .notice-item > span,

html body[data-page-key="notices"]
.simple-content-panel .notice-box .notice-item > time,

html body[data-page-key="notices"]
.simple-content-panel .notice-box .notice-item > span,

html body[data-page-key="exchange"]
#events .notice-box .notice-item > time,

html body[data-page-key="exchange"]
#events .notice-box .notice-item > span,

html body.party-work-page[data-page-key="talent-training"]
.party-work-list .notice-box .notice-item > time,

html body.party-work-page[data-page-key="talent-training"]
.party-work-list .notice-box .notice-item > span {
  font-size: 14px !important;
  line-height: 1.35 !important;
}


/* =========================================================
   第二组：news-list-box 结构
   适用：党建思政
   ========================================================= */

/* 每条文章记录 */
html body.party-work-page[data-page-key="party-building"]
.party-work-list .news-list-box .news-list-item {
  height: auto !important;
  min-height: 60px !important;

  padding-top: 10px !important;
  padding-bottom: 10px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;

  box-sizing: border-box !important;
  align-items: center !important;
}


/* 标题外层 h4 */
html body.party-work-page[data-page-key="party-building"]
.party-work-list .news-list-box h4.news-list-title {
  margin-top: 0 !important;
  margin-bottom: 0 !important;

  padding-top: 0 !important;
  padding-bottom: 0 !important;

  font-size: 16px !important;
  line-height: 1.35 !important;
}


/* 标题链接 */
html body.party-work-page[data-page-key="party-building"]
.party-work-list .news-list-box h4.news-list-title > a {
  font-size: 16px !important;
  line-height: 1.35 !important;
}


/* 发布日期 */
html body.party-work-page[data-page-key="party-building"]
.party-work-list .news-list-box .news-list-date {
  font-size: 14px !important;
  line-height: 1.35 !important;
}


/* 兼容日期使用 time 或普通 span 的情况 */
html body.party-work-page[data-page-key="party-building"]
.party-work-list .news-list-box .news-list-item > time,

html body.party-work-page[data-page-key="party-building"]
.party-work-list .news-list-box .news-list-item > span {
  font-size: 14px !important;
  line-height: 1.35 !important;
}

/* ==================================================
   五个列表页面：悬停时色调反转
   ================================================== */

/* 最新新闻、近期公告、学术交流、人才培养 */
body[data-page-key="news"] .notice-item,
body[data-page-key="notices"] .notice-item,
body[data-page-key="exchange"] #events .notice-item,
body[data-page-key="talent-training"] .party-work-list .notice-item,

/* 党建思政 */
body[data-page-key="party-building"] .party-work-list .news-list-item {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

/* 条目悬停背景 */
body[data-page-key="news"] .notice-item:hover,
body[data-page-key="notices"] .notice-item:hover,
body[data-page-key="exchange"] #events .notice-item:hover,
body[data-page-key="talent-training"] .party-work-list .notice-item:hover,
body[data-page-key="party-building"] .party-work-list .news-list-item:hover {
  background-color: #174f9e !important;
  color: #ffffff !important;
  transform: translateX(3px);
}

/* 悬停后的标题、日期及内部所有文字 */
body[data-page-key="news"] .notice-item:hover *,
body[data-page-key="notices"] .notice-item:hover *,
body[data-page-key="exchange"] #events .notice-item:hover *,
body[data-page-key="talent-training"] .party-work-list .notice-item:hover *,
body[data-page-key="party-building"] .party-work-list .news-list-item:hover * {
  color: #ffffff !important;
}

/* 确保标题链接保持白色 */
body[data-page-key="news"] .notice-item:hover .notice-item-title a,
body[data-page-key="notices"] .notice-item:hover .notice-item-title a,
body[data-page-key="exchange"] #events .notice-item:hover .notice-item-title a,
body[data-page-key="talent-training"] .party-work-list .notice-item:hover .notice-item-title a,
body[data-page-key="party-building"] .party-work-list .news-list-item:hover .news-list-title a {
  color: #ffffff !important;
}

/* ==================================================
   五个列表页面：标题与日期垂直居中对齐
   请放在 styles.css 最底部
   ================================================== */

/* 最新新闻、近期公告、学术交流、人才培养 */
body[data-page-key="news"] .notice-box .notice-item,
body[data-page-key="notices"] .notice-box .notice-item,
body[data-page-key="exchange"] #events .notice-box .notice-item,
body[data-page-key="talent-training"] .party-work-list .notice-box .notice-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

/* 清除标题 h4 的默认上下间距 */
body[data-page-key="news"] .notice-item .notice-item-title,
body[data-page-key="notices"] .notice-item .notice-item-title,
body[data-page-key="exchange"] #events .notice-item .notice-item-title,
body[data-page-key="talent-training"] .party-work-list .notice-item .notice-item-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

/* 标题链接 */
body[data-page-key="news"] .notice-item-title a,
body[data-page-key="notices"] .notice-item-title a,
body[data-page-key="exchange"] #events .notice-item-title a,
body[data-page-key="talent-training"] .party-work-list .notice-item-title a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

/* 日期 */
body[data-page-key="news"] .notice-item-date,
body[data-page-key="notices"] .notice-item-date,
body[data-page-key="exchange"] #events .notice-item-date,
body[data-page-key="talent-training"] .party-work-list .notice-item-date {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
}


/* 党建思政使用 news-list 结构 */
body[data-page-key="party-building"] .party-work-list .news-list-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

body[data-page-key="party-building"] .news-list-item .news-list-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

body[data-page-key="party-building"] .news-list-title a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

body[data-page-key="party-building"] .news-list-date {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
}

/* =========================================================
   搜索结果页面最终样式
   适用于：<body class="article-page search-results-page">
   组件结构：.search-results-list > .search-result-item
   ========================================================= */

/* 页面主体 */
.search-results-page {
  background-color: #eff6fb;
}

.search-results-page .article-main {
  flex: 1;
  min-height: 520px;
  padding: 42px 0 70px;
  background: linear-gradient(180deg, #f4f9fd 0%, #edf5fb 100%);
}

.search-results-page .article-layout {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
}

/* 搜索结果外层面板 */
.search-results-page .boda-article-content {
  position: relative;
  width: 100%;
  min-height: 420px;
  margin: 0;
  padding: 38px 46px 46px;
  overflow: hidden;
  color: #385c80;
  background-color: #ffffff;
  border: 1px solid #d7e5f1;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(31, 79, 139, 0.09);
  box-sizing: border-box;
}

.search-results-page .boda-article-content::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #174f9e 0%, #4d82c2 100%);
}

/* 搜索结果列表 */
.search-results-page .search-results-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 单条搜索结果：标题、摘要、附件和日期共用同一区域 */
.search-results-page .search-result-item {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 22px 24px 22px 28px;
  overflow: hidden;
  color: #426688;
  background-color: #ffffff;
  border: 1px solid #d5e3f0;
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(31, 79, 139, 0.05);
  box-sizing: border-box;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.search-results-page .search-result-item::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 4px;
  content: "";
  background-color: #2868b7;
  border-radius: 0 3px 3px 0;
  transition: background-color 0.22s ease;
}

/* 标题 */
.search-results-page .search-result-title {
  margin: 0 0 10px;
  padding: 0;
  color: #174f9e;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.search-results-page .search-result-title a,
.search-results-page .search-result-title a:link,
.search-results-page .search-result-title a:visited {
  display: inline;
  margin: 0;
  padding: 0;
  color: #174f9e !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  text-decoration: none !important;
}

/* 摘要 */
.search-results-page .search-result-summary {
  margin: 0 0 10px;
  padding: 0;
  color: #4d6d8c;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
  overflow-wrap: anywhere;
}

/* 附件检索内容 */
.search-results-page .search-result-attachment {
  margin: 0 0 8px;
  padding: 0;
  color: #567694;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.search-results-page .search-result-attachment:empty {
  display: none;
}

/* 发布时间 */
.search-results-page .search-result-date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 5px 0 0;
  padding: 0;
  color: #6282a4;
  font-size: 14px;
  line-height: 1.5;
}

.search-results-page .search-result-date time {
  color: #456b91;
  font-weight: 600;
}

/* 关键词高亮 */
.search-results-page .search-result-item font[color="red"],
.search-results-page .search-result-item font[color="#ff0000"],
.search-results-page .search-result-item .keyword,
.search-results-page .search-result-item .highlight {
  display: inline;
  margin: 0;
  padding: 0 2px;
  color: #e24b3b !important;
  font-style: normal;
  font-weight: 600;
  background-color: #fff1d9;
  border-radius: 2px;
}

/* 整条搜索结果悬浮色调反转 */
.search-results-page .search-result-item:hover {
  color: #ffffff;
  background-color: #174f9e;
  border-color: #174f9e;
  box-shadow: 0 10px 22px rgba(23, 79, 158, 0.2);
  transform: translateY(-2px);
}

.search-results-page .search-result-item:hover::before {
  background-color: #ffffff;
}

.search-results-page .search-result-item:hover .search-result-title,
.search-results-page .search-result-item:hover .search-result-title a,
.search-results-page .search-result-item:hover .search-result-summary,
.search-results-page .search-result-item:hover .search-result-attachment,
.search-results-page .search-result-item:hover .search-result-date,
.search-results-page .search-result-item:hover .search-result-date span,
.search-results-page .search-result-item:hover .search-result-date time {
  color: #ffffff !important;
}

.search-results-page .search-result-item:hover font[color="red"],
.search-results-page .search-result-item:hover font[color="#ff0000"],
.search-results-page .search-result-item:hover .keyword,
.search-results-page .search-result-item:hover .highlight {
  color: #fff1a8 !important;
  background-color: transparent !important;
}

/* 分页 */
.search-results-page .search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #e2ebf3;
}

.search-results-page .search-pagination a,
.search-results-page .search-pagination .disabled,
.search-results-page .search-pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  margin: 0;
  padding: 0 11px;
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
  box-sizing: border-box;
}

.search-results-page .search-pagination a {
  color: #315f92;
  text-decoration: none;
  background-color: #ffffff;
  border: 1px solid #cbdbea;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.search-results-page .search-pagination a:hover {
  color: #ffffff;
  background-color: #174f9e;
  border-color: #174f9e;
}

.search-results-page .search-pagination .disabled {
  color: #aab7c4;
  background-color: #f4f6f8;
  border: 1px solid #dce3e9;
  cursor: not-allowed;
}

.search-results-page .search-pagination-current {
  color: #ffffff;
  font-weight: 600;
  background-color: #2c79cf;
  border: 1px solid #2c79cf;
}

.search-results-page .search-pagination-total {
  margin: 0 5px;
  color: #63809d;
  font-size: 14px;
}

/* 无搜索结果提示 */
.search-results-page .search-empty {
  margin: 20px 0;
  padding: 40px 28px;
  color: #607d99;
  text-align: center;
  background-color: #f7fafc;
  border: 1px dashed #c7d8e7;
  border-radius: 9px;
}

.search-results-page .search-empty h3 {
  margin: 0 0 12px;
  color: #174f9e;
  font-size: 21px;
  line-height: 1.5;
}

.search-results-page .search-empty > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.search-results-page .search-empty-suggestions {
  width: max-content;
  max-width: 100%;
  margin: 22px auto 0;
  padding: 17px 24px;
  text-align: left;
  background-color: #ffffff;
  border-radius: 7px;
  box-sizing: border-box;
}

.search-results-page .search-empty-suggestions p {
  margin: 0 0 8px;
  color: #355d86;
  font-weight: 600;
}

.search-results-page .search-empty-suggestions ul {
  margin: 0;
  padding-left: 20px;
}

.search-results-page .search-empty-suggestions li {
  margin: 5px 0;
  line-height: 1.7;
}

/* 平板适配 */
@media (max-width: 1024px) {
  .search-results-page .article-main {
    padding: 32px 0 55px;
  }

  .search-results-page .article-layout {
    width: calc(100% - 36px);
  }

  .search-results-page .boda-article-content {
    padding: 30px 30px 38px;
  }
}

/* 手机适配 */
@media (max-width: 768px) {
  .search-results-page .article-main {
    min-height: 400px;
    padding: 24px 0 45px;
  }

  .search-results-page .article-layout {
    width: calc(100% - 28px);
  }

  .search-results-page .boda-article-content {
    min-height: 320px;
    padding: 24px 16px 30px;
    border-radius: 9px;
  }

  .search-results-page .search-results-list {
    gap: 14px;
  }

  .search-results-page .search-result-item {
    padding: 17px 16px 17px 19px;
    border-radius: 7px;
  }

  .search-results-page .search-result-title {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.5;
  }

  .search-results-page .search-result-summary {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
  }

  .search-results-page .search-result-attachment,
  .search-results-page .search-result-date {
    font-size: 13px;
  }

  .search-results-page .search-result-item:hover {
    transform: none;
  }

  .search-results-page .search-pagination {
    gap: 5px;
  }

  .search-results-page .search-pagination a,
  .search-results-page .search-pagination .disabled,
  .search-results-page .search-pagination-current {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }

  .search-results-page .search-pagination-total {
    width: 100%;
    margin: 4px 0;
    text-align: center;
  }
}

/* =========================================================
   首页五个模块文章标题悬浮反色
   新闻动态、通知公告、党建思政、交流文章、人才培养
   ========================================================= */

/* 新闻动态 */
body[data-page-key="home"]
.news-date-list
.news-dynamic-list
.article-content h4 a,

/* 通知公告 */
body[data-page-key="home"]
.notice-date-list
.notice-box
.notice-item-title a,

/* 下方三个模块可能使用新闻列表结构 */
body[data-page-key="home"]
.date-list
.news-list-box
.news-list-title a,

/* 下方三个模块可能使用公告列表结构 */
body[data-page-key="home"]
.date-list
.notice-box
.notice-item-title a,

/* 下方三个模块可能使用新闻动态结构 */
body[data-page-key="home"]
.date-list
.news-dynamic-list
.article-content h4 a,

/* 通用兼容 */
body[data-page-key="home"]
.date-list
.article-content h4 a {
    display: inline-block !important;
    max-width: 100%;

    padding: 4px 8px !important;
    border-radius: 4px;

    color: #06459b !important;
    background-color: transparent !important;

    line-height: 1.45 !important;
    text-decoration: none !important;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease !important;
}

/* 鼠标悬浮：蓝色背景＋白色文字 */
body[data-page-key="home"]
.news-date-list
.news-dynamic-list
.article-content h4 a:hover,

body[data-page-key="home"]
.notice-date-list
.notice-box
.notice-item-title a:hover,

body[data-page-key="home"]
.date-list
.news-list-box
.news-list-title a:hover,

body[data-page-key="home"]
.date-list
.notice-box
.notice-item-title a:hover,

body[data-page-key="home"]
.date-list
.news-dynamic-list
.article-content h4 a:hover,

body[data-page-key="home"]
.date-list
.article-content h4 a:hover {
    color: #ffffff !important;
    background-color: #1f5aab !important;
    transform: translateX(3px);
}

/* 标题内部如有span，继承链接颜色 */
body[data-page-key="home"]
.news-date-list
.article-content h4 a *,

body[data-page-key="home"]
.notice-date-list
.notice-item-title a *,

body[data-page-key="home"]
.date-list
.news-list-title a *,

body[data-page-key="home"]
.date-list
.notice-item-title a *,

body[data-page-key="home"]
.date-list
.article-content h4 a * {
    color: inherit !important;
}

/* 键盘焦点效果 */
body[data-page-key="home"]
.news-date-list
.article-content h4 a:focus-visible,

body[data-page-key="home"]
.notice-date-list
.notice-item-title a:focus-visible,

body[data-page-key="home"]
.date-list
.news-list-title a:focus-visible,

body[data-page-key="home"]
.date-list
.notice-item-title a:focus-visible,

body[data-page-key="home"]
.date-list
.article-content h4 a:focus-visible {
    color: #ffffff !important;
    background-color: #1f5aab !important;
    outline: 2px solid rgba(31, 90, 171, 0.3);
    outline-offset: 2px;
}

/* =========================================================
   首页通知公告标题：悬浮反转色调
   ========================================================= */

/* 默认状态 */
body[data-page-key="home"]
.notice-date-list
.news-dynamic-list
.article-content h4 a {
    display: inline-block !important;
    max-width: 100%;

    padding: 4px 8px !important;
    border-radius: 4px;

    color: #06459b !important;
    background-color: transparent !important;

    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    text-decoration: none !important;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease !important;
}

/* 悬浮反色 */
body[data-page-key="home"]
.notice-date-list
.news-dynamic-list
.article-content h4 a:hover {
    color: #ffffff !important;
    background-color: #1f5aab !important;
    transform: translateX(3px);
}

/* 兼容链接内部存在span等标签 */
body[data-page-key="home"]
.notice-date-list
.news-dynamic-list
.article-content h4 a * {
    color: inherit !important;
}

/* 键盘焦点 */
body[data-page-key="home"]
.notice-date-list
.news-dynamic-list
.article-content h4 a:focus-visible {
    color: #ffffff !important;
    background-color: #1f5aab !important;
    outline: 2px solid rgba(31, 90, 171, 0.3);
    outline-offset: 2px;
}

/* =========================================================
   博达 CMS 正文：保留后台输出的文字和段落格式
   字体未在正文中指定时，仍继承页面字体。
   不强制设置字体、字号、行距、缩进、对齐或段落间距。
   ========================================================= */

/* 避免整站蓝色主题传入未指定颜色的正文；内联颜色优先 */
.article-page .boda-article-content .v_news_content {
  color: initial;
}

/* 图片适配正文宽度，并支持父段落的左、中、右对齐 */
.article-page .boda-article-content .v_news_content img {
  display: inline;
  max-width: 100%;
  height: auto;
}

/* 表格和嵌入媒体的宽度限制 */
.article-page .boda-article-content .v_news_content table,
.article-page .boda-article-content .v_news_content video,
.article-page .boda-article-content .v_news_content iframe {
  max-width: 100%;
}

/* ==================================================
   修复当前导航项 active 状态无法显示悬停效果
================================================== */
.main-nav .nav-inner > a.active:hover,
.main-nav .nav-inner > a.active:focus-visible,
.main-nav .nav-inner .nav-link.active:hover,
.main-nav .nav-inner .nav-link.active:focus-visible {
    color: var(--primary-dark) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(241, 247, 255, 0.94)
    ) !important;
    box-shadow:
        0 10px 20px rgba(7, 32, 54, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
}