@charset "UTF-8";

/* 社区公告：政策支持页底部公告区 + /notices/ 列表页 + 公告详情页。
   卡片外观沿用政策页「先导区扶持政策」卡片的半透明深色面板，无封面图。 */

/* ═══ 公告卡片（三处共用）═══════════════════════════════════════════ */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.notice-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(250, 250, 250, 0.06);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1),
    background 0.25s ease, border-color 0.25s ease;
}

.notice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(250, 250, 250, 0.1);
}

.notice-card:focus-visible {
  outline: 2px solid #6a52ff;
  outline-offset: 3px;
}

.notice-card__meta,
.notice-article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-latin);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.notice-card__pin {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid rgba(106, 82, 255, 0.6);
  border-radius: 999px;
  background: rgba(106, 82, 255, 0.18);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.notice-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.notice-card__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.6;
}

.notice-card__more {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ═══ 政策支持页底部公告区 ══════════════════════════════════════════ */
/* 公告区紧跟在白皮书卡片后面：收掉白皮书原本留给页脚的大段下边距。 */
.policy-whitepaper:has(+ .policy-notices) {
  margin-bottom: 80px;
}

.policy-notices {
  position: relative;
  z-index: 2;
  width: min(1246px, calc(100% - 200px));
  margin: 0 auto 140px;
}

.policy-notices__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.policy-notices__head h2 {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.policy-notices__all {
  flex: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.policy-notices__all:hover {
  color: #fff;
}

/* ═══ 列表页 / 详情页 ═══════════════════════════════════════════════ */
.notice-page {
  position: relative;
  z-index: 1;
  padding-top: 1px;
}

.notice-wrap {
  width: min(1246px, calc(100% - 2 * var(--page-gutter)));
  margin: 0 auto;
  padding-top: clamp(96px, 12vw, 128px);
  padding-bottom: clamp(80px, 10vw, 120px);
}

.notice-wrap--narrow {
  width: min(820px, calc(100% - 2 * var(--page-gutter)));
}

.notice-back {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
}

.notice-back:hover {
  color: #fff;
}

.notice-hero {
  display: grid;
  gap: 20px;
  margin: clamp(32px, 4.5vw, 52px) 0 clamp(40px, 5vw, 60px);
}

.notice-hero__title,
.notice-article__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 3.35vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.0375em;
}

.notice-hero__lead {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
}

.notice-empty {
  color: rgba(255, 255, 255, 0.6);
}

.notice-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.notice-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  text-decoration: none;
}

.notice-pagination .page-numbers.current {
  border-color: #fff;
  color: #fff;
}

/* 详情页 */
.notice-article {
  margin-top: clamp(32px, 4.5vw, 52px);
}

.notice-article__head {
  display: grid;
  gap: 20px;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.notice-article__title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.25;
}

/* 正文来自编辑器，元素种类不可控：标题、列表、引用、图片、表格都给出暗色下的样式。 */
.notice-body {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.notice-body > * {
  margin: 0;
}

.notice-body > * + * {
  margin-top: 1.1em;
}

.notice-body h2,
.notice-body h3,
.notice-body h4 {
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
}

.notice-body > h2,
.notice-body > h3,
.notice-body > h4 {
  margin-top: 1.8em;
}

.notice-body h2 { font-size: 1.5rem; }
.notice-body h3 { font-size: 1.25rem; }
.notice-body h4 { font-size: 1.0625rem; }

.notice-body strong {
  color: #fff;
}

.notice-body a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-body ul,
.notice-body ol {
  padding-left: 1.4em;
}

.notice-body li + li {
  margin-top: 0.4em;
}

.notice-body blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid rgba(106, 82, 255, 0.8);
  color: rgba(255, 255, 255, 0.7);
}

.notice-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* 经典编辑器的对齐类：居中图片和图注 */
.notice-body .aligncenter {
  margin-inline: auto;
}

.notice-body .wp-caption {
  max-width: 100%;
}

.notice-body .wp-caption-text,
.notice-body figcaption {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  text-align: center;
}

.notice-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.notice-body th,
.notice-body td {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
}

.notice-body hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .notice-card {
    transition: none;
  }
  .notice-card:hover {
    transform: none;
  }
}

/* ═══ 响应式 ═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .policy-whitepaper:has(+ .policy-notices) {
    margin-bottom: 56px;
  }

  .policy-notices {
    width: calc(100% - 48px);
    margin-bottom: 100px;
  }
}

@media (max-width: 768px) {
  .notice-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .notice-card {
    min-height: 0;
    padding: 22px;
    border-radius: 16px;
  }

  .notice-card__title {
    font-size: 1.125rem;
  }

  .policy-notices__head h2 {
    font-size: 1.5rem;
  }

  .notice-hero__title {
    font-size: clamp(1.75rem, 6.4vw, 2.125rem);
    line-height: 1.25;
  }

  .notice-article__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .notice-body {
    font-size: 0.9375rem;
  }
}
