/* 公益基金页面独立样式，避免影响计费中心及后台。 */
.charity-shell {
  --charity-green: #00c568;
  --charity-text: #111323;
  --charity-muted: #8a90ae;
  --charity-border: #eceef2;
  --charity-serif: 'Noto Serif SC', 'Songti SC', SimSun, serif;
  --charity-number: 'Times New Roman', var(--charity-serif);
  min-width: 1280px;
  color: var(--charity-text);
  background: radial-gradient(ellipse at 30% 20%, #f8faf8 0, transparent 55%), #fafafa;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.charity-shell .account-topbar,
.charity-shell .account-page { width: calc(100% - 144px); max-width: 1440px; margin: 0 auto; padding: 0; }
.charity-shell .account-topbar { height: 75px; padding: 14px 0 18px; }
.charity-shell .account-back-btn,
.charity-shell .account-link-btn { height: 43px; padding: 0 18px; border: 1px solid #dfe2e9; border-radius: 7px; background: #fff; color: #24283f; font-size: 14px; font-weight: 500; box-shadow: 0 1px 3px #18243203; }
.charity-shell .account-back-btn { gap: 10px; }
.charity-shell .account-back-btn svg { width: 13px; height: 13px; }
.charity-shell .account-link-btn { min-width: 89px; justify-content: center; }
.charity-shell .account-page { padding-bottom: 40px; }
.charity-hero { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr) 31%; gap: 22px; align-items: center; min-height: 174px; padding: 22px 24px; border: 1px solid var(--charity-border); border-radius: 9px; background: linear-gradient(110deg, #f5fdf9 0, #ffffff 61%, #fcfffd 100%); box-shadow: 0 4px 22px #18243204; overflow: hidden; }
.charity-hero-art { display: block; width: 128px; height: 128px; }
.charity-hero-copy { position: relative; z-index: 1; }
.charity-hero-copy h1 { margin: 0 0 10px; color: #080b19; font-family: var(--charity-serif); font-size: clamp(23px, 2.15vw, 34px); font-weight: 700; line-height: 1.5; white-space: nowrap; letter-spacing: .015em; }
.charity-hero-copy p { margin: 0; color: var(--charity-muted); font-size: 22px; line-height: 1.5; }
.charity-hero-rule { position: relative; z-index: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-left: 36px; margin-left: 8px; border-left: 1px solid #edf1ef; }
.charity-hero-rule strong { font-size: 16px; font-weight: 600; }
.charity-hero-rule span { margin-top: 12px; color: var(--charity-green); font-family: var(--charity-number); font-size: 38px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.charity-hero-rule small { margin-top: 6px; color: var(--charity-muted); font-size: 15px; }
.charity-hero-leaves { position: absolute; width: 150px; height: 160px; right: -10px; bottom: -14px; color: rgba(29, 177, 99, .04); }
.charity-shell .account-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.charity-shell .account-stat-card { position: relative; min-height: 117px; padding: 22px 28px 14px; border: 1px solid var(--charity-border); border-radius: 9px; background: #fff; box-shadow: 0 4px 18px #18243204; }
.charity-shell .account-stat-card > span { color: #34364a; font-size: 16px; font-weight: 500; }
.charity-shell .account-stat-card > strong { position: relative; z-index: 1; margin-top: 9px; color: #090c1b; font-family: var(--charity-number); font-size: 34px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.charity-shell .charity-stat-pool { border-left: 5px solid var(--charity-green); padding-left: 28px; background: linear-gradient(110deg, #f4fdf8, white); }
.charity-shell .charity-stat-pool > strong { color: var(--charity-green); font-size: 40px; line-height: 1.1; }
.charity-stat-icon { position: absolute; right: 28px; top: 37px; width: 38px; height: 38px; color: #bdebd4; }
.charity-shell .charity-stat-clock > strong { font-size: clamp(20px, 1.78vw, 28px); margin-top: 13px; letter-spacing: -.025em; }
.charity-layout { display: grid; grid-template-columns: minmax(0, 1.485fr) minmax(0, 1fr); align-items: stretch; gap: 20px; margin-top: 20px; }
.charity-shell .account-panel { min-width: 0; padding: 20px 23px 16px; border: 1px solid var(--charity-border); border-radius: 9px; background: #fff; box-shadow: 0 4px 20px #18243204; }
.charity-panel-heading { display: flex; align-items: baseline; gap: 16px; }
.charity-panel-heading h2 { margin: 0; color: var(--charity-text); font-size: 22px; font-weight: 600; line-height: 1.6; }
.charity-panel-heading > span { color: var(--charity-muted); font-size: 14px; }
.charity-shell .charity-partner-board { display: grid; gap: 12px; margin-top: 12px; }
.charity-shell .charity-partner-board:has(> .charity-partner-list:only-child) { flex: 1; }
.charity-shell .charity-partner-board > .charity-partner-list:only-child { grid-auto-rows: minmax(32px, 1fr); }
.charity-shell .charity-partner-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.charity-shell .charity-partner-card { min-width: 0; display: flex; flex-direction: column; gap: 0; min-height: 170px; padding: 13px 24px 12px; border: 1px solid #d9f1e6; border-radius: 8px; background: linear-gradient(120deg, #f0fcf6, #fff); box-shadow: none; }
.charity-shell .charity-partner-label { display: flex; align-items: center; gap: 16px; width: auto; padding: 0; margin-bottom: 1px; border: 0; border-radius: 0; background: none; color: var(--charity-green); font-size: 14px; font-weight: 600; line-height: 1.5; }
.charity-medal { position: relative; display: inline-flex; justify-content: center; width: 36px; height: 43px; flex-shrink: 0; --medal-dark: #e9a61e; --medal-light: #fff0a6; --medal-middle: #ffcc53; }
.charity-medal::before,
.charity-medal::after { content: ''; position: absolute; z-index: 0; top: 23px; width: 13px; height: 17px; background: linear-gradient(var(--medal-middle), var(--medal-dark)); clip-path: polygon(0 0,100% 0,100% 100%,50% 77%,0 100%); }
.charity-medal::before { left: 5px; transform: rotate(22deg); }
.charity-medal::after { right: 5px; transform: rotate(-22deg); }
.charity-medal > span { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--medal-light); background: radial-gradient(circle at 35% 25%, var(--medal-light), var(--medal-middle) 55%, var(--medal-dark)); box-shadow: inset 0 0 0 1px var(--medal-dark), 0 1px 3px #00000012; color: var(--medal-dark); text-shadow: 0 1px 0 #ffffffa6; font-family: Georgia, serif; font-size: 25px; line-height: 1; }
.charity-medal-2 { --medal-dark: #8ba7c4; --medal-light: #e6eff6; --medal-middle: #c0d2e3; }
.charity-medal-3 { --medal-dark: #d9916b; --medal-light: #ffe4cf; --medal-middle: #ffbf98; }
.charity-shell .charity-partner-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--charity-text); font-size: 20px; font-weight: 600; line-height: 1.5; }
.charity-shell .charity-partner-amount { margin: 3px 0 4px; color: var(--charity-green); font-family: var(--charity-number); font-size: 32px; font-weight: 700; line-height: 1.3; }
.charity-shell .charity-partner-detail { color: var(--charity-muted); font-size: 14px; line-height: 1.5; white-space: nowrap; }
.charity-shell .charity-partner-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; border: 1px solid var(--charity-border); border-radius: 8px; overflow: hidden; }
.charity-shell .charity-partner-row { display: grid; grid-template-columns: 52px minmax(80px, 166px) minmax(180px, 1fr) auto; align-items: center; gap: 20px; min-height: 32px; padding: 2px 14px 2px 5px; border: 0; border-bottom: 1px solid #f0f1f5; border-radius: 0; background: #fff; box-shadow: none; }
.charity-shell .charity-partner-row:last-child { border-bottom: 0; }
.charity-shell .charity-partner-row:hover { background: #f8fcfa; }
.charity-shell .charity-partner-index { text-align: center; min-width: 0; padding: 2px 8px; border: 0; border-radius: 8px; background: #f5f5f7; color: #8186a3; font-size: 14px; font-weight: 400; line-height: 1.5; }
.charity-shell .charity-partner-row .charity-partner-name { font-size: 16px; }
.charity-shell .charity-partner-row__amount { white-space: nowrap; color: var(--charity-text); font-family: var(--charity-number); font-size: 16px; font-weight: 700; line-height: 1.5; }
.charity-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; color: var(--charity-muted); font-size: 16px; }
.charity-pagination nav { display: flex; gap: 8px; }
.charity-pagination button,
.charity-pagination select { height: 38px; border: 1px solid #dfe3ed; border-radius: 6px; background: #fff; color: #30364f; font-family: inherit; font-size: 15px; cursor: pointer; }
.charity-pagination button { min-width: 38px; padding: 0 10px; }
.charity-pagination select { justify-self: end; padding: 0 12px; width: 122px; }
.charity-pagination button[aria-current="page"]:disabled { border-color: var(--charity-green); background: linear-gradient(135deg, #00d675, #00b75b); color: #fff; opacity: 1; }
.charity-pagination button:disabled { cursor: default; opacity: .45; }
.charity-pagination button:hover:not(:disabled),
.charity-shell .account-back-btn:hover,
.charity-shell .account-link-btn:hover { border-color: #9eddbd; background: #f2fcf6; }
.charity-shell button:focus-visible,
.charity-shell select:focus-visible { outline: 2px solid #00a85a; outline-offset: 3px; }
.charity-sidebar { display: grid; align-content: start; gap: 10px; }
.charity-shell #charityContributorPanel { display: flex; flex-direction: column; min-height: 544px; }
.charity-shell .charity-announcement-list { display: grid; gap: 14px; margin-top: 18px; }
.charity-shell .charity-announcement-card { display: grid; gap: 12px; padding: 21px; border: 1px solid #e7eaf0; border-radius: 8px; background: linear-gradient(120deg, #fff, #fefeff); }
.charity-shell .charity-announcement-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.charity-shell .charity-announcement-meta strong { display: block; color: var(--charity-text); font-size: 20px; font-weight: 600; line-height: 1.6; }
.charity-shell .charity-announcement-meta div > span { display: block; margin-top: 6px; color: var(--charity-muted); font-size: 16px; line-height: 1.5; }
.charity-shell .charity-announcement-meta .charity-announce-badge { display: inline-flex; margin-top: 0; padding: 5px 15px; font-size: 13px; font-weight: 600; border-radius: 999px; line-height: 1.6; white-space: nowrap; }
.charity-shell .badge-info,
.charity-shell .badge-done { color: #00b45e; border: 1px solid #caf0de; background: linear-gradient(#f1fcf7, #e4f8ef); }
.charity-shell .charity-announcement-card p { margin: 0; color: #8088a7; font-size: 16px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.charity-shell .charity-transparency { padding: 14px 21px 18px; }
.charity-transparency-table { overflow: hidden; border: 1px solid #edeef3; border-radius: 8px; }
.charity-transparency-table h2 { margin: 0; padding: 9px 16px; background: linear-gradient(110deg, #f7f7f8, #f9f9fa); font-size: 16px; font-weight: 600; line-height: 1.5; }
.charity-transparency-table dl { margin: 0; padding: 2px 15px; }
.charity-transparency-table dl > div { display: grid; grid-template-columns: 115px 1fr; padding: 7px 0; border-bottom: 1px solid #eeeff4; color: var(--charity-muted); font-size: 15px; line-height: 1.5; }
.charity-transparency-table dl > div:last-child { border-bottom: 0; }
.charity-transparency-table dd { margin: 0; }
.charity-transparency > p { margin: 16px 0 0; color: var(--charity-muted); font-size: 15px; line-height: 1.5; }
.charity-loading { color: var(--charity-muted); }
.charity-load-error { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 16px; border: 1px solid #f2cdca; border-radius: 8px; color: #a03830; background: #fff7f6; }
.charity-load-error[hidden] { display: none; }
.charity-load-error button { padding: 6px 12px; border: 1px solid #d9b5b0; border-radius: 6px; color: inherit; background: #fff; cursor: pointer; }
@media (max-width: 1400px) {
  .charity-shell .account-topbar,
  .charity-shell .account-page { width: calc(100% - 80px); }
  .charity-hero { grid-template-columns: 110px minmax(0, 1fr) 27%; gap: 16px; }
  .charity-hero-art { width: 110px; height: 110px; }
  .charity-hero-copy h1 { font-size: 27px; letter-spacing: 0; }
  .charity-hero-copy p { font-size: 20px; }
  .charity-hero-rule { padding-left: 24px; }
  .charity-hero-rule span { font-size: 31px; }
  .charity-shell .charity-partner-card { padding-left: 14px; padding-right: 14px; }
  .charity-shell .charity-partner-detail { font-size: 12px; }
  .charity-shell .charity-partner-row { gap: 12px; grid-template-columns: 42px minmax(70px, .8fr) minmax(175px, 1.7fr) auto; }
  .charity-stat-icon { right: 18px; width: 32px; }
  .charity-shell .account-stat-card { padding-left: 22px; padding-right: 22px; }
}

.charity-shell .badge-ongoing { color: #2878b8; border: 1px solid #cee6f8; background: #edf7ff; }
.charity-shell .badge-planned { color: #a97018; border: 1px solid #f1ddaf; background: #fff8e9; }
