/* 保障项目页 — 海报式排版 */
.page-projects .app-main {
  padding-bottom: 8px;
  background: #f3f6fb;
}

/* —— 顶部导航模块 —— */
.pj-nav-hub {
  margin: 10px 14px 0;
  padding: 14px 12px 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(0, 82, 217, 0.1);
  border: 1px solid rgba(0, 82, 217, 0.06);
}

.pj-nav-hub__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.pj-nav-hub__badge {
  display: inline-flex;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  color: #9a6b00;
  background: linear-gradient(135deg, #ffe082, #ffb020);
  border-radius: 999px;
}

.pj-nav-hub__title {
  font-size: 16px;
  font-weight: 800;
  color: #081537;
}

.pj-nav-hub__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pj-nav-hub__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px 8px;
  text-decoration: none;
  color: #1a2d4d;
  background: #f6f9ff;
  border-radius: 12px;
  border: 1px solid rgba(0, 82, 217, 0.06);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.pj-nav-hub__item:active {
  transform: scale(0.98);
}

.pj-nav-hub__item.is-active {
  background: linear-gradient(180deg, #eef4ff 0%, #e3edff 100%);
  border-color: rgba(0, 82, 217, 0.22);
  box-shadow: inset 0 0 0 1px rgba(0, 82, 217, 0.08);
}

.pj-nav-hub__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
}

.pj-nav-hub__icon svg {
  width: 20px;
  height: 20px;
}

.pj-nav-hub__icon--blue {
  background: linear-gradient(135deg, #2f7bff, #0052d9);
}

.pj-nav-hub__icon--gold {
  background: linear-gradient(135deg, #ffb020, #e67a2e);
}

.pj-nav-hub__icon--green {
  background: linear-gradient(135deg, #3ecf8e, #2d9d6b);
}

.pj-nav-hub__icon--violet {
  background: linear-gradient(135deg, #9b6dff, #6b4fd4);
}

.pj-nav-hub__label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

/* —— 顶栏海报 —— */
.pj-hero {
  position: relative;
  margin: 12px 0 0;
  height: 176px;
  overflow: hidden;
  background: #003d8f;
}

.pj-hero__poster-wrap,
.pj-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.pj-hero__poster-wrap img,
.pj-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pj-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 35, 95, 0.82) 0%, rgba(0, 35, 95, 0.35) 52%, rgba(0, 35, 95, 0.08) 100%);
  pointer-events: none;
}

.pj-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 20px 18px;
  color: #fff;
}

.pj-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9a6b00;
  background: linear-gradient(135deg, #ffe082, #ffb020);
  border-radius: 999px;
}

.pj-hero__copy h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.pj-hero__copy p {
  margin: 0;
  max-width: 220px;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.92;
}

/* —— 基金钱包条 —— */
.pj-wallet {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 12px 14px 0;
  min-height: 76px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 82, 217, 0.1);
}

.pj-wallet__art {
  flex: 0 0 108px;
  position: relative;
  overflow: hidden;
  background: #0052d9;
}

.pj-wallet__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pj-wallet__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 14px 12px 12px;
  min-width: 0;
}

.pj-wallet__body strong {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.pj-wallet__body small {
  font-size: 11px;
  color: var(--muted);
}

.pj-wallet__nums {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  font-size: 12px;
}

.pj-wallet__nums span {
  color: var(--muted);
}

.pj-wallet__nums b {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--gov-blue);
}

.pj-wallet__arrow {
  align-self: center;
  padding-right: 12px;
  font-size: 22px;
  color: #c5cedd;
}

/* —— 列表区 —— */
.pj-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px 0;
}

.pj-group + .pj-group {
  margin-top: 6px;
}

.pj-group__title {
  margin: 0 0 10px;
  padding: 0 2px;
  font-size: 15px;
  font-weight: 800;
  color: #081537;
}

.pj-group__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pj-list.is-loading .pj-card {
  min-height: 320px;
  background: linear-gradient(110deg, #eef2f8 8%, #f8fafc 18%, #eef2f8 33%);
  background-size: 200% 100%;
  animation: pj-shimmer 1.2s ease-in-out infinite;
  border-radius: 16px;
}

@keyframes pj-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* —— 项目海报卡 —— */
.pj-card {
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 39, 80, 0.08);
}

.pj-card__poster {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: #0052d9;
}

.pj-card__poster img,
.pj-card__poster picture,
.pj-card__poster picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.pj-card__poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

.pj-card__status {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #067a70;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.pj-card__body {
  padding: 14px 14px 0;
}

.pj-card__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  background: var(--gov-blue);
}

.pj-card--orange .pj-card__tag {
  background: var(--gov-orange);
}

.pj-card--green .pj-card__tag {
  background: #2d9d6b;
}

.pj-card--violet .pj-card__tag {
  background: #7c4dff;
}

.pj-card--amber .pj-card__tag {
  background: #e67a2e;
}

.pj-card--purple .pj-card__tag {
  background: #5b4fc7;
}

.pj-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.pj-card__stats li {
  padding: 10px 6px;
  text-align: center;
  background: #f5f8ff;
  border-radius: 10px;
}

.pj-card--orange .pj-card__stats li {
  background: #fff7f0;
}

.pj-card__stats em {
  display: block;
  font-size: 18px;
  font-weight: 800;
  font-style: normal;
  color: var(--gov-blue);
  line-height: 1.1;
}

.pj-card--orange .pj-card__stats em {
  color: var(--gov-orange);
}

.pj-card--green .pj-card__stats li { background: #eefaf3; }
.pj-card--green .pj-card__stats em { color: #2d9d6b; }
.pj-card--violet .pj-card__stats li { background: #f3efff; }
.pj-card--violet .pj-card__stats em { color: #7c4dff; }
.pj-card--amber .pj-card__stats li { background: #fff6ee; }
.pj-card--amber .pj-card__stats em { color: #e67a2e; }
.pj-card--purple .pj-card__stats li { background: #f1efff; }
.pj-card--purple .pj-card__stats em { color: #5b4fc7; }

.pj-card__stats span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}

.pj-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pj-card__chip {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #5a6b85;
  background: #f0f4fa;
  border-radius: 999px;
}

.pj-card__chip--gold {
  color: #9a6b00;
  background: linear-gradient(135deg, #fff8e8, #ffe9b8);
}

.pj-card__progress {
  margin-bottom: 12px;
}

.pj-card__progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}

.pj-card__progress-head span {
  color: var(--muted);
}

.pj-card__progress-head strong {
  font-size: 12px;
  color: var(--gov-blue);
}

.pj-card--orange .pj-card__progress-head strong {
  color: var(--gov-orange);
}

.pj-card__bar {
  height: 6px;
  overflow: hidden;
  background: #e8eef8;
  border-radius: 999px;
}

.pj-card__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0052d9, #3d8bff);
  border-radius: inherit;
}

.pj-card--orange .pj-card__bar i {
  background: linear-gradient(90deg, #e67a2e, #ff9f5a);
}

.pj-card__cta {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: var(--gov-blue);
  box-sizing: border-box;
}

.pj-card--orange .pj-card__cta {
  background: var(--gov-orange);
}

.pj-card--green .pj-card__cta { background: #2d9d6b; }
.pj-card--violet .pj-card__cta { background: #7c4dff; }
.pj-card--amber .pj-card__cta { background: #e67a2e; }
.pj-card--purple .pj-card__cta { background: #5b4fc7; }

.pj-card__cta--done {
  background: #8a96a8 !important;
}

.pj-card__cta:active {
  opacity: 0.92;
}

.pj-card__records {
  display: block;
  padding: 10px 14px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gov-blue);
  text-align: center;
  text-decoration: none;
}

.pj-card--orange .pj-card__records {
  color: var(--gov-orange);
}

.pj-card--green .pj-card__records { color: #2d9d6b; }
.pj-card--violet .pj-card__records { color: #7c4dff; }
.pj-card--amber .pj-card__records { color: #e67a2e; }
.pj-card--purple .pj-card__records { color: #5b4fc7; }

/* —— 温馨提示 —— */
.pj-tips {
  margin: 14px 14px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 39, 80, 0.06);
  overflow: hidden;
}

.pj-tips summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.pj-tips summary::-webkit-details-marker {
  display: none;
}

.pj-tips summary::after {
  float: right;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  content: "展开";
}

.pj-tips[open] summary::after {
  content: "收起";
}

.pj-tips__body {
  padding: 0 16px 14px;
  font-size: 12px;
  line-height: 1.65;
  color: #5a6b85;
}

.pj-tips__body p {
  margin: 0 0 8px;
}

.pj-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
