.app-main:has(.notice-page) {
  padding: 0;
  background: #020302;
}

body:has(.notice-page) .tabbar {
  display: none !important;
}

.notice-page {
  --c-accent: #b6f53a;
  --c-muted: #8f9688;
  --c-card: rgba(14, 18, 12, 0.72);
  --c-border: rgba(182, 245, 58, 0.14);
  --c-text: #f4f7ef;
  --notice-topbar-height: 48px;
  position: relative;
  isolation: isolate;
  min-height: 100%;
  min-height: 100dvh;
  padding: 0;
  padding-top: calc(var(--notice-topbar-height) + var(--safe-top));
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(126, 201, 34, 0.14), transparent 55%),
    linear-gradient(180deg, #050805 0%, #020302 50%, #000 100%);
  color: var(--c-text);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.notice-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.notice-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.45;
  animation: notice-float 10s ease-in-out infinite;
}

.notice-orb-a {
  width: 200px;
  height: 200px;
  top: 8%;
  right: -70px;
  background: radial-gradient(circle, rgba(182, 245, 58, 0.3), transparent 68%);
}

.notice-orb-b {
  width: 240px;
  height: 240px;
  bottom: 10%;
  left: -90px;
  background: radial-gradient(circle, rgba(90, 160, 30, 0.22), transparent 70%);
  animation-delay: -3.5s;
}

.notice-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(182, 245, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 245, 58, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 72%);
  opacity: 0.6;
}

@keyframes notice-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(14px) scale(1.05); }
}

.notice-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  height: calc(var(--notice-topbar-height) + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  box-sizing: border-box;
  z-index: 90;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(2, 3, 2, 0.94), rgba(2, 3, 2, 0.78) 75%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.notice-back {
  width: 36px;
  height: 36px;
  margin-left: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #eef7dc;
  border: 1px solid rgba(182, 245, 58, 0.16);
  background: rgba(182, 245, 58, 0.06);
}

.notice-back:active {
  background: rgba(182, 245, 58, 0.14);
  color: var(--c-accent);
}

.notice-title {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #fff;
}

.notice-topbar-spacer {
  width: 36px;
  height: 36px;
}

.notice-body {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  padding: 10px 16px 0;
  box-sizing: border-box;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-empty {
  border-radius: 16px;
  border: 1px solid var(--c-border);
  background: var(--c-card);
  padding: 40px 14px;
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
  backdrop-filter: blur(12px);
}

.notice-item {
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(182, 245, 58, 0.06), transparent 45%),
    var(--c-card);
  padding: 14px 14px 14px 16px;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}

.notice-item:active {
  transform: scale(0.99);
}

.notice-item.is-open {
  border-color: rgba(182, 245, 58, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 20px rgba(182, 245, 58, 0.12);
}

.notice-item-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.notice-item-head-main {
  flex: 1;
  min-width: 0;
}

.notice-item-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #f2f6ea;
  word-break: break-word;
}

.notice-item.is-open .notice-item-title {
  color: var(--c-accent);
  text-shadow: 0 0 12px rgba(182, 245, 58, 0.25);
}

.notice-item-meta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1;
  color: var(--c-muted);
}

.notice-item-meta svg {
  flex-shrink: 0;
}

.notice-item-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #7a8470;
  border: 1px solid rgba(182, 245, 58, 0.12);
  background: rgba(182, 245, 58, 0.05);
  transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.notice-item.is-open .notice-item-chevron {
  color: var(--c-accent);
  transform: rotate(180deg);
  border-color: rgba(182, 245, 58, 0.28);
  background: rgba(182, 245, 58, 0.1);
}

.notice-item-content {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #e4ebd8;
  word-break: break-word;
  white-space: pre-wrap;
  transition: max-height 0.28s ease, opacity 0.2s ease, margin 0.2s ease;
}

.notice-item.is-open .notice-item-content {
  margin-top: 12px;
  max-height: 1200px;
  opacity: 1;
  padding-top: 12px;
  border-top: 1px solid rgba(182, 245, 58, 0.12);
}

.app-list-more {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--c-muted);
}

.notice-footer {
  position: relative;
  z-index: 0;
  flex: 0 0 auto;
  margin-top: auto;
  height: min(42vw, 320px);
  min-height: 220px;
  overflow: hidden;
  pointer-events: none;
}

.notice-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 80px;
  background: linear-gradient(180deg, #020302, transparent);
  z-index: 1;
}

.notice-footer-mask {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 78%;
  user-select: none;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .notice-orb {
    animation: none !important;
  }
}
