.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 背景图片样式 */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1; /* 负值z-index确保在最底层 */
}

.background {
  width: 100%;
  height: auto;
}

.custom-nav {
  display: flex;
  align-items: center;
  height: 90rpx;
  margin-bottom: 20rpx;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20rpx;
  padding-top: 44px; /* 适配iPhone状态栏 */
}

.fixed-back {
  font-size: 40rpx;
  text-align: center;
  color: #fff;
}

.nav-title {
  flex: 1;
  text-align: center;
  font-size: 34rpx;
  color: #fff;
}

/* 通知详情卡片样式 */
.notice-detail-wrapper {
  position: relative;
  z-index: 5; /* 确保在背景之上 */
  margin-top: calc(180rpx + env(safe-area-inset-top)); /* 适配不同顶部安全区域 */
  padding: 0 30rpx;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.notice-detail {
  background-color: #fff;
  border-radius: 20rpx;
  padding: 40rpx 30rpx;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

/* 标题居中 */
.notice-title {
  font-size: 40rpx;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 20rpx;
  position: relative;
  word-wrap: break-word;
  line-height: 1.4;
}

/* 标题下方的分隔线 */
.title-divider {
  width: 90%;
  height: 4rpx;
  opacity: 1;
  margin: 20rpx auto;
  background-color: rgba(242, 246, 250, 1);
}

/* 通知内容样式 */
.notice-content {
  font-size: 32rpx;
  color: rgba(46, 48, 56, 1);
  line-height: 1.6;
  margin-bottom: 60rpx;
  word-wrap: break-word;
}

/* rich-text内部的段落也有缩进 */
.notice-content rich-text {
  display: block;
  width: 100%;
}

/* 确保富文本中的图片自适应 */
.notice-content rich-text image {
  max-width: 100% !important;
  height: auto !important;
}

/* 落款和日期放在右下角 */
.notice-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 40rpx;
}

.notice-signature {
  font-size: 32rpx;
  color: #333;
  margin-bottom: 10rpx;
}

.notice-footer-date {
  font-size: 28rpx;
  color: #666;
}

/* 适配小屏设备 */
@media screen and (max-width: 320px) {
  .notice-title {
    font-size: 36rpx;
  }
  
  .notice-content {
    font-size: 30rpx;
  }
  
  .notice-detail {
    padding: 30rpx 20rpx;
  }
}

/* 适配大屏设备 */
@media screen and (min-width: 768px) {
  .notice-detail-wrapper {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}