:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #1473e6;
  --accent-soft: #e8f2ff;
  --paper: #ffffff;
  --wash: #f5f7fb;
  --success: #0f766e;
  --network: #0f766e;
  --network-soft: #e8f7f4;
}

.paper-citation-line .paper-title.paper-title-static {
  color: var(--ink);
  cursor: text;
  text-decoration: none;
}

.paper-access-notice {
  margin: 8px 0 12px;
  padding: 8px 10px;
  border-left: 2px solid #b9cee5;
  background: #f5f8fb;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.paper-access-notice[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .paper .paper-citation-line {
    text-align: left;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -10%, rgba(20, 115, 230, .11), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(120, 160, 210, .1), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fb 48%, #fff 100%);
  background-size: auto;
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
  width: min(820px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 30px;
  background: rgba(255, 255, 255, .9);
  border-left: 1px solid rgba(0, 0, 0, .05);
  border-right: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 22px 70px rgba(31, 58, 91, .1);
  backdrop-filter: blur(18px);
}

.page-shell::before {
  display: none;
}

.profile {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.topline {
  display: flex;
  gap: 14px;
  align-items: center;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0;
}

h1.cn-name {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  font-size: 14.5px;
}

.portrait {
  width: 92px;
  height: 110px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.lang-button,
.ghost-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.lang-button {
  width: 48px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.ghost-button {
  padding: 4px 12px;
  color: var(--muted);
}

.lang-button:hover,
.ghost-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.intro {
  margin-top: 10px;
  color: #374151;
  font-size: 14.5px;
  line-height: 1.5;
}

.modules {
  margin-top: 12px;
}

.module {
  position: relative;
  padding: 10px 0 10px 12px;
  border-top: 1px solid #eef1f6;
}

.module:first-child {
  padding-top: 6px;
  border-top: 0;
}

.module::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 12px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b8d7ff, #dcecff);
}

.module h2,
.publications h2 {
  font-size: 14.5px;
  line-height: 1.3;
  margin-bottom: 5px;
  color: #111827;
}

.module-lines {
  display: grid;
  gap: 4px;
  color: #303847;
}

.module-line {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 8px;
}

.module-index {
  color: #5d6f88;
  text-align: right;
}

.module-paragraph {
  margin: 0;
  line-height: 1.58;
}

.academic-service-line .service-label {
  display: inline;
  margin-right: 4px;
}

.journal-tags {
  display: inline;
  vertical-align: middle;
}

.journal-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 21px;
  margin: 0 4px 4px 0;
  padding: 1px 7px;
  border: 1px solid #d7dce3;
  border-radius: 999px;
  background: #fafafa;
  color: #30343b;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.editorial-service-line .journal-tag {
  border-color: #d7dce3;
  background: #f6f6f6;
  color: #30343b;
}

.journal-role {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eceff3;
  color: #454b55;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
}

a.journal-tag:hover {
  border-color: #9aa3af;
  background: #f1f2f4;
  color: #111827;
  text-decoration: none;
}

.publications {
  margin-top: 22px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.meta {
  color: var(--muted);
  font-size: 12.5px;
}

.search-row {
  margin: 12px 0 8px;
}

.search-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
}

.search-row input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.paper-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: paper;
}

.paper {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 4px 0 4px 38px;
  border-bottom: 1px solid #edf0f5;
}

.paper::before {
  counter-increment: paper;
  content: counter(paper) ".";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.paper-title {
  color: var(--accent);
  font-weight: 400;
}

.paper-citation-line {
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
}

.paper-citation-line .paper-title:hover {
  color: var(--accent);
  text-decoration: underline;
}

.paper-authors {
  color: #3f4d63;
}

.author-filter {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px dashed #aeb8c8;
}

.author-filter:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.corresponding-star {
  margin-left: 1px;
  color: #111;
  font-size: .78em;
  font-weight: 700;
  line-height: 0;
  vertical-align: super;
}

.paper-venue {
  color: var(--muted);
}

.paper-year {
  color: #4c5668;
}

.paper-punct {
  color: #667085;
}

.paper-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 12.5px;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.citation-dialog {
  width: min(720px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
}

.citation-dialog::backdrop {
  background: rgba(23, 32, 51, .35);
}

.citation-dialog form {
  padding: 18px;
}

.supplement-dialog {
  width: min(760px, calc(100% - 28px));
}

.supplement-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.supplement-item {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #eef1f6;
}

.supplement-item-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.supplement-item-head span {
  color: var(--muted);
  font-size: 12px;
}

.supplement-item video {
  width: 100%;
  max-height: 420px;
  background: #000;
}

.citation-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.citation-head h2 {
  margin: 0;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.citation-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 10px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 6px 12px;
  cursor: pointer;
}

.tab.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.citation-dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  resize: vertical;
}

.citation-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 38px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.admin-link {
  color: #98a2b3;
  font-size: 12px;
}

.reader-page {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.reader-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.reader-bar h1 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.reader-action {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 12px;
  color: var(--ink);
}

.reader-action.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.reader-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.reader-fallback {
  display: grid;
  min-height: 50vh;
  place-items: center;
  gap: 14px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 30px 18px;
  }

  .profile {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 78px;
    height: 94px;
    order: -1;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .paper {
    padding-left: 32px;
  }

  .reader-bar {
    grid-template-columns: auto 1fr;
  }

  .reader-action.primary,
  #openLink {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* Homepage final polish: restrained academic network texture. */
body {
  background:
    radial-gradient(circle at 14% -8%, rgba(20, 115, 230, .12), transparent 30%),
    radial-gradient(circle at 92% 6%, rgba(72, 132, 198, .10), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7fc 46%, #ffffff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(20, 115, 230, .14) 0 1px, transparent 1.8px),
    radial-gradient(circle at 30% 11%, rgba(20, 115, 230, .11) 0 1px, transparent 1.8px),
    radial-gradient(circle at 48% 24%, rgba(20, 115, 230, .10) 0 1px, transparent 1.8px),
    radial-gradient(circle at 76% 15%, rgba(20, 115, 230, .12) 0 1px, transparent 1.8px),
    linear-gradient(115deg, transparent 11.6%, rgba(20, 115, 230, .045) 11.7%, rgba(20, 115, 230, .045) 11.9%, transparent 12%),
    linear-gradient(22deg, transparent 27.6%, rgba(20, 115, 230, .04) 27.7%, rgba(20, 115, 230, .04) 27.9%, transparent 28%),
    linear-gradient(150deg, transparent 45.8%, rgba(20, 115, 230, .035) 45.9%, rgba(20, 115, 230, .035) 46.1%, transparent 46.2%);
  background-size: 760px 520px;
  opacity: .75;
}

.page-shell {
  width: min(860px, 100%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .88)),
    radial-gradient(circle at 8% 0%, rgba(20, 115, 230, .055), transparent 30%);
  border-color: rgba(166, 180, 199, .24);
  box-shadow: 0 28px 86px rgba(31, 58, 91, .11);
}

.profile {
  align-items: center;
  min-height: 136px;
  padding-bottom: 18px;
  border-bottom-color: rgba(170, 184, 204, .48);
}

.profile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(20, 115, 230, .32), transparent 62%);
}

h1 {
  font-size: 19px;
  font-weight: 680;
}

h1.cn-name {
  font-size: 20px;
  font-weight: 620;
}

.subtitle,
.links {
  color: #5f6b7a;
}

.links a {
  border-bottom: 1px solid rgba(20, 115, 230, .18);
}

.links a:hover {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.intro {
  max-width: 620px;
  color: #344054;
  line-height: 1.58;
}

.portrait {
  width: 90px;
  height: 108px;
  border-color: rgba(148, 163, 184, .48);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .09);
}

.module {
  padding-top: 9px;
  padding-bottom: 9px;
}

.module::before {
  top: 12px;
  bottom: 11px;
  background: linear-gradient(180deg, rgba(20, 115, 230, .45), rgba(184, 215, 255, .38));
}

.module h2,
.publications h2 {
  color: #0f172a;
  font-weight: 680;
}

.publications {
  margin-top: 20px;
  border-top-color: rgba(170, 184, 204, .52);
}

.search-row input {
  border-color: rgba(170, 184, 204, .64);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.paper {
  gap: 2px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-bottom-color: rgba(226, 232, 240, .86);
}

.paper::before {
  top: 6px;
  color: #7a8798;
}

.paper-citation-line {
  color: #2f3b4d;
  line-height: 1.58;
}

.paper-title {
  color: #1267c8;
  font-weight: 430;
  text-decoration-thickness: .06em;
  text-underline-offset: 2px;
}

.paper-authors {
  color: #334155;
}

.paper-venue,
.paper-year {
  color: #667085;
}

.paper-actions {
  gap: 10px;
  margin-top: 2px;
  color: #667085;
}

.paper-actions a,
.paper-actions .link-button {
  color: #356ea8;
  font-size: 12px;
}

.journal-tag {
  background: rgba(248, 250, 252, .84);
  border-color: rgba(203, 213, 225, .82);
}

@media (max-width: 640px) {
  body::before {
    opacity: .42;
  }

  .page-shell {
    padding: 26px 17px;
    box-shadow: none;
  }

  .profile {
    min-height: 0;
    gap: 14px;
  }

  .portrait {
    width: 76px;
    height: 91px;
  }

  h1 {
    font-size: 18px;
  }

  h1.cn-name {
    font-size: 19px;
  }

  .paper-actions {
    flex-wrap: wrap;
  }
}

/* Second polish pass: calmer depth and clearer scholarly actions. */
body::before {
  opacity: .56;
}

.page-shell {
  padding-top: 44px;
}

.topline {
  align-items: baseline;
}

.lang-button {
  min-height: 28px;
  width: 42px;
  border-color: rgba(148, 163, 184, .58);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #536071;
  font-size: 11.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.subtitle {
  margin-top: 7px;
}

.links {
  gap: 7px 10px;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 1px;
  color: #2563a8;
}

.intro {
  margin-top: 11px;
}

.portrait {
  filter: saturate(.98) contrast(1.01);
}

.module-lines {
  gap: 3px;
}

.module-line {
  line-height: 1.54;
}

.publications .section-head {
  padding-bottom: 2px;
}

.search-row {
  margin-top: 10px;
}

.search-row input {
  min-height: 38px;
}

.paper:hover {
  background: linear-gradient(90deg, rgba(20, 115, 230, .035), transparent 50%);
}

.paper-title:hover {
  text-decoration: underline;
}

.paper-actions {
  align-items: center;
}

.paper-actions a,
.paper-actions .link-button {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(37, 99, 168, .12);
  border-radius: 999px;
  background: rgba(248, 250, 252, .72);
  color: #315f8f;
  line-height: 1;
  text-decoration: none;
}

.paper-actions a:hover,
.paper-actions .link-button:hover {
  border-color: rgba(20, 115, 230, .28);
  background: rgba(232, 242, 255, .82);
  color: #1267c8;
  text-decoration: none;
}

.citation-dialog {
  border-color: rgba(148, 163, 184, .46);
  box-shadow: 0 24px 78px rgba(15, 23, 42, .18);
}

@media (max-width: 640px) {
  body::before {
    opacity: .32;
  }

  .page-shell {
    padding-top: 24px;
  }

  .topline {
    gap: 10px;
  }

  .links {
    font-size: 13.5px;
  }

  .intro {
    font-size: 13.5px;
  }

  .module {
    padding-left: 10px;
  }

  .paper {
    padding-left: 28px;
  }

  .paper-actions {
    gap: 7px;
  }
}
