:root {
  --color-primary: #9E1B1E;
  /* 主色 - 中国红 */
  --color-primary-dark: #7A1517;
  /* 深红 - hover/强调 */
  --color-primary-soft: #F7E8E4;
  --color-gold: #C8A24B;
  /* 金色 - 装饰与高亮 */
  --color-gold-deep: #A9842F;
  /* 深金 - 描边 */
  --color-gold-light: #F0DEAC;
  /* 浅金色 */
  --color-bg: #FAF8F5;
  /* 页面背景 */
  --color-bg-deep: #F3EEE6;
  --color-card: #FFFFFF;
  /* 卡片背景 */
  --color-text: #2C2C2C;
  /* 正文文字 */
  --color-text-light: #666666;
  /* 辅助文字 */
  --color-border: #E8E2DA;
  /* 分割线/边框 */
  --shadow-sm: 0 3px 12px rgba(80, 38, 18, 0.06);
  --shadow-md: 0 8px 24px rgba(80, 38, 18, 0.09);
  --shadow-lg: 0 16px 40px rgba(80, 38, 18, 0.13);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  /* 标题衬线字体（庄重、官方感，全部为系统字体，无需联网） */
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC",
    "STSong", "SimSun", "PingFang SC", serif;
  /* 导航栏高度 */
  --nav-height: 56px;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--color-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.72) 320px),
    radial-gradient(circle at 18% 8%, rgba(212, 168, 75, 0.18), transparent 28%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

/* ---------- Banner 区域 ---------- */
.banner-wrapper {
  width: 100%;
  position: relative;
  line-height: 0;
  background-color: var(--color-primary);
  box-shadow: 0 10px 34px rgba(98, 20, 22, 0.2);
  border-bottom: 3px solid var(--color-gold);
}

/* Banner 底部的双金线装饰 */
.banner-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      var(--color-gold) 20%,
      var(--color-gold) 80%,
      transparent);
  opacity: 0.55;
}

.banner-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* background: linear-gradient(
    135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 100%
  ); */
  background: #cc0404;
  box-shadow: 0 2px 12px rgba(155, 27, 30, 0.25);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(240, 222, 172, 0.45);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.navbar-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-height);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item {
  flex-shrink: 0;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  font-weight: 500;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: 1px;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
}

.site-search-input {
  width: 132px;
  height: 100%;
  padding: 0 10px;
  color: #FFFFFF;
  font-size: 13px;
  background: transparent;
  border: 0;
  outline: none;
}

.site-search-input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.site-search-button {
  height: 100%;
  padding: 0 11px;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 700;
  background: var(--color-gold-light);
  border: 0;
  cursor: pointer;
  transition: var(--transition);
}

.site-search-button:hover,
.site-search-button:focus-visible {
  color: #FFFFFF;
  background: var(--color-gold-deep);
}

/* 移动端汉堡按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: #FFF;
  transition: var(--transition);
  border-radius: 1px;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端下拉导航 */
@media (max-width: 900px) {
  .navbar-inner {
    gap: 10px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-search {
    position: absolute;
    top: 50%;
    right: 20px;
    width: min(184px, calc(100vw - 96px));
    height: 30px;
    margin-left: 0;
    transform: translateY(-50%);
  }

  .site-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .site-search-button {
    flex: 0 0 auto;
    padding: 0 10px;
  }

  .nav-list {
    flex: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: linear-gradient(135deg,
        var(--color-primary-dark) 0%,
        var(--color-primary) 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  .nav-list.expanded {
    max-height: 500px;
    padding: 16px;
  }

  .nav-link {
    text-align: center;
    padding: 12px 16px;
    font-size: 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link:last-child {
    border-bottom: none;
  }
}

/* ---------- 主内容区域 ---------- */
.main-content {
  max-width: 1350px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

/* ---------- 分类区块（栏目） ---------- */
.category-section {
  position: relative;
  margin-bottom: 42px;
  padding: 28px 30px 32px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 226, 218, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* 区块顶部红金渐变细条 */
.category-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right,
      var(--color-primary) 0%,
      var(--color-gold) 50%,
      var(--color-primary) 100%);
}

/* 区块标题 */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  position: relative;
}

/* 标题右侧的装饰：渐隐细线 + 末端金点 */
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right,
      var(--color-border),
      transparent);
}

.section-title-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg,
      var(--color-primary) 0%,
      var(--color-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(155, 27, 30, 0.22);
  /* 金色细描边，呼应印章质感 */
  border: 1px solid rgba(200, 162, 75, 0.45);
}

.section-title-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--color-gold-light);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 6px;
}

/* 标题下方金色短线 */
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 2px;
  background: linear-gradient(to right, var(--color-gold), var(--color-gold-light));
  border-radius: 1px;
}

/* ---------- 人物卡片网格 ---------- */
.person-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px 18px;
}

/* 单张人物卡片（可点击链接） */
.person-card {
  display: block;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FFFCF7 100%);
  border-radius: var(--radius-md);
  padding: 18px 14px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(232, 226, 218, 0.95);
  position: relative;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
}

.person-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right,
      var(--color-gold) 0%,
      var(--color-gold-light) 50%,
      var(--color-gold) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.person-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-light);
  text-decoration: none;
  color: inherit;
}

.person-card:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.person-card:hover::before {
  opacity: 1;
}

/* 证件照容器 - 2寸比例 (35mm:49mm ≈ 5:7)，带金色相框衬底 */
.photo-wrapper {
  width: min(142px, 100%);
  aspect-ratio: 5 / 7;
  margin: 0 auto 14px;
  padding: 5px;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(145deg, #fffdf8 0%, #f4ead4 100%);
  box-shadow:
    0 4px 14px rgba(122, 21, 23, 0.12),
    inset 0 0 0 1px rgba(169, 132, 47, 0.45);
  position: relative;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 3px;
  transition: transform 0.4s ease;
}

.person-card:hover .photo-wrapper img {
  transform: scale(1.04);
}

/* 姓名 - 居中金线托底的铭牌样式 */
.person-name {
  display: inline-block;
  position: relative;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 2px;
  line-height: 1.4;
  padding-bottom: 7px;
  transition: color 0.25s ease;
}

.person-name::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: linear-gradient(to right, var(--color-gold), var(--color-gold-light));
  border-radius: 1px;
  transition: width 0.3s ease;
}

.person-card:hover .person-name {
  color: var(--color-primary);
}

.person-card:hover .person-name::after {
  width: 40px;
}

/* ---------- 响应式布局 ---------- */

/* 平板：每行4个 */
@media (max-width: 1024px) {
  .person-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 16px;
  }

  .photo-wrapper {
    width: min(128px, 100%);
  }
}

/* 小平板：每行3个 */
@media (max-width: 768px) {
  :root {
    --nav-height: 52px;
  }

  .main-content {
    padding: 28px 16px 48px;
  }

  .breadcrumb {
    padding: 14px 16px 0;
  }

  .category-section {
    margin-bottom: 28px;
    padding: 22px 18px 26px;
  }

  .section-header {
    margin-bottom: 22px;
  }

  .section-title {
    font-size: 19px;
  }

  .person-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 12px;
  }

  .person-card {
    padding: 12px 8px 16px;
  }

  .photo-wrapper {
    width: min(112px, 100%);
  }

  .person-name {
    font-size: 15px;
  }
}

/* 手机大屏：每行3个 */
@media (max-width: 520px) {
  .person-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 10px;
  }

  .section-title {
    font-size: 17px;
  }

  .photo-wrapper {
    width: min(94px, 100%);
  }

  .person-name {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .person-card {
    padding: 10px 6px 14px;
  }
}

/* 手机小屏：每行2个 */
@media (max-width: 380px) {
  .person-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }

  .photo-wrapper {
    width: min(108px, 100%);
  }
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(135deg,
      var(--color-primary-dark) 0%,
      var(--color-primary) 100%);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  padding: 40px 20px 34px;
  font-size: 13px;
  letter-spacing: 0.5px;
  line-height: 1.8;
  border-top: 3px solid var(--color-gold);
  overflow: hidden;
}

/* 页脚顶部的建筑线描底纹（居中淡显） */
.site-footer::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 96px;
  background: url("../images/diwen.png") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.site-footer p {
  position: relative;
  z-index: 1;
}

.site-footer p:first-child {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.site-footer p+p {
  margin-top: 5px;
}

/* ---------- 回到顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 32px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #FFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------- 右侧固定投票按钮 ---------- */
.vote-float-link {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 14px 12px 13px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: 1px solid rgba(240, 222, 172, 0.55);
  border-right: 0;
  border-radius: 24px 0 0 24px;
  box-shadow: 0 10px 26px rgba(122, 21, 23, 0.26);
  transform: translateY(-50%);
  transition: var(--transition);
}

.vote-float-link:hover,
.vote-float-link:focus-visible {
  color: #FFFFFF;
  padding-right: 18px;
  background: linear-gradient(135deg, var(--color-primary-dark), #5f1012);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.vote-float-link svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .vote-float-link {
    min-height: 44px;
    padding: 11px 12px;
    font-size: 15px;
    border-radius: 22px 0 0 22px;
  }
}

/* ---------- 加载动画（淡入） ---------- */

/* ---------- "查看更多"按钮 ---------- */
.section-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  background-color: transparent;
  border: 1.5px solid var(--color-primary);
  border-radius: 24px;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-more svg {
  transition: transform 0.25s ease;
}

.btn-more:hover {
  color: #FFFFFF;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(158, 27, 30, 0.2);
}

.btn-more:hover svg {
  transform: translateX(3px);
}

/* 移动端按钮适配 */
@media (max-width: 520px) {
  .section-more {
    margin-top: 18px;
  }

  .btn-more {
    padding: 8px 22px;
    font-size: 13px;
  }
}

/* ---------- 详情页：面包屑导航 ---------- */
.breadcrumb {
  max-width: 1350px;
  margin: 0 auto;
  padding: 16px 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.breadcrumb .separator {
  color: var(--color-border);
  user-select: none;
}

.breadcrumb .current {
  color: var(--color-text);
  font-weight: 500;
}

/* ---------- 详情页：返回按钮 ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 24px;
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
}

.back-link:hover {
  color: #FFFFFF;
  background-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(158, 27, 30, 0.2);
}

.back-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.back-link-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 24px;
}

/* 详情页人物网格可以更宽松 */
.detail-grid {
  gap: 28px 20px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

.category-section:nth-child(1) {
  animation-delay: 0.05s;
}

.category-section:nth-child(2) {
  animation-delay: 0.1s;
}

.category-section:nth-child(3) {
  animation-delay: 0.15s;
}

.category-section:nth-child(4) {
  animation-delay: 0.2s;
}

.category-section:nth-child(5) {
  animation-delay: 0.25s;
}

.category-section:nth-child(6) {
  animation-delay: 0.3s;
}

.category-section:nth-child(7) {
  animation-delay: 0.35s;
}

.category-section:nth-child(8) {
  animation-delay: 0.4s;
}

/* ====================================================
   人物风采详情页（个人内容页）
   ==================================================== */

/* 顶部信息卡：证件照 + 关键信息 */
.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 32px;
  margin-top: 26px;
  padding: 32px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFCF7 100%);
  border: 1px solid rgba(232, 226, 218, 0.95);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right,
      var(--color-primary) 0%,
      var(--color-gold) 50%,
      var(--color-primary) 100%);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 5 / 7;
  padding: 6px;
  border-radius: 8px;
  background: linear-gradient(145deg, #fffdf8 0%, #f4ead4 100%);
  box-shadow:
    0 6px 18px rgba(122, 21, 23, 0.14),
    inset 0 0 0 1px rgba(169, 132, 47, 0.45);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
}

.profile-info {
  align-self: center;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 15px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary-dark);
  background: linear-gradient(135deg, rgba(240, 222, 172, 0.6), rgba(200, 162, 75, 0.28));
  border: 1px solid rgba(200, 162, 75, 0.55);
  border-radius: 20px;
}

.profile-badge svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--color-gold-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.profile-role {
  margin-top: 8px;
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.7;
}

.profile-role strong {
  color: var(--color-text);
  font-weight: 600;
}

.profile-meta {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(200, 162, 75, 0.3);
  border: 1px solid rgba(200, 162, 75, 0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.meta-item {
  background: rgba(255, 255, 255, 0.94);
  padding: 11px 14px;
}

.meta-label {
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.5px;
}

.meta-value {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-serif);
}

.profile-contact {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--color-text-light);
}

.profile-contact a {
  color: var(--color-primary);
}

.profile-contact a:hover {
  text-decoration: underline;
}

/* 内容白底卡片容器 */
.content-block {
  margin-bottom: 24px;
  padding: 28px 32px 30px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 226, 218, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   博达 CMS 正文自动排版
   普通段落自动首行缩进；整段加粗自动作为小节标题；
   .vsbcontent_img 图片段落自动居中，.vsbcontent_end 兼容博达结尾段。
   ============================================================ */

.bd-article,
.article-content {
  color: var(--color-text);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 2;
  text-align: justify;
  word-break: break-word;
}

.bd-article p,
.article-content p {
  margin: 0 0 15px;
  color: var(--color-text);
  font-size: inherit;
  line-height: inherit;
  text-align: justify;
  text-indent: 2em;
}

.bd-article p:empty,
.article-content p:empty {
  display: none;
}

.bd-article p:last-child,
.article-content p:last-child,
.bd-article .vsbcontent_end,
.article-content .vsbcontent_end {
  margin-bottom: 0;
}

.bd-article .vsbcontent_img,
.article-content .vsbcontent_img {
  margin: 8px 0 28px;
  text-align: center;
  text-indent: 0;
}

.bd-article .vsbcontent_img img,
.article-content .vsbcontent_img img,
.bd-article p img,
.article-content p img {
  display: inline-block;
  width: auto;
  max-width: min(420px, 100%);
  height: auto !important;
  border-radius: 6px;
}

.bd-article p strong,
.bd-article p b,
.article-content p strong,
.article-content p b {
  font-weight: 700;
}
/*
.bd-article p:has(> strong:only-child),
.bd-article p:has(> b:only-child),
.article-content p:has(> strong:only-child),
.article-content p:has(> b:only-child) {
  margin: 34px 0 18px;
  padding: 10px 0 10px 16px;
  border-left: 5px solid var(--color-primary);
  background: linear-gradient(90deg, rgba(158, 27, 30, 0.08), rgba(158, 27, 30, 0));
  color: var(--color-primary-dark);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  text-indent: 0;
}

.bd-article p:has(> strong:only-child)>strong,
.bd-article p:has(> b:only-child)>b,
.article-content p:has(> strong:only-child)>strong,
.article-content p:has(> b:only-child)>b {
  color: inherit;
  font-weight: inherit;
}
*/
.bd-article>p:first-child,
.article-content>p:first-child {
  margin-top: 0;
}

/* 详情页响应式 */
@media (max-width: 768px) {
  .profile-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 18px;
  }

  .profile-photo {
    width: min(168px, 62%);
    margin: 0 auto;
  }

  .profile-info {
    text-align: center;
  }

  .profile-meta {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .content-block {
    padding: 22px 18px 24px;
  }

  .bd-article,
  .article-content {
    font-size: 16px;
    line-height: 1.9;
  }

  .bd-article p,
  .article-content p {
    margin-bottom: 13px;
  }

  .bd-article p:has(> strong:only-child),
  .bd-article p:has(> b:only-child),
  .article-content p:has(> strong:only-child),
  .article-content p:has(> b:only-child) {
    margin-top: 28px;
    font-size: 20px;
  }
}

@media (max-width: 380px) {
  .profile-meta {
    grid-template-columns: 1fr;
  }
}

/* 简版人物事迹页 */
.simple-story-page {
  max-width: 1350px;
  margin: 26px auto 24px;
  padding: 30px 28px 34px;
  background: #FFFFFF;
  border: 1px solid rgba(232, 226, 218, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.simple-story-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.3;
  color: var(--color-primary-dark);
  text-align: center;
}

.simple-story-photo {
  width: min(420px, 72vw);
  margin: 0 auto 28px;
}

.simple-story-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .simple-story-page {
    margin-top: 18px;
    padding: 24px 18px 28px;
  }

  .simple-story-title {
    font-size: 26px;
  }
}

/* ====================================================
   站内搜索结果页
   ==================================================== */

/* 搜索结果汇总条（关键词 + 命中数量 + 页内重新检索框） */
.search-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 26px;
  padding: 20px 26px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFCF7 100%);
  border: 1px solid rgba(232, 226, 218, 0.95);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.search-summary-text {
  flex: 1 1 280px;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.search-summary-text .kw {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-primary);
  padding: 0 2px;
}

.search-summary-text .num {
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* 页内重新检索 */
.search-refine {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
}

.search-refine-input {
  width: 200px;
  max-width: 50vw;
  height: 100%;
  padding: 0 12px;
  font-size: 14px;
  color: var(--color-text);
  background: transparent;
  border: 0;
  outline: none;
}

.search-refine-input::placeholder {
  color: var(--color-text-light);
}

.search-refine-button {
  height: 100%;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #FFFFFF;
  background: var(--color-primary);
  border: 0;
  cursor: pointer;
  transition: var(--transition);
}

.search-refine-button:hover,
.search-refine-button:focus-visible {
  background: var(--color-primary-dark);
}

/* 结果列表 */
.search-result-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-item {
  display: block;
  position: relative;
  padding: 20px 22px 20px 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 226, 218, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: inherit;
}

.result-item + .result-item {
  margin-top: 14px;
}

.result-item::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-gold-light));
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.result-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold-light);
}

.result-item:hover::before {
  opacity: 1;
}

.result-item:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.result-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-primary-dark);
  transition: color 0.2s ease;
}

.result-item:hover .result-title {
  color: var(--color-primary);
}

/* 命中关键词高亮 */
.result-title em,
.result-snippet em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(200, 162, 75, 0.22);
  padding: 0 2px;
  border-radius: 2px;
}

.result-snippet {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--color-text);
  text-align: justify;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-light);
}

.result-meta .result-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 11px;
  font-size: 12px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  border: 1px solid rgba(200, 162, 75, 0.35);
  border-radius: 20px;
}

.result-meta .result-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.result-meta .result-date svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 无结果提示 */
.search-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--color-text-light);
}

.search-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-empty p {
  font-size: 15px;
  line-height: 1.9;
}

.search-empty .kw {
  font-weight: 700;
  color: var(--color-primary);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--color-text);
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.pagination a:hover {
  color: #FFFFFF;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.pagination .page-current {
  color: #FFFFFF;
  font-weight: 700;
  background: var(--color-primary);
  border-color: var(--color-primary);
  cursor: default;
}

.pagination .page-disabled {
  color: var(--color-border);
  background: var(--color-bg-deep);
  cursor: not-allowed;
}

.pagination .page-ellipsis {
  border-color: transparent;
  background: transparent;
}

@media (max-width: 768px) {
  .search-summary {
    padding: 16px 18px;
  }

  .search-refine {
    flex: 1 1 100%;
    height: 36px;
  }

  .search-refine-input {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
  }

  .result-item {
    padding: 16px 16px 16px 18px;
  }

  .result-title {
    font-size: 17px;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}