:root {
  --paper: #e8dfd2;
  --card: #fffdf8;
  --ink: #1a1612;
  --body: #322c25;
  --muted: #72685c;
  --line: #d8c8b3;
  --link: #b4411b;
  --link-hover: #7d2c12;
  --accent: #1f6b6b;
  --accent-soft: #e7f2f1;
  --chip: #fff7ee;
  --good: #9b1d2e;
  --shadow: rgba(42, 32, 22, 0.1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 460px at 0% -8%, rgba(180, 65, 27, 0.08), transparent 55%),
    radial-gradient(760px 420px at 100% 0%, rgba(31, 107, 107, 0.07), transparent 50%);
  color: var(--body);
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
}

a {
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(180, 65, 27, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bio a,
.paper-links a {
  font-weight: 600;
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--link);
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 12px 32px var(--shadow);
}

.name {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 4px;
}

.cname {
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: var(--accent);
  margin: 0 0 18px;
}

.bio p {
  margin: 0 0 12px;
}

.bio p:last-child { margin-bottom: 0; }

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid #d7a08a;
  color: var(--link);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}

button.chip {
  font: inherit;
  cursor: pointer;
}

.chip:hover {
  background: var(--link);
  border-color: var(--link);
  color: #fff;
  text-decoration: none;
}

.portrait {
  text-align: center;
}

.portrait-frame {
  display: block;
  padding: 8px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(180deg, #fffdf8 0%, #f4e6d2 100%);
  border: 1px solid #d2bfa6;
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 253, 248, 0.9) inset,
    0 16px 30px rgba(42, 32, 22, 0.14);
}

.portrait img.me {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 13px;
  border: 1px solid rgba(180, 65, 27, 0.22);
  background: #fff;
}

.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 22, 18, 0.48);
}

.wechat-modal[hidden] { display: none; }

.wechat-dialog {
  position: relative;
  width: min(320px, 100%);
  background: var(--card);
  border-radius: 16px;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(26, 22, 18, 0.22);
}

.wechat-dialog p {
  margin: 0 0 12px;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  color: var(--ink);
}

.wechat-dialog img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.wechat-dialog span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.wechat-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

section {
  margin-top: 38px;
}

h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  padding-bottom: 0;
  border-bottom: 0;
}

h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 10px;
  background: var(--link);
}

.hint {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 16px;
}

.paper {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 12px;
  transition: box-shadow .18s ease, transform .18s ease;
}

.paper:hover {
  box-shadow: 0 12px 26px var(--shadow);
  transform: translateY(-1px);
}

.paper-featured {
  background: linear-gradient(180deg, #fff6e8 0%, #fffdf8 48%);
  border-color: #e4cb90;
  box-shadow: inset 3px 0 0 #c8963e;
}

.paper-featured:hover {
  box-shadow: inset 3px 0 0 #c8963e, 0 12px 26px var(--shadow);
}

.honor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 4px;
}

.honor {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.honor svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.honor-best {
  color: #8a5a12;
  background: linear-gradient(180deg, #fff7e4, #f6e4bc);
  border: 1px solid #e4cd96;
}

.honor-popular {
  color: #9b1d2e;
  background: linear-gradient(180deg, #fff3ef, #fde3da);
  border: 1px solid #f0c7bb;
}

.honor-note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.paper img.thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f3eee6;
}

.papertitle {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 6px;
}

.paper-authors, .paper-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14.5px;
}

.paper-authors strong { color: var(--ink); font-weight: 700; }

.venue {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fde8ea;
  color: var(--good);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
}

.paper-links {
  margin: 4px 0 0;
  font-size: 14.5px;
}

.awards {
  display: grid;
  gap: 10px;
}

.award {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.award b {
  display: block;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
}

.award span { color: var(--muted); font-size: 14.5px; }
.award .hot { color: var(--good); font-weight: 700; }

footer {
  margin-top: 36px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: right;
}

@media (max-width: 760px) {
  .hero, .paper {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 240px;
    margin: 0 auto;
  }
}
