/* ===== 公告页面样式 — 简约风格 ===== */

.announce-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

/* 页面标题 */
.announce-page-header {
  margin-bottom: 28px;
}

.announce-page-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 6px;
}

.announce-page-desc {
  font-size: 14px;
  color: #9ca3b8;
}

/* 分类标签 */
.announce-type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.announce-type-tabs a {
  padding: 6px 18px;
  border: 1px solid #e0e4ec;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: all 0.2s;
  background: #fff;
}

.announce-type-tabs a:hover {
  border-color: #1a1f36;
  color: #1a1f36;
}

.announce-type-tabs a.active {
  background: #1a1f36;
  color: #fff;
  border-color: #1a1f36;
}

/* 公告列表 */
.announce-list {
  min-height: 160px;
}

.announce-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f0f2f5;
  transition: all 0.2s;
}

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

.announce-item:hover {
  padding-left: 6px;
}

.announce-item-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1a1f36;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 20px;
}

.announce-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.announce-item:hover .announce-item-title a {
  color: #4f6ef7;
}

.announce-item-time {
  font-size: 13px;
  color: #b0b6c4;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 分页 */
.announce-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
}

.announce-total {
  font-size: 13px;
  color: #b0b6c4;
}

.announce-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.announce-pagination button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e0e4ec;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.announce-pagination button:hover {
  border-color: #1a1f36;
  color: #1a1f36;
}

.announce-pagination button.active {
  background: #1a1f36;
  color: #fff;
  border-color: #1a1f36;
}

.announce-pagination button:disabled {
  opacity: .3;
  cursor: not-allowed;
}

/* 面包屑 */
.announce-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #b0b6c4;
}

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

.announce-breadcrumb a:hover {
  color: #1a1f36;
}

.announce-breadcrumb i {
  font-size: 8px;
  opacity: .4;
}

/* 详情卡片 */
.announce-detail-card {
  background: #fff;
  border-radius: 10px;
  padding: 40px;
  border: 1px solid #f0f2f5;
}

.announce-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1f36;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.4;
}

.announce-detail-time {
  font-size: 13px;
  color: #b0b6c4;
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f2f5;
}

.announce-detail-content {
  font-size: 15px;
  line-height: 1.9;
  color: #3a4060;
  padding-bottom: 32px;
  border-bottom: 1px solid #f0f2f5;
}

.announce-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 10px 0;
}

.announce-detail-content * {
  all: revert;
}

/* 上下篇 */
.announce-detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.announce-detail-nav a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announce-detail-nav a:hover {
  color: #1a1f36;
}

.announce-nav-placeholder {
  visibility: hidden;
}

/* 空状态 */
.announce-empty {
  text-align: center;
  padding: 60px 20px;
  color: #c0c7d6;
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .announce-container {
    padding: 20px 16px 60px;
  }

  .announce-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
  }

  .announce-item-title {
    white-space: normal;
    margin-right: 0;
  }

  .announce-detail-card {
    padding: 20px 16px;
  }

  .announce-detail-title {
    font-size: 18px;
  }

  .announce-detail-nav {
    flex-direction: column;
    gap: 10px;
  }

  .announce-detail-nav a {
    max-width: 100%;
  }

  .announce-footer {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}
