@charset "UTF-8";

/* ==========================================================================
   通知公告模块专用样式 (Notice & Announcement Styles)
   适用于通知公告列表页 (notice.html) 及详情页 (notice_detail.html)
   ========================================================================== */

/* 主体容器扩展 */
.notice-page {
  background-color: #f6f7f9;
  min-height: 100vh;
}

.notice-page .topnav {
  padding: 0;
}

.notice-page .notice-main {
  padding-top: 35px;
  padding-bottom: 70px;
}

/* 导航项激活与返回支持 */
nav .on a {
  background: #960051 !important;
  color: #fff !important;
  font-weight: bold;
}

/* 面包屑导航 (Breadcrumb) */
.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #777;
  margin-bottom: 25px;
  padding: 10px 0;
  border-bottom: 1px solid #e8e8e8;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #960051;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #bbb;
}

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

/* ==========================================================================
   列表页样式 (Notice List Page)
   ========================================================================== */

.notice-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

/* 通知卡片 */
.notice-card {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebebeb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.notice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(150, 0, 81, 0.08);
  border-color: #f1ccd9;
}

/* 左侧日期徽标 */
.notice-card-date {
  width: 110px;
  background: linear-gradient(180deg, #faf6f8 0%, #f4e8ee 100%);
  border-right: 1px solid #ebd3de;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.notice-card:hover .notice-card-date {
  background: linear-gradient(180deg, #960051 0%, #7d0043 100%);
}

.notice-card-date .year {
  font-size: 14px;
  color: #888;
  font-weight: 400;
  transition: color 0.3s ease;
}

.notice-card-date .day {
  font-size: 26px;
  font-weight: 700;
  color: #960051;
  line-height: 1.2;
  margin-top: 2px;
  transition: color 0.3s ease;
}

.notice-card:hover .notice-card-date .year,
.notice-card:hover .notice-card-date .day {
  color: #ffffff;
}

/* 中间内容区域 */
.notice-card-content {
  flex: 1;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notice-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tag-badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.tag-badge.primary {
  background-color: rgba(150, 0, 81, 0.1);
  color: #960051;
  border: 1px solid rgba(150, 0, 81, 0.2);
}

.tag-badge.new {
  background-color: #ffeedb;
  color: #d86a00;
  border: 1px solid #ffd4a8;
}

.notice-card-title {
  font-size: 19px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  margin: 0 0 10px 0;
  transition: color 0.2s ease;
}

.notice-card:hover .notice-card-title {
  color: #960051;
}

.notice-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 右侧箭头指示 */
.notice-card-arrow {
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-card-arrow .arrow-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  transition: all 0.3s ease;
}

.notice-card:hover .notice-card-arrow .arrow-icon {
  background: #960051;
  color: #fff;
  transform: translateX(4px);
}

/* 分页器组件 */
.notice-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 35px;
}

.notice-pagination a,
.notice-pagination span {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #ddd;
  color: #666;
  transition: all 0.2s;
  background: #fff;
}

.notice-pagination a:hover {
  border-color: #960051;
  color: #960051;
}

.notice-pagination .active {
  background: #960051;
  border-color: #960051;
  color: #fff;
  font-weight: bold;
}

.notice-pagination .disabled {
  color: #ccc;
  border-color: #eee;
  cursor: not-allowed;
  background: #fafafa;
}

/* ==========================================================================
   详情页样式 (Notice Detail Page)
   ========================================================================== */

.article-container {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebebeb;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  padding: 45px 50px;
  box-sizing: border-box;
}

/* 详情文章头部 */
.article-header {
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid #ebebeb;
  margin-bottom: 30px;
}

.article-title {
  font-size: 26px;
  line-height: 1.45;
  color: #222;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: 0.5px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #888;
  font-size: 14px;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.article-actions button {
  background: #f4f4f5;
  border: 1px solid #e1e1e3;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.article-actions button:hover {
  background: #960051;
  border-color: #960051;
  color: #fff;
}

/* 详情页通用富文本编辑器容器 (Rich Text Editor Content) */
.editor-content {
  color: #333333;
  font-size: 16px;
  line-height: 1.85;
  text-align: justify;
  word-wrap: break-word;
}

/* 段落规范 */
.editor-content p {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.85;
  color: #333333;
}

/* 标题规范：h1-h4，无需添加 class 即可自动呈现优雅样式 */
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
  color: #222222;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 28px;
  margin-bottom: 14px;
}

.editor-content h2 {
  font-size: 20px;
  color: #960051;
  padding-bottom: 8px;
  border-bottom: 2px solid #f4dbe5;
  display: flex;
  align-items: center;
}

.editor-content h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #960051;
  margin-right: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.editor-content h3 {
  font-size: 17px;
  color: #960051;
  margin-top: 22px;
  margin-bottom: 10px;
}

.editor-content h4 {
  font-size: 16px;
  color: #333333;
  margin-top: 18px;
  margin-bottom: 8px;
}

/* 引用块/导读提示框 (富文本编辑器标准 blockquote) */
.editor-content blockquote {
  background: #fdf5f8;
  border-left: 4px solid #960051;
  border-radius: 0 6px 6px 0;
  padding: 14px 20px;
  margin: 18px 0;
  color: #555555;
  font-size: 15px;
  line-height: 1.8;
}

.editor-content blockquote p {
  margin-bottom: 0;
}

.editor-content blockquote p + p {
  margin-top: 8px;
}

/* 列表规范 (无序列表与有序列表) */
.editor-content ul,
.editor-content ol {
  margin: 14px 0 18px 0;
  padding-left: 28px;
}

.editor-content ul {
  list-style-type: disc;
}

.editor-content ol {
  list-style-type: decimal;
}

.editor-content li {
  margin-bottom: 8px;
  line-height: 1.8;
  color: #444444;
}

.editor-content li > ul,
.editor-content li > ol {
  margin: 6px 0 6px 0;
  padding-left: 20px;
}

/* 响应式表格容器 (富文本编辑器标准 table 扩展) */
.editor-content .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

/* 表格规范 (富文本编辑器标准 table) */
.editor-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 15px;
}

.editor-content th,
.editor-content td {
  border: 1px solid #e5e5e5;
  padding: 12px 14px;
  line-height: 1.6;
  text-align: left;
}

.editor-content table.table-center th,
.editor-content table.table-center td {
  text-align: center;
}

.editor-content th {
  background-color: #faf5f7;
  color: #960051;
  font-weight: 600;
}

.editor-content tr:nth-child(even) td {
  background-color: #fafafa;
}

.editor-content tr:hover td {
  background-color: #fdf5f8;
}

/* 强调文字与超链接 */
.editor-content strong,
.editor-content b {
  font-weight: 600;
  color: #1a1a1a;
}

.editor-content a {
  color: #960051;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.editor-content a:hover {
  color: #7d0043;
}

/* 图片自适应居中 */
.editor-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
  border-radius: 4px;
}

/* 水平分割线 */
.editor-content hr {
  border: none;
  border-top: 1px solid #ebebeb;
  margin: 24px 0;
}

/* 落款区 */
.editor-sign {
  text-align: right;
  margin-top: 35px;
  padding-top: 15px;
  color: #333333;
  font-size: 16px;
  line-height: 1.8;
}

.editor-sign p {
  margin-bottom: 4px;
}

/* 附件下载区域 */
.attachment-container {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px dashed #dedede;
}

.attachment-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.attachment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbfbfc;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 14px 20px;
  transition: all 0.2s;
  text-decoration: none;
}

.attachment-card:hover {
  background: #fef7f9;
  border-color: #f1cbd7;
}

.attachment-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.attachment-icon {
  width: 40px;
  height: 40px;
  background: #2b579a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.attachment-details .attachment-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  transition: color 0.2s;
}

.attachment-card:hover .attachment-name {
  color: #960051;
}

.attachment-details .attachment-size {
  font-size: 12px;
  color: #888;
  margin-top: 3px;
}

.attachment-btn {
  background: #960051;
  color: #fff;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s;
}

.attachment-card:hover .attachment-btn {
  background: #7d0043;
}

/* 详情页底部操作 */
.article-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 28px;
  background: #ffffff;
  color: #666;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-back:hover {
  background: #960051;
  border-color: #960051;
  color: #ffffff;
}

/* ==========================================================================
   移动端自适应 (Responsive Adjustments)
   ========================================================================== */

@media (max-width: 768px) {
  .notice-page .notice-main {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .breadcrumb {
    margin-bottom: 15px;
    font-size: 13px;
  }

  /* 列表页卡片移动端堆叠 */
  .notice-card {
    flex-direction: column;
  }

  .notice-card-date {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 18px;
    border-right: none;
    border-bottom: 1px solid #ebd3de;
  }

  .notice-card-date .day {
    font-size: 18px;
    margin-top: 0;
  }

  .notice-card-content {
    padding: 16px 18px;
  }

  .notice-card-title {
    font-size: 17px;
  }

  .notice-card-arrow {
    display: none;
  }

  /* 详情页移动端排版 */
  .article-container {
    padding: 24px 18px;
  }

  .article-title {
    font-size: 20px;
  }

  .article-meta {
    font-size: 12px;
    gap: 10px;
  }

  .section-title {
    font-size: 17px;
  }

  .article-body {
    font-size: 15px;
  }

  .timeline-container {
    padding-left: 20px;
  }

  .timeline-dot {
    left: -27px;
  }

  .attachment-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .attachment-btn {
    width: 100%;
    text-align: center;
  }
}
