.home-notices[hidden],
.home-notices [hidden] {
  display: none !important;
}

.home-notices {
  --notice-accent: #e04882;
  --notice-accent-hover: #ff5292;
  --notice-accent-soft: rgba(255, 107, 157, 0.08);
  --notice-accent-solid: #fff0f5;
  --notice-accent-line: rgba(255, 107, 157, 0.22);
  --notice-muted: #64748b;
  --notice-rule: rgba(226, 232, 240, 0.85);
  --notice-hover: rgba(255, 107, 157, 0.035);
  --notice-panel: #fcf9fb;
  --notice-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e04882' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 20px;
  padding: 18px 22px 14px;
  border: 1px solid var(--notice-rule);
  border-radius: 20px;
  background: var(--bg-card, #ffffff);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02), 0 10px 28px -12px rgba(255, 107, 157, 0.16);
  color: var(--text-primary, #1e293b);
  font-family: system-ui, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0.012em;
  font-synthesis: none;
  text-align: left;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-notices:hover {
  border-color: var(--notice-accent-line);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.03), 0 14px 34px -10px rgba(255, 107, 157, 0.22);
}
.home-notices::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b9d 0%, #c084fc 50%, #818cf8 100%);
  opacity: 0.9;
}
.home-notices-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-primary, #1e293b);
  letter-spacing: 0.02em;
}

.home-notices-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b9d 0%, #a78bfa 100%);
  box-shadow: 0 4px 10px -2px rgba(255, 107, 157, 0.45);
  transition: transform 0.2s ease;
}

.home-notices:hover .home-notices-icon {
  transform: scale(1.04);
}

.home-notices-icon svg {
  width: 17px;
  height: 17px;
}

.home-notices-count {
  margin-left: 2px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  color: var(--notice-accent);
  background: var(--notice-accent-soft);
  border: 1px solid var(--notice-accent-line);
}

.home-notices-count:empty {
  display: none;
}
#homeNoticeList {
  min-width: 0;
  margin: 0 -8px;
}
.home-notice {
  position: relative;
  border-radius: 14px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.home-notice + .home-notice {
  margin-top: 3px;
}

.home-notice + .home-notice::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 12px;
  right: 12px;
  border-top: 1px solid var(--notice-rule);
}

.home-notice:hover,
.home-notice[open] {
  background: var(--notice-hover);
}

.home-notice:hover::before,
.home-notice[open]::before,
.home-notice:hover + .home-notice::before,
.home-notice[open] + .home-notice::before {
  border-color: transparent;
}

.home-notice summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px 16px;
  padding: 12px 10px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.home-notice summary::-webkit-details-marker {
  display: none;
}

.home-notice summary:focus-visible,
.home-notices button:focus-visible {
  outline: 2px solid var(--notice-accent);
  outline-offset: 2px;
  border-radius: 12px;
}
.home-notice-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}

.home-notice-title {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary, #1e293b);
  overflow-wrap: anywhere;
  transition: color 0.18s ease;
}

.home-notice summary:hover .home-notice-title {
  color: var(--notice-accent);
}
.home-notice-pin {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px 1px 7px;
  border: 1px solid var(--notice-accent-line);
  border-radius: 999px;
  color: var(--notice-accent);
  background: var(--notice-accent-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.02em;
}

.home-notice-pin::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px rgba(255, 107, 157, 0.6);
}
.home-notice-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 24px;
  color: var(--notice-muted);
  transition: color 0.18s ease;
}

.home-notice-action::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--notice-accent-soft) var(--notice-chevron) no-repeat center / 12px;
  border: 1px solid var(--notice-accent-line);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.18s ease;
}

.home-notice[open] .home-notice-action::after {
  transform: rotate(180deg);
  background-color: var(--notice-accent-line);
}

.home-notice summary:hover .home-notice-action {
  color: var(--notice-accent);
}

.home-notice-collapse,
.home-notice[open] .home-notice-expand {
  display: none;
}

.home-notice[open] .home-notice-collapse {
  display: inline;
}
.home-notice-preview,
.home-notice-body {
  width: min(100%, 44em);
  max-width: 44em;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.home-notice-preview {
  grid-column: 1 / -1;
  color: var(--notice-muted);
  padding-left: 2px;
  transition: color 0.18s ease;
}

.home-notice[open] .home-notice-preview {
  display: none;
}
.home-notice-body {
  margin: 2px 10px 14px;
  padding: 14px 18px;
  border-left: 3px solid var(--notice-accent);
  border-radius: 6px 14px 14px 6px;
  background: var(--notice-panel);
  border-top: 1px solid rgba(255, 107, 157, 0.08);
  border-right: 1px solid rgba(255, 107, 157, 0.08);
  border-bottom: 1px solid rgba(255, 107, 157, 0.08);
  white-space: pre-wrap;
  animation: home-notice-in 0.22s ease;
  color: var(--text-primary, #1e293b);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

@keyframes home-notice-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.home-notice-status {
  font-size: 13px;
  color: var(--notice-muted);
  padding: 4px 0 6px;
}

.home-notice-status:empty {
  display: none;
}

.home-notice-retry {
  justify-self: start;
  margin: 0 0 6px;
  padding: 5px 16px;
  border: 1px solid var(--notice-accent-line);
  border-radius: 999px;
  color: var(--notice-accent);
  background: var(--notice-accent-soft);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.home-notice-retry:hover {
  background: var(--notice-accent-line);
  color: var(--notice-accent-hover);
  transform: translateY(-1px);
}
[data-theme="dark"] .home-notices {
  --notice-accent: #f49ec4;
  --notice-accent-hover: #ffb3d2;
  --notice-accent-soft: rgba(244, 158, 196, 0.12);
  --notice-accent-line: rgba(244, 158, 196, 0.28);
  --notice-muted: #94a3b8;
  --notice-rule: rgba(255, 255, 255, 0.08);
  --notice-hover: rgba(255, 255, 255, 0.035);
  --notice-panel: rgba(244, 158, 196, 0.05);
  --notice-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f49ec4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(23, 27, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .home-notices:hover {
  border-color: rgba(244, 158, 196, 0.35);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .home-notice-body {
  border-left-color: #f49ec4;
  border-top-color: rgba(255, 255, 255, 0.06);
  border-right-color: rgba(255, 255, 255, 0.06);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

[data-theme="dark"] .home-notice-title {
  color: #f1f5f9;
}

@media (prefers-reduced-motion: reduce) {
  .home-notice,
  .home-notice-title,
  .home-notice-action,
  .home-notice-action::after {
    transition: none;
  }
  .home-notice-body {
    animation: none;
  }
}
@media (max-width: 768px) {
  .home-notices {
    gap: 10px;
    padding: 15px 16px 10px;
    margin-bottom: 16px;
    border-radius: 16px;
  }

  .home-notices-heading {
    font-size: 14px;
    gap: 8px;
  }

  .home-notices-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .home-notices-icon svg {
    width: 15px;
    height: 15px;
  }

  #homeNoticeList {
    margin: 0 -6px;
  }

  .home-notice summary {
    gap: 6px 10px;
    padding: 10px 6px;
  }

  .home-notice-title {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .home-notice-action {
    font-size: 0;
    gap: 0;
  }

  .home-notice-action::after {
    width: 24px;
    height: 24px;
  }

  .home-notice-preview,
  .home-notice-body {
    font-size: 13px;
    line-height: 1.75;
  }

  .home-notice-body {
    margin: 0 6px 10px;
    padding: 10px 14px;
  }
}
