.tzxqcontainer { 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状态栏 */ } .back-icon { position: fixed; top: 130rpx; left: 30rpx; z-index: 999; width: 40rpx; height: 40rpx; } .nav-title { flex: 1; text-align: center; font-size: 34rpx; color: #fff; } /* 滚动区域样式 */ .notice-scroll-view { height: calc(100vh - 180rpx - 44px); /* 减去导航栏高度和状态栏高度 */ width: 100%; position: relative; z-index: 1; margin-top: calc(90rpx + 44px); } /* 通知详情卡片容器样式 */ .notice-detail-wrapper { padding: 30rpx; box-sizing: border-box; width: 100%; } /* 通知详情卡片样式 */ .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: 36rpx; font-weight: bold; text-align: center; margin-bottom: 30rpx; } /* 标题下方分隔线 */ .title-divider { height: 2rpx; background-color: #eee; margin: 20rpx 0 30rpx; } /* 通知内容样式 */ .notice-content { font-size: 28rpx; line-height: 1.8; color: #333; margin-bottom: 40rpx; overflow-x: hidden; } /* rich-text内容样式控制 */ .notice-content rich-text { width: 100%; overflow-x: hidden; } .notice-content rich-text .rich-content { width: 100%; box-sizing: border-box; } /* 控制rich-text中的图片大小 */ .notice-content rich-text image { max-width: 100% !important; height: auto !important; } /* 控制rich-text中的文本样式 */ .notice-content rich-text p, .notice-content rich-text div, .notice-content rich-text span { max-width: 100% !important; box-sizing: border-box; word-wrap: break-word; margin: inherit; padding: inherit; } /* 通知底部落款样式 */ .notice-footer { text-align: right; font-size: 26rpx; color: #666; margin-top: 30rpx; } .notice-signature { margin-bottom: 10rpx; } .notice-footer-date { color: #999; } /* 适配小屏设备 */ @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; } }