
:root {
  --ink: #1f2933;
  --muted: #5f6b76;
  --line: #d8dee6;
  --paper: #ffffff;
  --page: #f4f6f8;
  --teal: #0f766e;
  --red: #b42318;
  --gold: #b7791f;
  --blue: #245c73;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
  letter-spacing: 0;
}
a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800;
  text-decoration: none;
  color: var(--teal);
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 14px;
  color: var(--muted);
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--teal); }
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.index-head, .profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 28px;
  align-items: center;
  padding: 34px 0 24px;
}
.index-head h1, .profile-identity h1 {
  margin: 6px 0 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
}
.index-head p, .intro {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.eyebrow {
  margin: 0;
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}
.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.stats-panel div {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-left: 4px solid var(--teal);
  background: #f8fafb;
}
.stats-panel strong {
  font-size: 34px;
  color: var(--teal);
}
.stats-panel span { color: var(--muted); text-align: center; }
.content-band, .section-grid {
  margin: 18px 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.content-band h2, .section-grid h2 {
  margin: 0 0 14px;
  font-size: 22px;
}
.content-band p, .content-band blockquote {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.filter-pills button, .profile-link {
  border: 1px solid var(--teal);
  background: var(--paper);
  color: var(--teal);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filter-pills button:hover, .profile-link:hover {
  background: var(--teal);
  color: #fff;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.volunteer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.volunteer-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e7ecef;
}
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.card-top h3 { margin: 0; font-size: 20px; }
.card-top span {
  background: #fff7e6;
  border: 1px solid #f1d38b;
  color: #7c4d00;
  border-radius: 8px;
  padding: 4px 8px;
  white-space: nowrap;
  font-size: 13px;
}
.card-meta { color: var(--muted); margin: 0; font-size: 14px; }
.volunteer-card p { line-height: 1.65; margin: 0; color: var(--muted); }
.profile-link { margin-top: auto; }
.portrait-wrap {
  min-height: 420px;
  background: #e7ecef;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.portrait-wrap img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.profile-identity {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.meta-line { color: var(--muted); margin: 0 0 12px; }
.identity-tags, .badge-row, .badge-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.identity-tags span {
  border-left: 4px solid var(--red);
  background: #fff8f6;
  color: #7a271a;
  padding: 7px 10px;
  border-radius: 8px;
  font-weight: 700;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #f8fafb;
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.badge span:first-child {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
}
.badge-guest span:first-child { background: var(--red); }
.badge-business span:first-child { background: var(--gold); }
.badge-community span:first-child { background: var(--blue); }
.badge-culture span:first-child { background: #6b4e9b; }
.compact .badge { font-size: 12px; padding: 5px 7px; }
.compact .badge span:first-child { width: 22px; height: 22px; font-size: 10px; }
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service-record, .level-panel { min-width: 0; }
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}
dt {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
}
dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.5;
}
dl div {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-height: 82px;
}
.level-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.level-line span {
  font-size: 34px;
  color: var(--teal);
  font-weight: 900;
}
.level-line strong { font-size: 20px; }
.progress-track {
  height: 14px;
  background: #e6ebef;
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
}
.progress-track div {
  height: 100%;
  background: var(--teal);
}
.certificate-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.certificate-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.certificate-thumb {
  min-height: 170px;
  border: 2px solid #d9b46f;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px;
  background: #fffdf7;
  color: #5d3b00;
}
.cert-mark {
  font-weight: 900;
  letter-spacing: 0;
  color: var(--teal);
}
.cert-lines {
  width: 64px;
  height: 2px;
  background: #d9b46f;
  margin: 12px 0;
}
.cert-title { font-weight: 800; line-height: 1.5; }
.real-certificate {
  padding: 0;
  background: #fff;
  overflow: hidden;
}
.real-certificate img {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: contain;
  display: block;
}
.thank-letter-thumb img {
  aspect-ratio: 1 / 1.42;
  max-height: 420px;
}
.record-card-thumb {
  gap: 6px;
}
.record-link {
  color: var(--teal);
  font-weight: 800;
  line-height: 1.5;
  word-break: break-all;
  text-decoration: none;
}
.record-link:hover {
  text-decoration: underline;
}
.certificate-card p { margin-top: 10px; }
.gallery-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gallery-grid figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}
.comment-band blockquote {
  border-left: 5px solid var(--teal);
  padding-left: 16px;
  font-size: 17px;
}
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 40px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 860px) {
  .topbar { position: static; align-items: flex-start; flex-direction: column; padding: 14px 16px; }
  .site-nav { justify-content: flex-start; }
  .index-head, .profile-hero, .section-grid { grid-template-columns: 1fr; }
  .stats-panel { grid-template-columns: 1fr; }
  .section-title-row { flex-direction: column; }
  .filter-pills { justify-content: flex-start; }
  .certificate-grid, .gallery-grid { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; }
  .portrait-wrap { min-height: 0; }
}
