:root {
  --ink: #1b1b1b;
  --ink-soft: #3f3f3f;
  --muted: #767268;
  --line: #e6e1d8;
  --line-soft: #efeae1;
  --paper: #f5f2ec;
  --card: #ffffff;
  --accent: #23384d;
  --accent-soft: #a67c3d;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 28px 16px 56px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  --pad: 24px;
  padding: 0 var(--pad) 20px;
}

/* ---------------- 页首半身照 ---------------- */
.cover {
  display: block;
  margin: 0 calc(var(--pad) * -1);
  width: calc(100% + var(--pad) * 2);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 22%;
  background: #eee9e1;
}

/* ---------------- 头部 ---------------- */
.hero { text-align: center; padding-top: 34px; }
.has-cover .hero { padding-top: 26px; }

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: #efede8;
  border: 1px solid var(--line);
  display: block;
  margin: 0 auto 18px;
}

.avatar-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #f3f0ea;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 30px;
  color: #b8b1a4;
  margin: 0 auto 18px;
}

.name {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.35;
  margin: 0 0 8px;
  text-indent: .14em;
}

.name-en {
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #b3ada1;
  margin: 0 0 14px;
}

.roles {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.85;
  word-spacing: .5em;
}
.roles li + li { color: var(--muted); }

/* 快捷操作 */
.actions {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  margin: 0 0 26px;
}
.actions a,
.actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 68px;
  padding: 8px 0 6px;
  background: none;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, background .18s ease;
}
.actions svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.actions a:hover,
.actions button:hover { color: var(--accent); }
.actions a:active,
.actions button:active { background: #f6f3ed; color: var(--accent); }

/* ---------------- 折叠列表 ---------------- */
.list {
  border-top: 1px solid var(--line);
}

.acc { border-bottom: 1px solid var(--line); }

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 16px 2px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.acc-btn:active { background: #fbf9f5; }

.acc-btn .t {
  flex: 1;
  letter-spacing: .08em;
}
.acc-btn .meta {
  font-size: 11px;
  color: #ada79b;
  letter-spacing: .08em;
}
.plus {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  position: relative;
  transition: transform .26s ease;
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: #b6afa2;
  transition: background .2s ease;
}
.plus::before { left: 0; right: 0; top: 6.5px; height: 1px; }
.plus::after { top: 0; bottom: 0; left: 6.5px; width: 1px; }
.acc.open .plus { transform: rotate(45deg); }
.acc.open .plus::before,
.acc.open .plus::after { background: var(--accent); }
.acc.open .acc-btn .t { color: var(--accent); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s cubic-bezier(.2, .7, .3, 1);
}
.acc-inner { padding: 0 2px 20px; }

/* ---------------- 内容 ---------------- */
.summary {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.95;
}

.inline-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.inline-link:active { color: var(--accent); border-color: var(--accent); }

.rows { margin: 0; padding: 0; list-style: none; }
.rows li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.rows .when {
  font-size: 11.5px;
  color: #a9a49a;
  letter-spacing: .04em;
  padding-top: 3px;
}
.rows .what b { font-weight: 400; color: var(--ink); }
.rows .what em { font-style: normal; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 10px;
  background: #fcfbf9;
  line-height: 1.65;
}

.orgs { margin: 0; padding: 0; list-style: none; }
.orgs li { padding: 6px 0; }
.orgs li + li { border-top: 1px dashed var(--line-soft); margin-top: 6px; padding-top: 12px; }
.orgs .n { font-size: 13.5px; color: var(--ink); display: block; }
.orgs a.n { text-decoration: none; display: block; width: fit-content; border-bottom: 1px solid var(--line); }
.orgs a.n:active { color: var(--accent); border-color: var(--accent); }
.orgs .r { font-size: 11.5px; color: var(--muted); }

.links { margin: 0; padding: 0; }
.link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  text-decoration: none;
  border-bottom: 1px dashed var(--line-soft);
}
.link:first-child { padding-top: 2px; }
.link:last-child { border-bottom: 0; padding-bottom: 0; }
.link .body { flex: 1; min-width: 0; }
.link .src {
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--accent-soft);
  display: block;
  margin-bottom: 2px;
}
.link .t { font-size: 13.5px; color: var(--ink); display: block; }
.link .d { font-size: 11.5px; color: var(--muted); display: block; margin-top: 1px; }
.link .arrow { color: #cbc5b8; font-size: 12px; padding-top: 12px; }
.link.off .t { color: #8c877d; }
.link.off .src::after { content: " · 待补"; color: #bab4a7; letter-spacing: .02em; }

.qr-box { text-align: center; }
.qr-box img {
  width: 148px;
  height: 148px;
  object-fit: contain;
  border: 1px solid var(--line);
  padding: 6px;
  background: #fff;
  display: block;
  margin: 4px auto 8px;
}
.qr-empty {
  width: 148px;
  height: 148px;
  border: 1px dashed #d8d2c6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.7;
  color: #b9b3a7;
  margin: 4px auto 8px;
}
.qr-cap { font-size: 11.5px; color: #a9a49a; letter-spacing: .1em; margin: 0; }

/* ---------------- 页脚 ---------------- */
.foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: #ada79b;
  line-height: 1.8;
  text-align: center;
}
.foot .u { display: block; margin-top: 2px; }

@media (max-width: 560px) {
  body { padding: 0; background: #fff; }
  .card {
    border: 0;
    border-radius: 0;
    max-width: none;
    min-height: 100vh;
    --pad: 20px;
    padding: 0 var(--pad) calc(20px + env(safe-area-inset-bottom));
  }
}

@media print {
  body { background: #fff; padding: 0; }
  .card { border: 0; max-width: none; padding: 0; }
  .foot, .actions, .plus { display: none; }
  .cover { max-height: 300px; }
  .acc-body { max-height: none !important; overflow: visible; }
  .acc-btn { pointer-events: none; }
}
