/* 1. 定义字体 */
@font-face {
  font-family: 'FangZheng1';     /* 自己取个名字，后面用这个 */
  src: url('../fonts/fangzheng1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* 优化加载体验 */
}

/* 2. 只有添加了 fangzheng1 类的元素才使用这个字体 */
.fangzheng1 {
  font-family: 'FangZheng1', sans-serif;
}
/* 3. 让 Bootstrap 类也生效（覆盖默认字体） */
/*h1, h2, h3, h4, h5, h6,*/
/*p, a, span, div,*/
/*.btn, .nav-link, .form-control {*/
/*  font-family: 'FangZheng1', sans-serif !important;*/
/*}*/
:root {
  --primary-red: #c82026;
  --light-red: #e83036;
  --text-dark: #333;
}
a {    
	text-decoration: none;
}
.xx-fs-6{
  font-size: 1rem;
}

.xx-fs-7{
  font-size: 0.85rem;
}
section {
    max-width: 100% !important;
    width: 100% !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > footer {
  margin-top: auto;
}
/* 顶部红色导航栏 */
.top-header {
  background-color: var(--primary-red);
  background:url(/images/header_bj.png) center center / 100% no-repeat;
  color: white;      
}
.logo-text {
  font-size: 5rem;
  font-weight: bold;
  line-height: 1;
  height: 12rem;
}
.logo-title {
  font-size: 1.5rem;
  line-height: 1.6;
}
.auth-links a {
  color: white;
  text-decoration: none;
  margin-left: 1rem;
}
/* 导航菜单 (PC端样式保留) */
.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
}
.navbar-nav .nav-link.active {
  color: var(--primary-red);
}
/* 主视觉区域 */
.hero-bg {
  position: relative;
}
.hero-overlay {
  background-color: rgba(255,255,255,0.85);
  position: absolute;
  inset: 0;
}
/* 任务看板 */
.task-card {
  background:url(/images/redbj.png) center center / 100% no-repeat;
  color: white;
  border-radius: 0;
  position:relative;
  z-index:0;
}
.task-card::before{
  content:'';
  top:0;
  right:0;
  position:absolute;
  z-index:1;
  background:#fff;
  clip-path: polygon(100px 0, 0 100px, 100px 100px); /* 修复拼写错误 */
}
.task-item {
  /*border-bottom: 1px solid rgba(255,255,255,0.2);*/
  padding: 0.1rem 0;
}
.task-item:last-child {
  border-bottom: none;
}
.task-count {
  font-size: 5rem;
  font-weight: bold;
  line-height:5rem;
}
.btn-task {
  background-color: transparent;
  border: 1px solid white;
  color: white;
  font-size: 0.8rem;
  padding: 0.3rem 1rem;
}
.btn-task:hover {
  background-color: white;
  color: var(--primary-red);
}
/* 公告栏切角样式 */
.section-title {
  background-color: var(--primary-red);
  color: white;
  padding: 0.05rem 1rem;
  display: inline-block;
  font-size: 1rem;
  z-index: 0;
  position: relative;
  overflow: visible;
}
.section-title::before {
  content: "";
  position: absolute;
  background: var(--primary-red);
  top: 0;
  left: -24px;
  width: 25px;
  height: 100%;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  z-index: -1;
}
/* 页脚 */
footer {
  border-top: 1px solid #cd312e;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #666;
}
.xheadercontent{
  margin-top: 3rem;
  height: 10rem;
  position: relative;
}
.xheadercontent::before{
  position: absolute;
  background-color: var(--primary-red);
  mix-blend-mode: multiply;
  top:0;
  left:0;
  width:100%;
  height:100%;
  content:"";
  z-index: 0;
}
/* 父级保持原样，mix-blend-mode 在子元素上实现 */
.top-header {
  background: url(/images/header_bj.png) center center / 100% no-repeat;
}
.gap-6 {
  gap: 4rem !important;
}
.gap-7 {
  gap: 5rem !important;
}
.xbtn-task{
  font-size: 0.6rem;
  padding: 0.1rem;
}
.xx-m-logo{
  height:120% !important;
  margin-top:-12%;
}
.xx-bt-6{
  margin-top: 4rem !important;
}
.xx-bt-7{
  margin-top: 5rem !important;
}
.xx-pt-6{
  padding-top: 4rem !important;
}
.xx-pt-7{
  padding-top: 5rem !important;
}

/* ========== 移动端专属响应式改造 ========== */
@media (max-width: 768px) {
  /* 顶部header背景简化 */
  .top-header{
    position: relative;
    z-index: 2;
  }
  .xheadercontent{
    background: rgba(170, 14, 11, 0) !important;
    margin-top: 0.5rem !important;
    height: auto !important;
    padding-bottom: 0.5rem !important;
  }
  .top-header .xheadercontent {
    margin-top: 0.5rem !important;
    height: auto !important;
    padding: 0.75rem 0 0.5rem 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }
  .top-header .d-flex.align-items-center.gap-4.col-10 {
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
    text-align: center;
  }
  .logo-text{
    height: 4.5rem !important;
  }
  .logo-text.col-3 {
    width: auto !important;
    text-align: center;
  }
  .logo-text img {
    max-height: 100px;
    width: auto;
    margin: 0 auto;
  }
  .vr.h-100.bg-white {
    display: none;
  }
  .logo-title.col-8 {
    width: 100% !important;
    font-size: 0.95rem;
    line-height: 1.4;
  }
  /* 登陆注册保持原位置在右上角 */
  .auth-links {
    position: absolute;
    top: 12px;
    right: 16px;
    width: auto !important;
    height: auto !important;
    background: transparent;
    text-align: right;
    z-index: 20;
  }
  .auth-links a {
    font-size: 0.85rem;
    margin-left: 0.8rem;
    background: rgba(0,0,0,0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
  }
  
  /* 手机端导航栏 */
  .navbar {
    position: relative;
    top: 0;
    margin-top: -0.5rem;
    z-index: 15;
    backdrop-filter: blur(2px);
    border-radius: 0;
  }
  .navbar .container {
    padding: 0 12px;
  }
  .navbar-toggler {
    background-color: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
  }
  .navbar-toggler-icon {
    filter: brightness(0) invert(1);
  }
  .navbar-collapse {
    background: rgba(170, 14, 11, 0.92);
    border-radius: 12px;
    margin-top: 8px;
    padding: 0.5rem 0;
  }
  .navbar-nav .nav-link {
    color: white !important;
    text-align: center;
    padding: 0.6rem 0.75rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .navbar-nav .nav-link.active {
    color: #ffd966 !important;
    background: rgba(0,0,0,0.1);
  }
  .navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.15);
  }
  .navbar-nav.gap-6 {
    gap: 0.2rem !important;
  }
  
  /* 主视觉区域 */
  .hero-bg {
    margin-top: 0;
    padding-top: 1rem !important;
  }
  .hero-bg .container .row {
    background-size: cover !important;
    aspect-ratio: auto !important;
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
  }
  .hero-bg .container .row .d-flex[style*="width: 50%"] {
    width: 100% !important;
    margin-bottom: 1.5rem;
  }
  .task-card {
    padding: 1rem !important;
  }
  .task-count {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }
  .task-item .fw-bold.fs-2 {
    font-size: 1.2rem !important;
  }
  .task-item small {
    font-size: 0.65rem;
  }
  .task-item .d-flex {
    gap: 0.25rem;
  }
  .col-md-5.offset-1 {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 0.75rem;
  }
  .section-title {
    font-size: 1.1rem !important;
  }
  .list-unstyled.ps-3.fs-5 {
    font-size: 0.85rem !important;
    padding-left: 0.5rem !important;
  }
  .list-unstyled.ps-3.fs-5 li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  /* 页脚移动端折叠布局 */
  footer .d-flex.justify-content-center.align-items-center {
    flex-direction: column !important;
    text-align: center;
    gap: 0.75rem;
  }
  footer .d-flex.align-items-center.gap-3 {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  footer .text-end.ms-5 {
    margin-left: 0 !important;
    text-align: center !important;
  }
  .hero-bg .container .row > .d-flex {
    flex-wrap: wrap;
  }
  .hero-bg .xx-pt-7 {
    padding-top: 0.5rem !important;
  }
  .hero-bg .container .row .col-md-5 .d-flex.w-auto.flex-row-reverse {
    justify-content: flex-start !important;
  }
  body {
    padding-top: 0;
  }
  .top-header + .navbar {
    margin-top: -0.25rem;
  }
}

/* 小手机进一步优化内边距 */
@media (max-width: 480px) {
  .task-card .d-flex.justify-content-between.mb-5 span {
    font-size: 0.7rem;
  }
  .task-item .task-count {
    font-size: 1.7rem !important;
  }
  .task-item .fw-bold.fs-2 {
    font-size: 0.95rem !important;
  }
  .btn-task {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
  .auth-links a {
    font-size: 0.7rem;
    margin-left: 0.4rem;
    padding: 0.15rem 0.5rem;
  }
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }
}

/* 确保原有特殊间隙在大屏正常，小屏覆写间隙 */
.gap-6 {
  gap: 4rem !important;
}
@media (max-width: 992px) {
  .gap-6 {
    gap: 1.5rem !important;
  }
}
@media (max-width: 768px) {
  .gap-6 {
    gap: 0.1rem !important;
  }
}

/* ========== 新闻页面公共样式 ========== */
:root {
  --primary-red: #c82026;
  --text-dark: #333;
  --text-muted: #6c757d;
  --border-color: #e9ecef;
}

/* 页面标题区 */
.page-header {
  padding: 2.5rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid;
}
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.page-header p {
  opacity: 0.9;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* 新闻卡片 - 横向布局 */
.news-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  display: flex;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border-color: var(--primary-red);
}

/* 图片区域 */
.news-thumb {
  width: 280px;
  min-height: 200px;
  flex-shrink: 0;
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

/* 内容区域 */
.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.news-date {
  background: var(--primary-red);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}
.news-category {
  background: #f8f9fa;
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}
.news-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  transition: color 0.3s;
}
.news-card:hover .news-title {
  color: var(--primary-red);
}
.news-excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.news-link {
  color: var(--primary-red);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.3s;
}
.news-link:hover {
  gap: 0.5rem;
  color: #a01520;
}

/* 分页样式 */
.pagination {
  gap: 0.5rem;
}
.page-link {
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
}
.page-link:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
}
.page-item.active .page-link {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color:#fff;
}

/* ========== 移动端响应式 ========== */
@media (max-width: 991px) {
  .page-header {
    padding: 1.75rem 0;
    margin-bottom: 1.5rem;
  }
  .page-header h1 {
    font-size: 1.5rem;
  }
  .news-card {
    flex-direction: column;
  }
  .news-thumb {
    width: 100%;
    min-height: 180px;
    height: 180px;
  }
  .news-content {
    padding: 1.25rem;
  }
  .news-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 576px) {
  .page-header {
    padding: 1.25rem 0;
    margin-bottom: 1rem;
  }
  .page-header h1 {
    font-size: 1.25rem;
  }
  .page-header p {
    font-size: 0.85rem;
  }
  .news-card {
    margin-bottom: 1rem;
    border-radius: 8px;
  }
  .news-thumb {
    min-height: 150px;
    height: 150px;
  }
  .news-content {
    padding: 1rem;
  }
  .news-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
  }
  .news-title {
    font-size: 1rem;
  }
  .news-excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 5;
  }
  .news-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .pagination {
    gap: 0.25rem;
  }
  .page-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* ========== TP6 分页美化 - 强制适配 Bootstrap 样式 ========== */
.pages {
  margin-top: 3rem !important;
  display: flex;
  justify-content: center;
}
.pages ul {
  display: flex !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  gap: 0.5rem !important;
}
.pages ul li {
  margin: 0 !important;
}
.pages ul li a,
.pages ul li span {
  display: block !important;
  padding: 0.5rem 1rem !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  color: #333 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  background: #fff !important;
}
/*  hover 效果 */
.pages ul li a:hover {
  background-color: #c82026 !important;
  border-color: #c82026 !important;
  color: #fff !important;
}
/* 当前页 active */
.pages ul li.active span {
  background-color: #c82026 !important;
  border-color: #c82026 !important;
  color: #fff !important;
}
/* 禁用态（首页、上页） */
.pages ul li.disabled span {
  background: #f8f9fa !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
  border-color: #e9ecef !important;
}

/* 移动端优化 */
@media (max-width: 576px) {
  .pages {
    margin-top: 2rem !important;
  }
  .pages ul {
    gap: 0.25rem !important;
  }
  .pages ul li a,
  .pages ul li span {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.85rem !important;
  }
}





    /* ========== 任务发布表单样式 ========== */
    .task-form-page {
      padding: 2rem 0;
    }
    .form-container {
      display: flex;
      gap: 2rem;
    }
    .form-sidebar {
      width: 120px;
      border-right: 2px solid var(--primary-red);
      text-align: center;
      padding-top: 1rem;
    }
    .form-sidebar .sidebar-title {
      color: var(--primary-red);
      font-weight: bold;
      margin-bottom: 2rem;
    }
    .form-sidebar .sidebar-title small {
      display: block;
      font-size: 0.8rem;
      margin-top: 0.25rem;
    }
    .form-sidebar .sidebar-item {
      color: var(--primary-red);
      font-weight: 500;
      margin-top: 1.5rem;
      writing-mode: vertical-lr;
      text-orientation: upright;
      width: 40px;
      line-height: 1.8;
      margin-left: 50%;
    }
    .sidebar-item {
      color: var(--primary-red);
      font-weight: 500;
      margin-top: 1.5rem;
      writing-mode: vertical-lr;
      text-orientation: upright;
      width: 40px;
      line-height: 1.8;
      margin-left: 50%;
    }
    .form-main {
      flex: 1;
    }
    .form-group {
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .form-group.full {
      flex-direction: column;
      align-items: flex-start;
    }
    .form-group label {
      font-size: 0.9rem;
      margin-bottom: 0.3rem;
    }
    .form-group .form-control {
      border-radius: 0;
      border: 1px solid #ccc;
      padding: 0.3rem 0.5rem;
      font-size: 0.9rem;
    }
    .form-check {
      margin-right: 1rem;
    }
    .form-check-input {
      border-color: #ccc;
    }
    .upload-area {
      width: 100%;
      min-height: 120px;
      border: 1px solid #ccc;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #aaa;
      font-size: 2rem;
    }
    /* 移动端适配 */
    @media (max-width:768px){
      .form-container {
        flex-direction: column;
        gap: 1rem;
      }
      .form-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid var(--primary-red);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding-bottom: 1rem;
        padding-top: 0;
      }
      .form-sidebar .sidebar-title {
        margin-bottom: 0;
      }
      .form-group {
        flex-wrap: wrap;
      }
      .form-check {
        margin-bottom: 0.5rem;
      }
    }
    .upload-box {
      border: 1px solid #ccc;
      min-height: 150px;
      min-width:150px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #999;
      font-size: 2rem;
      cursor: pointer;
    }
    .upload-box:hover {
      background: #f9f9f9;
    }