/* ========================================
   红色申报网站 - 全局样式
   PbootCMS 模板专用
   ======================================== */

/* CSS 变量 */
:root {
  /* 红色系 */
  --red-deep: #8f1117;
  --red-main: #b71920;
  --red-soft: #fff3f2;

  /* 文字色 */
  --ink: #20242a;
  --text: #3e454d;
  --muted: #6d7480;

  /* 辅助色 */
  --line: #e6e9ee;
  --paper: #ffffff;
  --soft: #f6f7f9;
  --accent: #b68a3a;
}

/* 重置 & 基础 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--paper);
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}

@media (max-width: 1280px) {
  .container {
    width: calc(100% - 40px);
    padding: 0 20px;
  }
}

/* 标题 */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

/* 链接 */
a {
  color: var(--red-main);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--red-deep);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--red-main);
  color: var(--paper);
}

.btn-primary:hover {
  background-color: var(--red-deep);
  color: var(--paper);
}

.btn-outline {
  background-color: transparent;
  color: var(--red-main);
  border: 1px solid var(--red-main);
}

.btn-outline:hover {
  background-color: var(--red-soft);
  color: var(--red-main);
}

/* 表单 */
input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red-main);
}

input::placeholder {
  color: var(--muted);
}

/* 卡片 */
.card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

/* 分割线 */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--line);
}

/* 页面背景 */
.page-bg {
  background-color: var(--soft);
}

.page-bg-red {
  background-color: var(--red-soft);
}

/* ========================================
   组件样式
   ======================================== */



.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* 移动端菜单按钮 - 桌面端隐藏 */
.mobile-menu-toggle {
  display: none;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.header-actions .btn {
  padding: 8px 20px;
}

/* 主内容 */
.main {
  min-height: calc(100vh - 72px - 160px);
}

/* 区块 */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--red-main);
  display: inline-block;
}

/* Banner */
.banner {
  padding: 80px 0;
  text-align: center;
}

.banner-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.banner-desc {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.banner-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card-link {
  display: block;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.card-link:hover {
  border-color: var(--red-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-link h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.card-link p {
  color: var(--muted);
  font-size: 0.875rem;
}

/* 步骤 */
.steps {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: var(--line);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--red-main);
  color: var(--paper);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.step-content h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--muted);
  font-size: 0.875rem;
}

/* 公告列表 */
.notice-list {
  list-style: none;
}

.notice-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.notice-item:first-child {
  padding-top: 0;
}

.notice-date {
  color: var(--muted);
  font-size: 0.875rem;
  margin-right: 24px;
  flex-shrink: 0;
  width: 100px;
}

.notice-title {
  color: var(--text);
  flex: 1;
}

.notice-title:hover {
  color: var(--red-main);
}

.more-link {
  text-align: right;
  margin-top: 16px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.875rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.pagination a:hover {
  border-color: var(--red-main);
  color: var(--red-main);
}

.pagination .page-status {
  border: none;
  background: none;
}

/* 页脚 - 红色主题 */
.footer {
  background-color: var(--red-main);
  color: var(--paper);
  padding: 40px 0;
}

.footer-inner {
  text-align: center;
}

.footer-info {
  margin-bottom: 10px;
}

.footer-copy {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ========================================
   内页样式
   ======================================== */

/* 内页 Banner */
.page-hero {
  height: 220px;
  color: #fff;
  background: linear-gradient(90deg, rgba(107, 13, 18, 0.92), rgba(168, 26, 34, 0.82));
  display: flex;
  align-items: center;
}

.page-title .page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title h1 {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.page-title p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  max-width: 600px;
}

/* ========================================
   PDF预览区域
   ======================================== */
.pdf-viewer-section {
  margin-top: 32px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pdf-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-icon {
  font-size: 1.25rem;
}

.pdf-container {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--soft);
}

.pdf-embed {
  display: block;
  min-height: 650px;
}

.pdf-iframe {
  display: block;
  min-height: 700px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
}

.pdfjs-container {
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  overflow: hidden;
}

.pdfjs-iframe {
  display: block;
  min-height: 750px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
}

.pdf-download {
  margin-top: 16px;
  text-align: center;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.pdf-download .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   单页模板样式
   ======================================== */
.single-layout {
  padding: 40px 0;
}

.single-article {
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  padding: 40px;
}

@media (max-width: 768px) {
  .single-article {
    padding: 24px;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #fff;
}

/* 页面布局 */
.page-layout {
  display: block;
  overflow: hidden;
  padding: 40px 0;
}

/* 左侧边栏 */
.sidebar {
  float: left;
  width: 220px;
  margin-right: 30px;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-header {
  background: #b71920;
  padding: 16px 20px;
  border: none;
  box-sizing: border-box;
  width: 100%;
}

.sidebar-header h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  word-wrap: break-word;
  word-break: break-all;
  line-height: 1.4;
}

.sidebar-nav {
  background: #fff;
  border: none;
  border-top: 1px solid #e6e9ee;
  padding: 10px 0;
  box-sizing: border-box;
  width: 100%;
}

.sidebar-nav a {
  display: block;
  padding: 12px 20px;
  color: #3e454d;
  font-size: 15px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  word-wrap: break-word;
  word-break: break-all;
  line-height: 1.4;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: #fff3f2;
  color: #b71920;
  border-left-color: #b71920;
}

/* 二级导航菜单 */
.sidebar-nav.submenu {
  border-top: 1px solid #e6e9ee;
  border-radius: 0;
  background: #fafafa;
}

.sidebar-nav.submenu a {
  padding-left: 32px;
  font-size: 14px;
  color: #666;
}

.sidebar-nav.submenu a:hover,
.sidebar-nav.submenu a.active {
  background: #f0f0f0;
  color: #b71920;
  border-left-color: #b71920;
}

/* 右侧内容区 */
.content-main {
  float: left;
  width: calc(100% - 250px);
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  padding: 32px;
}

.content-header {
  border-bottom: 2px solid #b71920;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.content-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #20242a;
  margin: 0;
}

/* 列表页样式 */
.list-container {
  margin-bottom: 32px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #e6e9ee;
  overflow: hidden;
}

.list-item:last-child {
  border-bottom: none;
}

.list-date {
  flex-shrink: 0;
  text-align: right;
  margin-left: 20px;
}

.list-date .day {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #b71920;
  line-height: 1;
}

.list-date .month {
  display: block;
  font-size: 12px;
  color: #6d7480;
  margin-top: 4px;
}

.list-date .date-full {
  display: block;
  font-size: 13px;
  color: #6d7480;
  line-height: 1.4;
}

.list-info {
  flex: 1;
  min-width: 0;
}

.list-info h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.list-info h3 a {
  color: #20242a;
  transition: color 0.2s;
}

.list-info h3 a:hover {
  color: #b71920;
}

.list-info p {
  color: #6d7480;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* 分页 */
.pagination {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #e6e9ee;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 详情页样式 */
.content-article {
  max-width: 100%;
}

.article-header {
  border-bottom: 1px solid #e6e9ee;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.article-title {
  font-size: 26px;
  font-weight: 700;
  color: #20242a;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.article-meta {
  color: #6d7480;
  font-size: 14px;
}

.article-meta span {
  margin-right: 24px;
}

/* 内容区域标题居中 */
.content-article .article-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.content-article .article-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--ink);
}

.content-article .article-meta {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.875rem;
  justify-content: center;
}

.article-body {
  font-size: 15px;
  line-height: 1.8;
  color: #3e454d;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 上下篇导航 */
.article-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e6e9ee;
  overflow: hidden;
}

.article-nav .prev {
  float: left;
  width: 48%;
}

.article-nav .next {
  float: right;
  width: 48%;
  text-align: right;
}

.article-nav a {
  color: #3e454d;
  font-size: 14px;
  transition: color 0.2s;
}

.article-nav a:hover {
  color: #b71920;
}

/* 清除浮动 */
.page-layout::after,
.list-item::after,
.article-nav::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .home-banner {
    padding: 60px 0;
  }

  .home-banner .banner-title {
    font-size: 1.75rem;
  }

  .intro-grid {
    flex-direction: column;
    gap: 20px;
  }

  .intro-card {
    width: 100%;
    height: auto;
    min-height: 280px;
    padding: 20px;
  }

  .intro-card .card-header {
    margin-bottom: 16px;
  }

  .intro-card .card-title {
    font-size: 18px;
  }

  .intro-card .card-content {
    font-size: 14px;
    line-height: 1.7;
    padding-bottom: 50px;
  }

  .intro-card .card-link {
    right: 20px;
    bottom: 20px;
    padding: 8px 18px;
    font-size: 13px;
  }

  .carousel-item {
    flex: 0 0 calc(50% - 12px);
    min-width: 160px;
  }

  .carousel-btn {
    display: none;
  }
}

/* ========================================
   侧边导航样式
   ======================================== */
.sidebar-nav {
  width: 240px;
  flex-shrink: 0;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.sidebar-nav-header {
  background-color: var(--red-main);
  padding: 20px 24px;
}

.sidebar-nav-header h2 {
  color: var(--paper);
  font-size: 1.125rem;
  font-weight: 600;
}

.sidebar-nav-list {
  list-style: none;
}

.sidebar-nav-list > li > a {
  display: block;
  padding: 14px 24px;
  color: var(--text);
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--line);
  transition: all 0.2s;
}

.sidebar-nav-list > li:last-child > a {
  border-bottom: none;
}

.sidebar-nav-list > li > a:hover,
.sidebar-nav-list > li.active > a {
  background-color: var(--red-soft);
  color: var(--red-main);
  padding-left: 32px;
}

.sidebar-nav-list > li.active > a {
  font-weight: 500;
}

/* 二级菜单 */
.sidebar-nav-list .sub-menu {
  list-style: none;
  background-color: var(--soft);
  display: none;
}

.sidebar-nav-list > li.active > .sub-menu {
  display: block;
}

.sidebar-nav-list .sub-menu a {
  display: block;
  padding: 10px 24px 10px 40px;
  color: var(--muted);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.sidebar-nav-list .sub-menu a:hover {
  color: var(--red-main);
  padding-left: 48px;
}

@media (max-width: 768px) {
  .sidebar-nav {
    width: 100%;
    margin-bottom: 24px;
  }
}
/* ========================================
   页面布局
   ======================================== */
.page-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-layout .content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .page-layout {
    flex-direction: column;
  }

  .page-layout .sidebar {
    width: 100%;
  }
}

/* ========================================
   列表页样式
   ======================================== */
.list-wrap {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  transition: all 0.2s;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background-color: var(--red-soft);
  padding-left: 32px;
}

.list-title {
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.list-item:hover .list-title {
  color: var(--red-main);
}

.list-desc {
  color: var(--muted);
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-date {
  color: var(--muted);
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-left: 24px;
}

/* ========================================
   内容页样式
   ======================================== */
.article-wrap {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.article-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--ink);
}

.article-meta {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.875rem;
}

.article-content {
  line-height: 1.8;
  color: var(--text);
}

.article-content p {
  margin-bottom: 16px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 4px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 24px 0 16px;
  color: var(--ink);
}

.article-tags {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.article-tags .tag {
  display: inline-block;
  padding: 4px 12px;
  margin-left: 8px;
  background-color: var(--soft);
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--text);
}

.article-tags .tag:hover {
  background-color: var(--red-soft);
  color: var(--red-main);
}

/* 上下篇导航 */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-prev,
.article-next {
  max-width: 45%;
}

.article-prev a,
.article-next a {
  color: var(--text);
  font-size: 0.875rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-prev a:hover,
.article-next a:hover {
  color: var(--red-main);
}

@media (max-width: 768px) {
  .article-wrap {
    padding: 24px;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 8px;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .list-date {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 0;
    gap: 16px;
    position: relative;
    min-height: 60px;
  }

  /* 移动端汉堡菜单按钮 - 强制显示 */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    padding: 0;
    margin: 0;
    margin-left: auto;
    z-index: 101;
  }

  .mobile-menu-toggle .menu-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s;
    border-radius: 1px;
  }

  .mobile-menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* 移动端导航菜单 - 下拉展开 */
  .nav-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #b71920;
    flex-direction: column;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99;
    gap: 0;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-menu .nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-menu .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link,
  .nav-menu > a {
    font-size: 15px;
    padding: 12px 0;
    white-space: normal;
    min-height: auto;
    display: block;
    color: #fff;
  }

  .nav-link::after,
  .nav-menu > a::after {
    display: none;
  }

  /* 移动端隐藏下拉箭头，仅影响移动端 */
  .nav-menu.active .nav-caret {
    display: none !important;
  }

  /* 移动端汉堡菜单展开时，显示所有二级菜单 */
  .nav-menu.active .mega-menu {
    display: block !important;
    position: static;
    background: rgba(0,0,0,0.1);
    padding: 0;
    margin: 0 -20px;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-item.has-dropdown {
    position: relative;
  }

  .nav-menu.active .mobile-submenu {
    display: block;
    position: static;
    background: rgba(0,0,0,0.1);
    padding: 0;
    margin: 0 -20px;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-submenu .mega-inner {
    display: block;
    padding: 10px 20px;
  }

  .mega-group {
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .mega-group:last-child {
    border-bottom: none;
  }

  .mega-group-link {
    display: block;
    padding: 10px 0 10px 20px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
  }

  .mega-group-link:hover {
    color: #fff;
  }

  /* 列表页侧边栏在手机端隐藏 */
  .page-layout .sidebar,
  aside.sidebar {
    display: none;
  }

  .page-layout .content-main,
  .content-main {
    width: 100%;
    margin-left: 0;
    float: none;
  }

  /* 移动端隐藏下拉菜单 */
  .nav-drop {
    display: none !important;
  }
}

/* ========================================
   新闻列表样式
   ======================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all 0.2s;
}

.news-item:hover {
  border-color: var(--red-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-img {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: 4px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-item:hover .news-img img {
  transform: scale(1.05);
}

.news-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.news-title {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.news-item:hover .news-title {
  color: var(--red-main);
}

.news-desc {
  flex: 1;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-meta {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

.news-view::before {
  content: '';
}

@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }

  .news-img {
    width: 100%;
    height: 180px;
  }
}

/* ========================================
   首页简介区域 - 三列卡片
   ======================================== */
.section-intro {
  padding: 60px 0;
  background: #fff;
}

.intro-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 0;
}

.intro-card {
  flex: 1;
  height: 320px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(196, 0, 0, 0.08);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(144, 0, 0, 0.08);
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.intro-grid::after {
  content: "";
  display: table;
  clear: both;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d71920, #a90000);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(190, 0, 0, 0.22);
  position: relative;
}

.card-icon::before {
  content: "★";
  color: #fff;
  font-size: 18px;
}

.intro-card .card-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.intro-card .card-content {
  color: #444;
  line-height: 1.9;
  font-size: 16px;
  margin: 0;
  text-indent: 2em;
  flex: 1;
  overflow: hidden;
  text-align: justify;
  padding-bottom: 50px;
}

/* 了解更多按钮 */
.intro-card .card-link {
  position: absolute;
  right: 28px;
  bottom: 28px;
  padding: 10px 24px;
  border: 1px solid #d31a22;
  border-radius: 4px;
  color: #c9151e;
  background: transparent;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.intro-card .card-link:hover {
  color: #fff;
  background: #c9151e;
}

/* 视频区域 */
.card-video {
  margin-top: 10px;
  flex: 1;
  position: relative;
}

.card-video video {
  width: 100%;
  max-height: 280px;
  border-radius: 6px;
  background: #000;
}

/* 视频封面 */
.video-poster {
  position: relative;
  width: 100%;
  height: 180px;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
}

.video-poster:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(183, 25, 32, 0.95);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(183, 25, 32, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: all 0.3s;
  padding-left: 5px;
}

.card-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--red-main);
  color: var(--red-main);
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s;
}

.card-btn:hover {
  background: var(--red-main);
  color: #fff;
}

.card-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.card-links a:last-child {
  border-bottom: none;
}

.card-links a:hover {
  color: var(--red-main);
}

.link-num {
  color: var(--muted);
  font-weight: 600;
  min-width: 28px;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.video-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--red-main);
  cursor: pointer;
}

.video-plus {
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.video-text {
  font-size: 14px;
}

/* ========================================
   头部导航（参考案例样式）
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #b71920;
  box-shadow: 0 8px 28px rgba(20, 24, 32, 0.06);
}



.header-inner {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: auto !important;
  height: 52px !important;
  max-width: none;
  max-height: 52px;
  object-fit: contain;
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 2px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.nav-item {
  position: static;
}

.nav-item.has-dropdown {
  position: relative;
}

.nav-link,
.nav-menu > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 78px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.22s ease;
  white-space: nowrap;
}

.nav-link::after,
.nav-menu > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 17px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"],
.nav-menu > a:hover {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

.nav-caret {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

/* 下拉菜单 - Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 90;
  width: min(1120px, calc(100vw - 48px));
  max-height: min(72vh, 720px);
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  pointer-events: none;
}

.mega-menu--top {
  width: 238px;
  max-height: none;
  padding-top: 10px;
}

.mega-menu--top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(183, 25, 32, 0.14);
  border-left: 1px solid rgba(183, 25, 32, 0.14);
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: -4px -4px 12px rgba(92, 0, 0, 0.04);
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.nav-item.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* 如果没有二级菜单（mega-inner为空），不显示下拉 */
.mega-menu:has(.mega-inner:empty) {
  display: none !important;
}

/* 同时隐藏无子菜单项的下拉箭头 */
.nav-item:has(.mega-inner:empty) .nav-caret {
  display: none;
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-height: inherit;
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(183, 25, 32, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.mega-menu--top .mega-inner {
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: none;
  overflow: visible;
  padding: 10px;
  border-color: rgba(183, 25, 32, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(92, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.mega-group {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mega-menu--top .mega-group {
  padding: 0;
  border: 0;
  background: transparent;
}

.mega-group-link {
  display: block;
  min-height: 0;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  opacity: 1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mega-group-link:hover {
  color: var(--red-main);
  background: linear-gradient(90deg, #fff3f2 0%, #fff 100%);
  transform: translateX(2px);
}

.mega-title {
  min-width: 0;
}

.article-detail .article-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.article-detail .article-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.article-detail .article-meta {
  justify-content: center;
}

.article-cover {
  margin-bottom: 32px;
  border-radius: 6px;
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: auto;
}

.article-body {
  line-height: 1.8;
  color: var(--text);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 4px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 32px 0 16px;
  color: var(--ink);
}

.article-detail .article-tags {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-label {
  color: var(--muted);
  font-size: 0.875rem;
}

.article-tags .tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--soft);
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--text);
  transition: all 0.2s;
}

.article-tags .tag:hover {
  background-color: var(--red-soft);
  color: var(--red-main);
}

.article-detail .article-nav {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.nav-label {
  color: var(--muted);
  margin-right: 8px;
}

@media (max-width: 768px) {
  .article-detail {
    padding: 24px;
  }

  .article-detail .article-title {
    font-size: 1.5rem;
  }
}

/* ========================================
   关于我们页面样式
   ======================================== */
.about-content {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
}

.about-section {
  margin-bottom: 48px;
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-section h2 {
  font-size: 1.375rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red-main);
  display: inline-block;
}

.about-section .about-body {
  line-height: 1.8;
  color: var(--text);
}

.about-section .about-body p {
  margin-bottom: 16px;
}

.about-img {
  margin-top: 24px;
}

.about-img img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.contact-item {
  padding: 16px 20px;
  background-color: var(--soft);
  border-radius: 4px;
}

.contact-label {
  color: var(--muted);
  margin-right: 8px;
}

.contact-value {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-content {
    padding: 24px;
  }

  .about-section {
    margin-bottom: 32px;
  }
}

/* ========================================
   首页 Banner
   ======================================== */
.hero {
  position: relative;
  height: 360px;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, rgba(145, 0, 0, 0.78) 0%, rgba(180, 0, 0, 0.48) 44%, rgba(130, 0, 0, 0.1) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 226, 155, 0.18), transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: none;
  padding: 72px 0 0;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 4px 16px rgba(88, 0, 0, 0.35);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 14px 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8dd 0%, #ffe4a2 100%);
  color: #b00000;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 10px 28px rgba(70, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .hero {
height: 320px;
  }

  .hero-content {
    padding: 58px 0 68px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-badge {
    font-size: 18px;
    padding: 12px 32px;
  }
}

/* ========================================
   成果展示区域 - 荣誉展示轮播图
   ======================================== */
.section-showcase {
  padding: 40px 0 60px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.section-more {
  margin-left: auto;
  font-size: 14px;
  color: var(--red-main);
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid var(--red-main);
  border-radius: 4px;
  transition: all 0.3s;
}

.section-more:hover {
  background: var(--red-main);
  color: #fff;
}

.section-icon {
  width: 4px;
  height: 24px;
  background: var(--red-main);
  border-radius: 2px;
}

.section-showcase .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  padding: 0;
  border: none;
}

/* 荣誉展示横向滚动 */
.gallery-wrap {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(196, 0, 0, 0.08);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(144, 0, 0, 0.08);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.gallery-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--red-main);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.gallery-btn:hover {
  background: #8f1117;
  transform: scale(1.1);
}

.gallery-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.gallery-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-scroll-wrapper {
  display: flex;
  width: max-content;
  /* JS控制滚动，移除CSS动画 */
}

.gallery-scroll-wrapper.auto-scroll {
  animation: galleryScroll 30s linear infinite;
}

.gallery-scroll-wrapper:hover {
  /* animation-play-state: paused; */
}

.gallery-scroll-list {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.gallery-item {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 横向滚动动画 - 从右向左 */
@keyframes galleryScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .gallery-item {
    width: 160px;
    height: 110px;
  }

  .gallery-scroll-list {
    gap: 12px;
  }
}

/* 新闻滚动容器 */
.news-scroll-container {
  margin-top: 16px;
  flex: 1;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-scroll-wrapper {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

.news-scroll-list {
  width: 100%;
}

.news-scroll-list {
  padding: 0;
}

.news-scroll-item {
  padding: 10px 0;
  line-height: 1.6;
}

.news-scroll-item a {
  color: #444;
  font-size: 15px;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-scroll-item a:hover {
  color: #c9151e;
}
