/* 历史公告 — 移动端 */
body.page-announcements.mobile-announcements-page {
  background: #f5f7fa;
}

@media (max-width: 720px) {
  body.page-announcements.mobile-announcements-page .site-header {
    display: none !important;
  }
}

body.page-announcements.mobile-announcements-page .app-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.page-announcements .app-shell > main {
  padding: 0;
  max-width: none;
}

.mobile-ann-shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding: max(8px, env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.mobile-ann-shell .mobile-home-header {
  margin-bottom: 14px;
}

.mobile-home-header__tool {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #475467;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
}

.mobile-home-header__tool[aria-pressed="true"] {
  color: #1e80ff;
  background: rgba(30, 128, 255, 0.1);
}

.mobile-ann-upload-banner {
  display: block;
  margin: 0 0 12px;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 8px 24px rgba(30, 128, 255, 0.12);
  text-decoration: none;
}

.mobile-ann-upload-banner img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1000 / 280;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.mobile-ann-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(232, 242, 255, 0.95) 100%);
  border: 1px solid rgba(191, 219, 254, 0.65);
  box-shadow:
    0 10px 28px rgba(30, 128, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mobile-ann-hero__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #1e80ff;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  box-shadow: 0 4px 12px rgba(30, 128, 255, 0.18);
}

.mobile-ann-hero__copy h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #1e80ff;
  letter-spacing: 0.02em;
}

.mobile-ann-hero__copy p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.mobile-ann-tabs {
  display: flex;
  gap: 8px;
  padding: 0 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-ann-tabs::-webkit-scrollbar {
  display: none;
}

.mobile-ann-tabs__item {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.mobile-ann-tabs__item.is-active {
  color: #fff;
  background: linear-gradient(135deg, #1e80ff, #3b9bff);
  box-shadow: 0 6px 16px rgba(30, 128, 255, 0.28);
}

.mobile-ann-list {
  display: grid;
  gap: 12px;
  padding: 0;
}

.mobile-ann-empty {
  margin: 24px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.mobile-ann-card {
  position: relative;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.mobile-ann-card.is-hidden {
  display: none;
}

.mobile-ann-card__bar {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ann-bar, #60a5fa);
}

.mobile-ann-card__btn {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 14px 14px 14px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.mobile-ann-card__btn:active {
  background: #f8fafc;
}

.mobile-ann-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.mobile-ann-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-ann-card__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 18px;
}

.mobile-ann-card__status {
  margin-right: auto;
  font-size: 11px;
  font-weight: 700;
  color: #1e80ff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mobile-ann-card__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.mobile-ann-card.is-read .mobile-ann-card__status {
  color: #94a3b8;
}

.mobile-ann-card__chev {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #cbd5e1;
  border-top: 1.5px solid #cbd5e1;
  transform: rotate(45deg);
}

.mobile-ann-card__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--ann-accent, #1e80ff);
  background: var(--ann-tag-bg, #dbeafe);
  padding: 2px 8px;
  border-radius: 6px;
}

.mobile-ann-card__title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
}

.mobile-ann-card__excerpt {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-ann-card__time {
  margin-top: 2px;
  font-size: 12px;
  color: #94a3b8;
}

.mobile-ann-foot {
  margin-top: 20px;
  padding: 0;
  text-align: center;
}

.mobile-ann-foot p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}

.mobile-ann-foot__count {
  margin-top: 2px !important;
}

.mobile-ann-modal__panel {
  max-height: min(78vh, 640px);
}
