/* ==========================================================================
   广东文理职业学院 - 党建思政网全局样式表 ()
   ========================================================================== */

:root {
  --primary-color: #a61b24;       /* 鲜明党建红 (Header & 重点强调) */
  --primary-dark: #8B0000;        /* 沉稳深红 (Footer & 面包屑) */
  --primary-deep: #660000;
  --primary-light: #fdebee;       /* 浅粉红背景 (高亮与提示) */
  --accent-gold: #e5b358;         /* 精神谱系金黄色 */
  --text-main: #333333;           /* 主文字色 */
  --text-sub: #666666;            /* 次要文字色 */
  --text-light: #999999;          /* 日期与弱化文本 */
  --border-color: #e5e5e5;        /* 统一边框色 */
  --border-light: #f0f0f0;
  --bg-page: #f7f8fa;             /* 全局页面浅灰底色 */
  --bg-white: #ffffff;
  --container-width: 1300px;
  --sidebar-width: 240px;
}

/* 全局重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-color);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
}

/* 居中核心容器 */
.container {
  width: var(--container-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}
.head-container {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

/* ==========================================================================
   1. 顶部 Header (单栏深红，对齐 demo.pdf)
   ========================================================================== */
.site-header {
  width: 100%;
  height: 64px;
  background-color: transparent;
  color: #ffffff;
  position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 auto;
  z-index: 100;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

/* 左侧 Logo 区域 */
.header-brand {
  display: flex;
  align-items: center;
  height: 100%;
    margin-left: 130px;
    padding-top: 28px;
}


.header-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10px;
}

.header-brand-title {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1.2;
}

.header-brand-en {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  transform: scale(0.92);
  transform-origin: left center;
}

/* 右侧菜单与搜索框 */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav-item a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  display: inline-block;
  opacity: 0.95;
}

.site-nav-item a:hover,
.site-nav-item.active a {
  opacity: 1;
  font-weight: bold;
  border-bottom: 2px solid #ffffff;
}

/* 顶部搜索框 (对齐 demo.pdf 胶囊椭圆) */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 170px;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 0 34px 0 14px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: all 0.25s;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.header-search input:focus {
  background-color: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  width: 200px;
}

.header-search .search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search .search-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ==========================================================================
   2. 轮播 Banner (所有14个页面一致展示，对齐 demo.pdf)
   ========================================================================== */
.hero-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #8b0000;
  max-height: 540px;
}

.carousel-slides {
  width: 100%;
  position: relative;
}

.carousel-slide {
  display: none;
  width: 100%;
  position: relative;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
 
  max-height: 540px;
  object-fit: cover;
  object-position: center;
}

/* 轮播左右切换按钮 (demo.pdf 半透明圆角深色方块) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 64px;
  background-color: transparent;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  transition: background-color 0.2s;
  z-index: 10;
  user-select: none;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* ==========================================================================
   3. 面包屑红色子栏 (全宽深红条，对齐 demo.pdf)
   ========================================================================== */
.breadcrumb-bar {
  width: 100%;
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  height: 49px;
    background: linear-gradient(90deg, rgba(184, 38, 46, 1) 0%, rgba(139, 0, 0, 1) 100%);
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
}

.breadcrumb-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.breadcrumb-content .icon-pos {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  margin-left: 40px;
}

.breadcrumb-content a {
  color: #ffffff;
}

.breadcrumb-content a:hover {
  text-decoration: underline;
}

.breadcrumb-content .sep {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin: 0 2px;
}

.breadcrumb-content .current {
  color: #ffffff;
  font-weight: 500;
}

/* ==========================================================================
   4. 主体左右布局 (标准化 240px 侧边栏 + 自适应右侧内容)
   ========================================================================== */
.layout-container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 30px;
}

/* 统一左侧栏 */
.subpage-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.sidebar-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.08);
}

.sidebar-header {
  border-radius: 8px 8px 0px 0px;
  background-color: #B8262E;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 40px;
  letter-spacing: 1px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  display: block;
  padding: 12px 40px;
  color: var(--text-main);
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s;
  text-align: left;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: bold;
    border-left: 4px solid var(--primary-color);
    padding-left: 40px;
}

.sidebar-item:hover {
  background-color: #fafafa;
  color: var(--primary-color);
  padding-left: 38px;
}

.sidebar-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: bold;
  border-left: 4px solid var(--primary-color);
  padding-left: 40px;
}

/* 首页独有的左侧“主题党建专栏” */
.sidebar-special-box {
  margin-top: 18px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 14px 14px 10px 14px;
  border-radius: 8px 8px 8px 8px;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.08);
}

.sidebar-special-title {
  border-left: 4px solid var(--primary-color);
  padding-left: 8px;
  font-size: 15px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.sidebar-special-list li {
  margin-bottom: 10px;
}

.sidebar-special-list a {
  display: block;
  font-size: 13px;
  color: #555555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.sidebar-special-list a:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   5. 右侧主内容区域与通用卡片
   ========================================================================== */
.subpage-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 栏目内容卡片容器 */
.content-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 21px;
  border-radius: 8px 8px 8px 8px;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.08);
}
.jubao-content {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 30px 40px ;
  border-radius: 8px 8px 8px 8px;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.08);
}

/* 样式 A: 顶部红色突起标签头 (对齐 demo.pdf Page 2, 3, 4, 5, 6, 7, 10, 13) */
.tab-header-box {
  background-color: #f2f3f5;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -16px -20px 18px -20px;
  padding-right: 14px;
  border-bottom: 1px solid var(--border-color);
  height: 42px;
}

.tab-badge {
  background-color: #B8262E;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  padding: 0 100px;
  height: 42px;
  display: flex;
  align-items: center;
  border-radius: 4px 4px 0 0;
}

/* 样式 B: 底部全宽红线标题 (对齐 demo.pdf Page 11, 12, 14) */
.line-header-box {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.line-header-title {
  font-size: 18px;
  font-weight: bold;
  color: #222222;
}

/* 样式 C: 首页各模块标题 (竖线标 + 更多链接) */
.section-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
    border-bottom: 2px solid #c0392b;
}

.section-bar-title {
  border-left: 4px solid var(--primary-color);
  padding-left: 8px;
  font-size: 18px;
    font-weight: bold;
    color: rgba(184, 38, 46, 1);
  display: flex;
  align-items: center;
  margin-left: 16px;
}

.section-more-link {
  font-size: 13px;
  color: var(--text-light);
}

.section-more-link:hover {
  color: var(--primary-color);
}

/* 分类筛选胶囊 (全部 / 党建新闻 / 基层动态等) */
.filter-pill-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 4px 16px;
  font-size: 13px;
  color: #555555;
  background-color: #f0f2f5;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  line-height: 22px;
  border-radius: 20px 20px 20px 20px;
}

.filter-pill:hover {
  background-color: #e4e7ed;
  color: var(--primary-color);
}

.filter-pill.active {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 500;
}

/* ==========================================================================
   6. 文章列表通用条目 (对齐 demo.pdf 标准列表)
   ========================================================================== */
.news-article-list {
  display: flex;
  flex-direction: column;
}

.news-article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 14px;
}
.rules-container ul {
  display: flex;
  flex-wrap: wrap;           /* 允许换行，才能形成多行两列 */
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-container ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  font-size: 14px;
  flex: 0 0 50%;             /* 每个 li 固定占 50% 宽度 */
  box-sizing: border-box;    /* padding/border 计入宽度 */
}

.news-article-item:last-child {
  border-bottom: none;
}

.news-article-link {
  color: #333333;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-overflow: ellipsis; /* 超出显示省略号 */
}

.news-article-link::before {
  color: var(--primary-color);
  font-size: 12px;
}

.news-article-link:hover {
  color: var(--primary-color);
}

.news-article-date {
  color: var(--text-light);
  font-size: 13px;
  flex-shrink: 0;
}

/* 首页两列子新闻区 (党建新闻 + 基层动态) */
.subnews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 18px;
}

.subnews-col-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

/* 首页4张横幅专栏入口 */
.home-banner-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.home-banner-card {
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.home-banner-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* 首页工作简报月度标签 */
.brief-badge {
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 8px;
  flex-shrink: 0;
  display: inline-block;
}

/* 首页榜样人物4人展示 */
.xianfeng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portrait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.portrait-card {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s;
}

.portrait-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.portrait-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 10px;
  background-color: #eee;
}

.portrait-name {
  font-size: 15px;
  font-weight: bold;
  color: #222222;
  margin-bottom: 4px;
}

.portrait-tag {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.portrait-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.4;
  height: 34px;
  overflow: hidden;
}

/* 首页2x2方格入口 (学习园地 & 纪检监督) */
.portal-2x2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.xuexi-box-card {
  border: 1px solid rgba(238,238,238,1);
  padding: 14px 12px;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px 12px 12px 12px;
background: linear-gradient(145.01deg, rgba(255,255,255,1) 6.18%, rgba(253,247,247,1) 93.82%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
color: rgba(16,16,16,1);
font-size: 14px;
text-align: center;
box-shadow: 0px 2px 8px 0px rgba(184,38,46,0.06);
}
.xuexi-box-card:hover {
  background: linear-gradient(145.01deg, rgba(255,252,252,1) 6.18%, rgba(250,238,240,1) 93.82%);
  box-shadow: 0 4px 16px rgba(253, 200, 205, 0.25); /* 可选：加一点粉色柔光 */
}
.xuexi-box-card .icon-box{
  width:40px;height:40px;border-radius:6px;background-color:#a61b24;color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;
}
.xuexi-box-card span{
  font-size:13px;color:#a61b24;font-weight:bold;
}
.jiandu-box-card {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 30px 12px;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.jiandu-box-card:hover {
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(166, 27, 36, 0.08);
}
.jiandu-box-card .jiandu-icon{
  font-size: 22px;
  background-color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 5px;
  margin-left: 15px;
}
.jiandu-box-card .jiandu-intro{
  font-size:12.5px;color:#777;
  flex: 1;
  text-align: left;
}
.jiandu-box-card .jiandu-intro p:first-child{
  font-size:15px;font-weight:bold;color:#222;
}


.portal-box-card {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 14px 12px;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



.portal-box-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.portal-box-title {
  font-size: 14px;
  font-weight: bold;
  color: #222222;
  margin-bottom: 4px;
}

.portal-box-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(166, 27, 36, 0.08);
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.portal-box-card:hover .portal-box-title,.portal-box-card:hover .portal-box-sub{
  color: #ffffff;
}

.portal-box-sub {
  font-size: 11.5px;
  color: var(--text-light);
}



/* 党内制度两列列表 */
.rules-container {
  display: grid;
  gap: 20px 30px;
}

.rules-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  padding-top: 10px;
}

.rules-container .rule-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rules-container .rule-link::before {
  content: "·";
  color: var(--primary-color);
  font-size: 16px;
}

.rules-container .rule-link:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   7. 详情页 & 特色板块样式 (新闻、视频、监督举报、廉洁文化、专题学习)
   ========================================================================== */

/* 7.1 新闻落地页 (news_detail.html) */
.article-detail-wrap {
  padding: 10px 15px;
}

.article-main-title {
  font-size: 22px;
  font-weight: bold;
  color: #222222;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.4;
}

.article-meta-bar {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.article-reviewers {
  text-align: center;
  font-size: 12px;
  color: #888888;
  margin-bottom: 16px;
}

.article-divider {
  height: 1px;
  background-color: var(--border-color);
  margin-bottom: 24px;
}

.article-lead {
  font-size: 14.5px;
  color: #333333;
  line-height: 1.8;
  margin-bottom: 20px;
  text-indent: 2em;
}

.article-figure {
  margin: 20px 0;
  text-align: center;
}

.article-figure img {
  margin: 0 auto;
  border-radius: 4px;
  max-width: 85%;
}

.article-figure-caption {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

.article-body-p {
  font-size: 14.5px;
  color: #333333;
  line-height: 1.85;
  margin-bottom: 18px;
  text-indent: 2em;
}

.article-page-nav {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.article-page-nav a {
  color: #555555;
}

.article-page-nav a:hover {
  color: var(--primary-color);
}

/* 7.2 视频播放落地页 (wenlibangyangshuo.html) */
.video-player-box {
  width: 100%;
  background-color: #000000;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.video-cover-img {
  width: 100%;
  height: auto;
  display: block;
}

.video-play-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}

.video-play-center:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-bottom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #ffffff;
  font-size: 12px;
  gap: 12px;
}

.video-progress-bar {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  position: relative;
}

.video-progress-fill {
  width: 36%;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* 人物信息条 */
.video-person-strip {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.video-person-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #e2e4e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #777777;
  flex-shrink: 0;
}

.video-person-info {
  flex: 1;
}

.video-person-name {
  font-size: 16px;
  font-weight: bold;
  color: #222222;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.video-person-slogan {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 500;
}

/* 榜样金句粉红底框 */
.quote-highlight-box {
  background-color: #fff7f7;
  border: 1px solid #ffdcdc;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 18px 0;
}

.quote-highlight-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-item {
  font-size: 13.5px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 6px;
  padding-left: 14px;
  position: relative;
}

.quote-item::before {
  content: "“";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* 7.3 监督举报页 (jiandujubao.html) */
.jubao-alert-box {
  background-color: #fff5f5;
  border: 1px solid #ffcccc;
  border-radius: 4px;
  padding: 14px 18px;
  color: #444444;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.zhuanti-alert-box{
  background-color: #fff5f5;
  border-radius: 4px;
  padding: 20px 28px;
  color: #444444;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 22px;
  border-left: 4px solid rgba(184,38,46,1);
}

.jubao-alert-tag {
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 6px;
  font-size: 15px;
  margin-bottom: 12px;
}

.jubao-sec-title {
  border-left: 4px solid var(--primary-color);
  padding-left: 8px;
  font-size: 15px;
  font-weight: bold;
  color: #222222;
  margin: 20px 0 12px 0;
}

.jubao-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.jubao-channel-card {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px 10px;
  text-align: center;
}
.jubao-channel-icon0 {
  display: flex;
  align-items: center;
  justify-content: center;
}
.jubao-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  font-size: 20px;
}

.jubao-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.jubao-step-card {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px 12px;
  text-align: center;
}

.jubao-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px auto;
}

.jubao-btn-wrap {
  text-align: center;
  margin-top: 30px;
}

.jubao-btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 48px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(166, 27, 36, 0.2);
}

.jubao-btn-primary:hover {
  background-color: #8c131b;
}

/* 7.4 廉洁文化页 (lianjiewenhua.html) */
.lianjie-intro-banner {
  background-color: #eaf6ed;
  border-left: 4px solid #239B66;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 22px;
}

.lianjie-intro-title {
  font-size: 16px;
  font-weight: bold;
  color: #1e7e34;
  margin-bottom: 8px;
}

.lianjie-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.lianjie-art-card {
  background-color: #d8ede0;
  border-radius: 4px;
  padding: 14px 10px;
  text-align: center;
  transition: transform 0.2s;
}

.lianjie-art-card:hover {
  transform: translateY(-2px);
}

.lianjie-art-box {
  background-color: rgba(255, 255, 255, 0.4);
  height: 80px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e7e34;
  font-size: 13px;
  margin-bottom: 10px;
}

.lianjie-art-title {
  font-size: 13.5px;
  font-weight: bold;
  color: #222222;
  margin-bottom: 4px;
}

.lianjie-art-author {
  font-size: 12px;
  color: #666666;
}

/* 典故卡片 */
.stories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story-card {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);;
  border-radius: 4px;
  padding: 14px 16px;
}

.story-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.story-text {
  font-size: 13px;
  color: #444444;
  line-height: 1.7;
}

/* 7.5 专题学习专区 (zhuantixuexi.html) */
.zhuanti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}

.zhuanti-card {
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 4px;
  padding: 18px 16px;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zhuanti-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
}

.zhuanti-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}

.zhuanti-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin: 8px 0;
  line-height: 1.5;
}

.zhuanti-link {
  font-size: 12.5px;
  color: #ffffff;
  font-weight: bold;
  align-self: flex-start;
}

/* ==========================================================================
   8. 分页条 (标准纯静态通用样式)
   ========================================================================== */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.page-btn {
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  color: #555555;
  font-size: 13px;
  border-radius: 3px;
  cursor: pointer;
}

.page-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

/* ==========================================================================
   9. 底部 Footer (深红背景，对齐 demo.pdf)
   ========================================================================== */
.site-footer {
  width: 100%;
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 40px 0 34px 0;
  margin-top: 30px;
  font-size: 13px;
}

.footer-friendlinks {
  text-align: center;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.footer-friendlinks span {
  font-weight: 500;
  margin-right: 12px;
}

.footer-friendlinks a {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 10px;
}

.footer-friendlinks a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* 5个社交媒体圆圈按钮 */
.footer-social-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 20px;
}

.social-circle-btn {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
  padding: 24px;
  background-repeat: repeat-x;
  position: relative;
}
.social-circle-btn>img{
  width: 30px;
  height: 30px;
  max-width: none;
}

.social-circle-btn:hover {
  background-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.footer-line-sep {
  width: 80%;
  max-width: 900px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 0 auto 18px auto;
}

.footer-info-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
  font-size: 12.5px;
}

.footer-info-text a {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   10. 移动端与响应式自适应
   ========================================================================== */
@media (max-width: 992px) {
  .site-header {
    height: auto;
    padding: 10px 0;
  }
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
  .header-right {
    flex-wrap: wrap;
    justify-content: center;
  }
  .layout-container {
    flex-direction: column;
  }
  .subpage-sidebar {
    width: 100%;
  }
  .subnews-grid,
  .rules-two-cols,
  .portal-2x2-grid,
  .stories-grid {
    grid-template-columns: 1fr;
  }
  .home-banner-row,
  .portrait-grid,
  .jubao-channels-grid,
  .jubao-steps-grid,
  .lianjie-cards-grid,
  .zhuanti-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .home-banner-row,
  .portrait-grid,
  .jubao-channels-grid,
  .jubao-steps-grid,
  .lianjie-cards-grid,
  .zhuanti-grid {
    grid-template-columns: 1fr;
  }
  .header-search input {
    width: 140px;
  }
}

/* ==========================================================================
   8.1 KesionCMS page bar (.fenye) and article body
   ========================================================================== */
.fenye {
  text-align: center;
  margin-top: 22px;
  padding-top: 18px;
  color: #777777;
  font-size: 13px;
}

.fenye a {
  display: inline-block;
  margin: 0 3px;
  padding: 4px 10px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  color: #555555;
  font-size: 13px;
  border-radius: 3px;
  text-decoration: none;
}

.fenye a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.fenye font {
  color: var(--primary-color);
  font-weight: bold;
}

.article-detail-body p {
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.9;
  text-indent: 2em;
  color: #333333;
}

.article-detail-body img {
  max-width: 100%;
  height: auto;
  margin: 10px auto;
}
/* ==========================================================================
   8.2 KesionCMS page bar -> same look as .page-btn
   ========================================================================== */
.fenye {
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  text-align: center;
}

.fenye a,
.fenye font {
  font-size: 13px;
  line-height: 22px;
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(250,250,250,1);
  color: #555555;
  border-radius: 2px;
  text-decoration: none;
  border-radius: 3px;
}

.fenye a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.fenye font {
  background-color:  rgba(250,250,250,1);
  border: 1px solid rgba(221,221,221,1);
  font-weight: normal;
}

.fenye select {
  display: none;
}
.fenye .active{
  background-color: var(--primary-color);
  color: #fff;
}
/* ==========================================================================
   9. breadcrumb separator / card links / search page
   ========================================================================== */
.bc-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.bc-inline .bc-sep {
  display: none;
}

.bc-inline a:not(:first-of-type)::before {
  content: ">>";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.portrait-photo-link {
  display: block;
}

.portrait-name a {
  color: inherit;
  text-decoration: none;
}

.portrait-name a:hover {
  color: var(--primary-color);
}

.lianjie-art-title a {
  color: inherit;
  text-decoration: none;
}

.lianjie-art-title a:hover {
  color: var(--primary-color);
}

.search-page-form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.search-page-form input[type="text"] {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  font-size: 14px;
}

.search-page-form input[type="text"]:focus {
  border-color: var(--primary-color);
  outline: none;
}

.search-page-form button {
  height: 38px;
  padding: 0 26px;
  border: none;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 14px;
  border-radius: 2px;
  cursor: pointer;
}

.search-page-form button:hover {
  opacity: 0.9;
}

.search-summary {
  font-size: 13px;
  color: #777777;
  margin-bottom: 14px;
}

.search-summary em,
.search-result-item em {
  color: var(--primary-color);
  font-style: normal;
}

.search-summary strong {
  color: var(--primary-color);
}

.search-result-item {
  padding: 14px 0;
  border-bottom: 1px dashed #e8e8e8;
}

.search-result-title {
  font-size: 16px;
  color: #333333;
  font-weight: bold;
}

.search-result-title:hover {
  color: var(--primary-color);
}

.search-result-meta {
  font-size: 12px;
  color: #999999;
  margin: 6px 0;
  display: flex;
  gap: 16px;
}

.search-result-intro {
  font-size: 13px;
  color: #666666;
  line-height: 1.8;
}

.showpage {
  text-align: center;
  font-size: 13px;
  color: #777777;
  margin-top: 22px;
}

.showpage a {
  display: inline-block;
  padding: 3px 10px;
  margin: 0 3px;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  background: #ffffff;
  color: #555555;
}

.showpage a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.showpage input[type="text"] {
  height: 22px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.showpage input[type="submit"] {
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  color: #ffffff;
  height: 22px;
  padding: 0 8px;
  cursor: pointer;
}
.jijian-list-type li{
padding-left: 24px;
position: relative;
}
.jijian-list-type li::before{
  content: " ";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url('../images/licon0.png') no-repeat center / contain;
}
.wenhua-card{
  background: linear-gradient(135deg, rgba(24,121,78,1) 0%,rgba(35,155,102,1) 100%);color:#fff;border-radius:4px;
  padding:34px 16px;text-align:center;display:block;
}

.jubao-list-type1 div::before{
  content: " ";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url('../images/cha.png') no-repeat center / contain;
}
.jubao-list-type0 div,.jubao-list-type1 div{
padding-left: 24px;
position: relative;
}
.jubao-list-type0 div::before{
  content: " ";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url('../images/gou.png') no-repeat center / contain;
}

.social-circle-btn .code{
  position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -70px;
    margin-bottom: 10px;
    margin-top: 15px;
    padding: 10px;
    display: flex;
    color: #000000;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0; 
    transform: translateY(-10px);
    transition: all 0.2s ease-out 0s;
    z-index: 99;
    font-size: 12px;
    text-align: center;
}

.social-circle-btn:hover .code{
  visibility: visible;
    opacity: 1;
    transform: none;
}
.social-circle-btn .code img{
  width: 120px;
  height: 120px;
  max-width: none;
}

.social-circle-btn .code:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    margin-left: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    font-size: 0;
    border-top-color: #fff;
}


.zhuanti-grid .zhuanti-link:hover{
  color:#aaa;
}

.zhuanti-card0 .redpart{
  border-radius: 10px 10px 0px 0px;
  background-color: var(--primary-color);
  position: relative;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 15px;
}
.zhuanti-card0 .redpart .zhuanti-title{
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  
  white-space: wrap;      /* 不换行 */
}
.zhuanti-grid .zhuanti-card0 {
  background-color: white;
  border-radius: 10px 10px 10px 10px;
  border: 1px solid rgba(238,238,238,1);
}
.redpart .zhuanti-tag{
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 10px 10px 10px 10px;
background-color: rgba(255,255,255,0.25);
color: rgba(255, 255, 255, 1);
font-size: 11px;
text-align: center;
  padding: 3px 8px;
}
.zhuanti-card0 .whitepart{
  padding: 16px 19px;
  align-items: center;
  display: flex;
  flex-direction: column;   /* 纵向排列 */
  align-items: flex-end;  /* 交叉轴左对齐（关键） */  justify-content: space-around; height: 120px;
}
.zhuanti-card0 .whitepart p{
  color: rgba(184, 38, 46, 1);
font-size: 13px;
}
.zhuanti-card0 .whitepart .zhuanti-desc{
  color: rgba(102, 102, 102, 1);
font-size: 13px;
}

.awards-list {
    list-style: none;
    font-size: 14px;
    color: var(--text);
}
.awards-list li {
    padding: 4px 0;
    color: #444;
}
.deeds-text {
    font-size: 14.5px;
    color: #444;
    text-indent: 2em;
    text-align: justify;
}