:root { font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding: clamp(12px, 4vw, 56px); background: var(--canvas); color: var(--text); }
body.mulin { --canvas: #e5e9e6; --paper: #f4f1eb; --ink: #11313e; --text: #11313e; --secondary: #435a60; --line: #b9c6c3; --surface: #ebe8e0; --accent: #b24a3e; --button: #11313e; --button-text: #fff; }
body.iccebd { color-scheme: dark; --canvas: #081529; --paper: #0e2240; --ink: #fff; --text: #fff; --secondary: #c3d1e4; --line: #486281; --surface: #162d4e; --accent: #e87b45; --button: #fff; --button-text: #0e2240; }
.card { max-width: 55rem; margin: 0 auto; padding: clamp(18px, 5vw, 56px); background: var(--paper); border: 1px solid var(--line); border-radius: clamp(12px, 3vw, 24px); }
header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 1.35rem; letter-spacing: .1em; font-weight: 750; }
.brand img { width: 50px; height: 38px; object-fit: contain; }
.mulin .brand img { width: 42px; }
nav { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; }
nav > * { display: grid; place-items: center; min-width: 40px; min-height: 44px; padding: 0 6px; border-radius: 5px; color: var(--secondary); text-decoration: none; font-size: .875rem; }
nav [aria-current], nav a:hover { background: var(--surface); color: var(--text); font-weight: 700; }
.hero { display: flex; align-items: center; gap: clamp(18px, 5vw, 46px); margin: clamp(26px, 6vw, 56px) 0 16px; }
.identity { min-width: 0; max-width: 44rem; }
.identity::before { content: ''; display: block; width: 2.5rem; height: 3px; margin-bottom: 14px; background: var(--accent); }
.portrait { display: block; flex: none; width: clamp(82px, 18vw, 180px); height: auto; border-radius: 12px; }
h1 { margin: 0; color: var(--ink); font-size: clamp(1.9rem, 5.4vw, 3.65rem); letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
.role { margin: 8px 0; font-weight: 700; line-height: 1.4; }
.organization { margin: 0; color: var(--secondary); font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.save { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; margin-top: 16px; padding: .65rem .85rem; border-radius: 7px; background: var(--button); color: var(--button-text); font-weight: 700; text-decoration: none; }
.save span { font-weight: 400; font-size: .82rem; }
.description { max-width: 58ch; margin: 20px 0 0; color: var(--secondary); line-height: 1.6; }
.related { display: flex; flex-wrap: wrap; gap: 0 18px; }
.related a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: .18em; }
.connection { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 12px; font-size: 1.1rem; }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.channels > * { min-height: 48px; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; text-align: start; text-decoration: none; }
.channels :is(a, button) { cursor: pointer; }
.channels :is(a, button):hover { border-color: var(--accent); }
.channels span { display: block; color: var(--secondary); font-size: .875rem; overflow-wrap: anywhere; }
.channels .wechat-with-id { grid-column: span 2; overflow-wrap: anywhere; }
:is(a, button, input):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
dialog { width: min(calc(100% - 24px), 390px); padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--text); }
dialog::backdrop { background: #071321d9; }
dialog input { width: 100%; padding: .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: inherit; font: inherit; }
.dialog-actions { display: flex; gap: 10px; margin-top: 12px; }
.dialog-actions button { min-height: 44px; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
dialog p { margin: 8px 0 0; color: var(--secondary); }
@media (max-width: 35rem) { .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .channels .wechat-with-id { grid-column: 1 / -1; } }
@media (max-width: 27rem) { .hero { display: grid; gap: 14px; } .portrait { width: 100px; } h1 { letter-spacing: -.025em; } }
