/* Default css file for jemdoc. */

/* ===== 设计变量（配色 / 字体栈，均为本地字体，不联网加载）===== */
:root {
  --paper: #ffffff;
  --surround: #f0f0f0;
  --tint: #f5f9fd;
  --ink: #1e2430;
  --ink-soft: #4e5561;
  --ink-faint: #858d99;
  /* 浅蓝：大字号标题与装饰线 */
  --accent: #527bbd;
  /* 深一档：小字号文本、以及需要承载白字的底色（保证对比度）*/
  --accent-deep: #3f6ba6;
  --accent-soft: #6d95c8;
  /* 亮一档：仅用于非 featured 论文标题，需与同色的 entry-key / hl / 大标题拉开区分 */
  --accent-bright: #5a8ccb;
  --link: #3a6fae;
  --link-hover: #24507f;
  /* 公告型条目的醒目色 */
  --alert: #f3210a;
  --alert-deep: #c12d20;
  --rule: #dce3ec;
  --rule-soft: #eaeff5;

  /* 滚动容器限高。CSS 无法按「子元素条数」求高度，max-height 只能是
     绝对值，所以下面两个值是按行高/条目高度推算的，直接改这里即可微调 */
  /* News 约 10 条：单行条目 = line-height 1.5em + margin-bottom 0.5em = 2em，
     实际内容约 1.4 行/条 → 10 × 1.4 × 1.5em + 10 × 0.5em = 26em，再加面板上下 padding 2em */
  --news-max-h: 28em;
  /* Publications 6 篇：前3篇 featured 约 350px/篇，后3篇 compact 约 60px/篇，共约 1230px */
  --pub-max-h: 1400px;

  --font-serif: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype",
    "Times New Roman", "Songti SC", "Source Han Serif SC", serif;
  --font-kai: "STKaiti", "Kaiti SC", KaiTi, STSong, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

table#tlayout {
    border: none;
    border-collapse: separate;
    background: white;
}

body {
    background: var(--surround);
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.5;
    padding-bottom: 0;
    margin: 0;
    text-align: center;
}

::selection {
    background: rgba(82, 123, 189, 0.20);
}

#layout-menu {
    background: #f6f6f6;
    border: 1px solid #dddddd;
    padding-top: 0.5em;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 1.0em;
    width: auto;
    white-space: nowrap;
    text-align: left;
    vertical-align: top;
}

#layout-menu td {
    background: #f4f4f4;
    vertical-align: top;
}

/* 一页纸：白色内容片浮在中性灰底上 */
#layout-content {
    padding: 44px 54px 76px;
    border: none;
    background: var(--paper);
    text-align: left;
    vertical-align: top;
    width: 100%;
    max-width: 1000px;
    margin: 28px auto 44px;
    box-shadow: 0 1px 3px rgba(30, 36, 48, 0.07),
                0 14px 34px rgba(30, 36, 48, 0.09);
}

#layout-menu a {
    line-height: 1.5em;
    margin-left: 0.5em;
}

tt {
    background: #ffffdd;
}

pre, tt {
    font-size: 90%;
    font-family: monaco, monospace;
}

a, a > tt {
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: rgba(58, 111, 174, 0.36);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
}

a:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
    border-radius: 2px;
}

#layout-menu a.current:link, #layout-menu a.current:visited {
    color: #022b6d;
    border-bottom: 1px gray solid;
}
#layout-menu a:link, #layout-menu a:visited, #layout-menu a:hover {
    color: #527bbd;
    text-decoration: none;
}
#layout-menu a:hover {
    text-decoration: none;
}

div.menu-category {
    border-bottom: 1px solid gray;
    margin-top: 0.8em;
    padding-top: 0.2em;
    padding-bottom: 0.1em;
    font-weight: bold;
}

div.menu-item {
    padding-left: 16px;
    text-indent: -16px;
}

div#toptitle {
    padding-bottom: 0.5em;
    margin-bottom: 1.6em;
    border-bottom: 1px solid var(--rule);
}

/* Reduce space if we begin the page with a title. */
div#toptitle + h2, div#toptitle + h3 {
    margin-top: -0.7em;
}

div#subtitle {
    margin-top: 0.0em;
    margin-bottom: 0.0em;
    padding-top: 0em;
    padding-bottom: 0.1em;
}

em {
    font-style: italic;
}

strong {
    font-weight: bold;
}


h1, h2, h3 {
    margin-top: 0.7em;
    margin-bottom: 0.3em;
    padding-bottom: 0.2em;
    line-height: 1.25;
    padding-top: 0.5em;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-serif);
    letter-spacing: 0.005em;
}

h1 {
    color: var(--accent);
    font-size: 1.65rem;
}

h2 {
    position: relative;
    color: var(--accent);
    padding-top: 1.5em;
    font-size: 1.32rem;
}

/* 每个二级标题下的短强调线 */
h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 2.8rem;
    height: 2px;
    background: var(--accent);
}

h2 + h3 {
    padding-top: 0.2em;
}

h3 {
    color: var(--ink);
    font-size: 1.08rem;
    border-bottom: none;
}

p {
    margin-top: 0.0em;
    margin-bottom: 0.9em;
    padding: 0;
    line-height: 1.45;
}

pre {
    padding: 0;
    margin: 0;
}

div#footer {
    font-size: small;
    border-top: 1px solid #c0c0c0;
    padding-top: 0.1em;
    margin-top: 2.0em;
    color: #CD4F39;
}

div#footer a {
    color: #80a0b0;
}

div#footer-text {
    float: right;
    padding-bottom: 8px;
}

ul, ol, dl {
    margin-top: 0.2em;
    padding-top: 0;
    margin-bottom: 0.8em;
}

dt {
    margin-top: 0.5em;
    margin-bottom: 0;
}

dl {
    margin-left: 20px;
}

dd {
    color: #222222;
}

dd > *:first-child {
    margin-top: 0;
}

ul {
    list-style-position: outside;
    list-style-type: square;
}

p + ul, p + ol {
    margin-top: -0.5em;
}

li ul, li ol {
    margin-top: -0.3em;
}

ol {
    list-style-position: outside;
    list-style-type: decimal;
}

li p, dd p {
    margin-bottom: 0.3em;
}


ol ol {
    list-style-type: lower-alpha;
}

ol ol ol {
    list-style-type: lower-roman;
}

p + div.codeblock {
    margin-top: -0.6em;
}

div.codeblock, div.infoblock {
    margin-right: 0%;
    margin-top: 1.2em;
    margin-bottom: 1.3em;
}

div.blocktitle {
    font-weight: bold;
    color: #cd7b62;
    margin-top: 1.2em;
    margin-bottom: 0.1em;
}

div.blockcontent {
    border: 1px solid silver;
    padding: 0.3em 0.5em;
}

div.infoblock > div.blockcontent {
    background: #ffffee;
}

div.blockcontent p + ul, div.blockcontent p + ol {
    margin-top: 0.4em;
}

div.infoblock p {
    margin-bottom: 0em;
}

div.infoblock li p, div.infoblock dd p {
    margin-bottom: 0.5em;
}

div.infoblock p + p {
    margin-top: 0.8em;
}

div.codeblock > div.blockcontent {
    background: #f6f6f6;
}

span.pycommand {
    color: #000070;
}

span.statement {
    color: #008800;
}
span.builtin {
    color: #000088;
}
span.special {
    color: #990000;
}
span.operator {
    color: #880000;
}
span.error {
    color: #aa0000;
}
span.comment, span.comment > *, span.string, span.string > * {
    color: #606060;
}

@media print {
    #layout-menu { display: none; }
}

#fwtitle {
    margin: 2px;
}

#fwtitle #toptitle {
    padding-left: 0.5em;
    margin-bottom: 0.5em;
}

#layout-content h1:first-child, #layout-content h2:first-child, #layout-content h3:first-child {
    margin-top: -0.7em;
}

div#toptitle h1, #layout-content div#toptitle h1 {
    margin-bottom: 0.0em;
    padding-bottom: 0.1em;
    padding-top: 0;
    margin-top: 0.6em;
    border-bottom: none;
    font-size: 1.75rem;
    letter-spacing: 0.01em;
    color: var(--ink);
}

img.eq {
    padding: 0;
    padding-left: 0.1em;
    padding-right: 0.1em;
    margin: 0;
}

img.eqwl {
    padding-left: 2em;
    padding-top: 0.6em;
    padding-bottom: 0.2em;
    margin: 0;
}

table {
    border: 2px solid black;
    border-collapse: collapse;
}

td {
    padding: 2px;
    padding-left: 0.5em;
    padding-right: 0.5em;
    text-align: center;
    border: 1px solid gray;
}

table + table {
    margin-top: 1em;
}

tr.heading {
    font-weight: bold;
    border-bottom: 2px solid black;
}

img {
    border: none;
}

table.imgtable, table.imgtable td {
    border: none;
    text-align: left;
}

/* ===== 页面顶部个人信息区 ===== */
table.imgtable {
    width: 100%;
    margin-bottom: 0.8em;
}

table.imgtable > tbody > tr > td {
    padding: 0;
    vertical-align: top;
}

/* 人像列与 logo 列用百分比写死：
   1) 不写的话 table auto 布局会把富余宽度摊给人像列，在人像与文字间拉出空白
   2) 写固定 px 则在 769–1000px 视口下三列总宽超出可用宽度而溢出 */
table.imgtable > tbody > tr > td:first-child {
    width: 28%;
}

/* 人像 */
img.portrait {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--rule);
    box-shadow: 0 4px 14px rgba(23, 43, 69, 0.10);
}

td.profile-text {
    padding-left: 48px !important;
    padding-right: 24px !important;
}

.chinese-name {
    display: inline;
    font-family: var(--font-kai);
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.15;
    letter-spacing: 0.06em;
    color: var(--ink);
}

.english-name {
    display: inline;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-left: 0.5em;
    letter-spacing: 0.01em;
}

.english-name .alias {
    font-style: italic;
    color: var(--ink-faint);
}

.job-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--accent-deep);
    font-weight: bold;
    margin-top: 0.8em;
}

.affiliation {
    display: block;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-top: 0.3em;
}

/* 联系方式：标签对齐的两列观感 */
.contact-info {
    margin-top: 1em;
    padding-top: 0.6em;
    border-top: 1px solid var(--rule);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-item {
    color: var(--ink-soft);
    margin-bottom: 0.4em;
}

.contact-label {
    display: inline-block;
    min-width: 6.6em;
    color: var(--ink-faint);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* 单位 logo
   注：必须带上 table.imgtable 前缀，否则会被上方
   `table.imgtable td { text-align: left }` （特异性更高）覆盖 */
table.imgtable td.logo-cell {
    width: 21%;
    text-align: center;
    /* 兜底：若两 logo 总高仍与人像/文字列有落差，让余量上下平分，
       而不是全部堆在底部（特异性 (0,2,2) 压过上方的 vertical-align: top）*/
    vertical-align: middle;
}

/* 间距用百分比（相对 logo 列宽），才能和下方按百分比缩放的 logo 同步，
   否则视口变窄时 logo 缩小、间距不变，logo 列会反过来比人像高 */
td.logo-cell > p {
    margin: 0 0 13%;
}

td.logo-cell > p:last-child {
    margin-bottom: 0;
}

td.logo-cell a {
    text-decoration: none;
}

/* height 一律交给 auto 按真实宽高比算，避免像原先 ali.svg 那样
   被 height 属性纵向拉伸；显示尺寸改由下面两条百分比宽度控制 */
td.logo-cell img {
    max-width: 100%;
    height: auto;
    opacity: 0.86;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 百分比宽度让 logo 随列宽缩放，控制在人像高度以内：
   ali.svg 真实 122×79，nju.jpg 真实 336×421 */
td.logo-cell img.logo-ali {
    width: 70%;
}

td.logo-cell img.logo-nju {
    width: 48%;
}

td.logo-cell a:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

/* 列表默认间距交由 .content-list 控制 */

.pub-note {
  font-size: 0.48em;
  font-weight: normal;
  color: #999;
  margin-left: 0.5em;
  letter-spacing: 0.02em;
}

/* ===== 论文条目 ===== */
.publication-item {
  display: flex;
  align-items: stretch;
  margin-bottom: 0.4rem;
  padding: 22px 14px;
  border-bottom: 1px solid var(--rule-soft);
  border-radius: 5px;
  transition: background-color 0.22s ease;
}

/* Featured publications (前3篇详细展示) */
.publication-item.featured {
  border: 1px solid transparent;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.publication-item.featured:hover {
  background-color: var(--tint);
  border-color: var(--rule-soft);
}

/* Featured: designation 样式同 pub-venue */
.publication-item.featured .pub-designation {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 3px;
  background-color: var(--accent-soft);
  color: white;
  font-size: 0.74rem;
  font-weight: bold;
  letter-spacing: 0.07em;
  vertical-align: middle;
}

.publication-item.featured .pub-designation:empty {
  display: none;
}

.publication-item:hover {
  background-color: var(--tint);
}

.publication-item:last-child {
  border-bottom: none;
}

.pub-img-container {
  flex: 0 0 380px;
  padding-right: 26px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px; /* 兜底：文字区比图还短时仍保留居中空间 */
}

.pub-info-container {
  flex: 1;
  text-align: left;
  padding-left: 0;
  min-width: 0;
}

/* Featured: 保持原有渲染顺序 */
.publication-item.featured .pub-info-container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35em;
}
.publication-item.featured .pub-info-container > .pub-venue { order: 1; }
.publication-item.featured .pub-info-container > .pub-designation { order: 2; }
.publication-item.featured .pub-info-container > .pub-rank { order: 3; }
.publication-item.featured .pub-info-container > .pub-title { order: 4; }
.publication-item.featured .pub-info-container > .pub-authors { order: 5; }
.publication-item.featured .pub-info-container > .pub-abstract { order: 6; }
.publication-item.featured .pub-info-container > .pub-links { order: 7; }

/* 非 Featured: inline 流式布局 */
.publication-item:not(.featured) .pub-info-container {
  display: inline;
}
.publication-item:not(.featured) .pub-info-container > * {
  display: inline;
  margin-right: 0.35em;
}
.publication-item:not(.featured) .pub-info-container > *:last-child {
  margin-right: 0;
}

.publication-item img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  border: 1px solid var(--rule);
  box-shadow: 0 3px 12px rgba(23, 43, 69, 0.09);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.publication-item:hover img {
  box-shadow: 0 8px 24px rgba(23, 43, 69, 0.16);
  transform: translateY(-2px);
}

/* 正文关键词高亮 */
.hl {
  color: var(--accent-deep);
  font-weight: bold;
}

/* 正文列表（News / Awards 等）*/
ul.content-list {
  margin-left: 1.2em;
  padding-left: 1.5em;
}

ul.content-list li {
  margin-bottom: 0.25em;
  line-height: 1.5;
}

ul.content-list li::marker {
  color: var(--accent-soft);
}

/* Awards: 奖牌图标 */
ul.awards-list {
  list-style: none;
  padding-left: 0em;
}
ul.awards-list li {
  position: relative;
  padding-left: 1.8em;
}
ul.awards-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.15em;
  width: 4px;
  height: 5px;
  border-left: 2px solid #333;
  border-right: 2px solid #333;
}
ul.awards-list li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border: 2px solid #333;
  border-radius: 50%;
}

/* Competitions: 三角旗图标 */
ul.competitions-list {
  list-style: none;
  padding-left: 0em;
}
ul.competitions-list li {
  position: relative;
  padding-left: 1.8em;
}
ul.competitions-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1v12' stroke='%23333' stroke-width='1.5'/%3E%3Cpath d='M3 2l8 3-8 3z' fill='%23333'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* Services: 人物图标 */
ul.services-list {
  list-style: none;
  padding-left: 0em;
}
ul.services-list li {
  position: relative;
  padding-left: 1.8em;
}
ul.services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='4' r='2.5' fill='none' stroke='%23333' stroke-width='1.2'/%3E%3Cpath d='M3 13c0-2.5 1.8-4 4-4s4 1.5 4 4' fill='none' stroke='%23333' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* 条目会折行的列表，项间留白更大 */
ul.content-list.spaced li {
  margin-bottom: 0.5em;
}

/* 条目开头的年份 / 角色标题 */
.entry-key {
  color: var(--accent-deep);
}

/* 内容超出限高后转为内部纵向滚动 */
.scroll-box {
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: #c6d2e0 transparent;
  -webkit-overflow-scrolling: touch;
}

.scroll-box::-webkit-scrollbar {
  width: 8px;
}

.scroll-box::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-box::-webkit-scrollbar-thumb {
  background: #c6d2e0;
  border-radius: 4px;
}

.scroll-box::-webkit-scrollbar-thumb:hover {
  background: var(--accent-soft);
}

/* Publications: 取消滚动，全部渲染 */
.pub-scroll {
  max-height: none;
  overflow-y: visible;
}

/* News：只保留左侧强调竖条，不画成封闭边框
   margin-left 归零 + padding-left 2.7em：让竖条对齐正文左边缘，
   同时保持项目符号与其他列表（1.2em + 1.5em）相同的缩进
   不写 border-radius：只剩一条直线时圆角会把竖条两端削细 */
ul.content-list.news-panel {
  max-height: none;
  overflow-y: visible;
  margin-left: 0;
  padding: 16px 18px 16px 2.7em;
  border-left: 3px solid var(--accent);
}

/* News 中需要突出的公告条目：整条转红。
   内部的 .entry-key / .hl / a 各自带蓝色，必须显式覆盖，
   否则只有裸文字会变红 */
li.notice,
li.notice .entry-key,
li.notice .hl,
li.notice a {
  color: var(--alert);
}

li.notice a {
  text-decoration-color: rgba(192, 57, 43, 0.42);
}

li.notice a:hover {
  color: var(--alert-deep);
  text-decoration-color: var(--alert-deep);
}

/* 论文信息样式 */
.pub-title {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.12rem;
  line-height: 1.3;
  margin-bottom: 0.35em;
  color: var(--ink);
  transition: color 0.22s ease;
}

.publication-item:hover .pub-title {
  color: var(--accent-deep);
}

.pub-authors {
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 0.5em;
}

.pub-authors strong {
  color: var(--ink);
  font-weight: bold;
}

.pub-venue {
  display: inline-block;
  background-color: var(--accent-deep);
  color: white;
  padding: 2px 9px;
  border-radius: 3px;
  font-size: 0.74rem;
  font-weight: bold;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.7em;
}

/* 会议等级标签：紧跟 .pub-venue，描边款与实心会议徽章成对出现。
   padding 比 .pub-venue 少 1px、补 1px 边框，两者外框等高；
   用 --accent-deep（白底 5.43:1）而非 --accent（4.26:1，小字不达标）*/
.pub-rank {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid var(--accent-deep);
  border-radius: 3px;
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: bold;
  letter-spacing: 0.07em;
}

.pub-abstract {
  margin: 0.7em 0;
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 0.92rem;
}

.pub-links {
  margin-top: 0.8em;
}

.pub-link-btn {
  display: inline-block;
  background-color: transparent;
  border: 1px solid #c3cfdc;
  color: var(--ink-soft);
  padding: 3px 11px;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin-right: 7px;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.pub-link-btn:hover {
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
  text-decoration: none;
}

/* ===== 非 Featured 论文：参考 [ISWC'24] Authors. Title. In Proc. of ... [links] 格式 ===== */
.publication-item:not(.featured) {
  display: flex;
  align-items: baseline;
  padding: 5px 14px 5px 1em;
  margin-bottom: 0;
  border-bottom: none;
  border-radius: 0;
  background: none;
  line-height: 1.65;
}

/* 隐藏图片列 */
.publication-item:not(.featured) .pub-img-container {
  display: none;
}

/* 隐藏摘要 */
.publication-item:not(.featured) .pub-abstract {
  display: none;
}

/* 缩略模式：rank 放在最后，括号加粗 */
.publication-item:not(.featured) .pub-rank {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin-left: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: bold;
  letter-spacing: 0;
}

.publication-item:not(.featured) .pub-rank::before {
  content: " (";
}

.publication-item:not(.featured) .pub-rank::after {
  content: ")";
}

/* 缩略模式：designation 在末尾以 (Findings) 形式展示 */
.publication-item:not(.featured) .pub-designation {
  display: inline;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.publication-item:not(.featured) .pub-designation:not(:empty)::before {
  content: " (";
}

.publication-item:not(.featured) .pub-designation:not(:empty)::after {
  content: ")";
}

.publication-item:not(.featured) .pub-designation:empty {
  display: none;
}

/* 会议缩写：📄 [CONF'YY] 格式 */
.publication-item:not(.featured) .pub-venue {
  display: inline;
  background: none;
  color: var(--ink);
  padding: 0;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0;
  font-style: normal;
}

.publication-item:not(.featured) .pub-venue::before {
  content: "[";
  display: inline;
  padding-left: 20px;
  margin-left: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M2 0h8l4 4v12a2 2 0 01-2 2H2a2 2 0 01-2-2V2a2 2 0 012-2z' fill='%23333'/%3E%3Cpath d='M10 0v4h4' fill='none' stroke='white' stroke-width='1.5'/%3E%3Cline x1='3' y1='7' x2='13' y2='7' stroke='white' stroke-width='1.2'/%3E%3Cline x1='3' y1='10' x2='13' y2='10' stroke='white' stroke-width='1.2'/%3E%3Cline x1='3' y1='13' x2='10' y2='13' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat left center;
  background-size: 14px 16px;
}

.publication-item:not(.featured) .pub-venue::after {
  content: "]";
}

/* 标题：斜体 + 下划线 */
.publication-item:not(.featured) .pub-title {
  display: inline;
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--accent-bright);
  text-decoration: underline;
  text-decoration-color: rgba(90, 140, 203, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.pub-title-link {
  color: inherit;
  text-decoration: none;
}

.pub-title-link:hover {
  color: var(--accent-deep);
}

.publication-item:not(.featured) .pub-title-link {
  color: inherit;
  text-decoration: inherit;
}

.publication-item:not(.featured) .pub-title-link:hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent-deep);
}

.publication-item:not(.featured) .pub-title::after {
  content: ".";
  color: var(--ink);
  text-decoration: none;
  font-style: normal;
}

/* 作者 */
.publication-item:not(.featured) .pub-authors {
  display: inline;
  margin-bottom: 0;
  font-size: 0.92rem;
  font-style: italic;
}

.publication-item:not(.featured) .pub-authors::after {
  content: ".";
  color: var(--ink);
  font-style: normal;
}

/* 链接：[code] 方括号格式 */
.publication-item:not(.featured) .pub-links {
  display: inline;
  margin-top: 0;
}

.publication-item:not(.featured) .pub-link-btn {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
  margin-right: 0;
  border-radius: 0;
  text-decoration: none;
  color: var(--link);
  font-style: normal;
}

.publication-item:not(.featured) .pub-link-btn::before {
  content: "[";
  color: var(--ink);
}

.publication-item:not(.featured) .pub-link-btn::after {
  content: "]";
  color: var(--ink);
}

.publication-item:not(.featured) .pub-link-btn:hover {
  background: none;
  color: var(--link-hover);
  text-decoration: underline;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .publication-item {
    flex-direction: column;
  }
  
  .pub-img-container {
    flex: 0 0 auto;
    padding-right: 0;
    padding-bottom: 15px;
    width: 100%;
    min-height: auto; /* 在移动端不需要固定高度 */
    align-items: center; /* 在移动端也保持居中 */
  }
  
  .pub-info-container {
    flex: 1;
    width: 100%;
  }
  
  .pub-links {
    display: flex;
    flex-wrap: wrap;
  }
  
  .pub-link-btn {
    margin-bottom: 5px;
  }
  
  /* 在较小屏幕上，限制图片最大宽度 */
  .pub-img-container img {
    max-width: 100%;
    width: auto !important;
    height: auto;
  }

  /* 顶部个人信息区：窄屏下由三列表格改为纵向堆叠
     同时取消“浮片”的外边距，让纸面撑满屏宽 */
  #layout-content {
    padding: 24px 20px 52px;
    margin: 0 auto;
    box-shadow: none;
  }

  ul.content-list.news-panel {
    padding: 14px 12px 14px 2.4em;
  }

  table.imgtable,
  table.imgtable > tbody,
  table.imgtable > tbody > tr,
  table.imgtable > tbody > tr > td {
    display: block;
    width: 100% !important;
  }

  table.imgtable img.portrait {
    width: 210px !important;
    height: auto !important;
  }

  td.profile-text {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 18px !important;
  }

  table.imgtable td.logo-cell {
    text-align: left;
    padding-top: 22px !important;
  }

  /* logo 由纵向排列改为横向并排 */
  td.logo-cell > p {
    display: inline-block;
    margin: 0 26px 0 0;
    text-align: left !important;
  }

  /* 窄屏下 <p> 是 inline-block（宽度由内容决定），
     百分比宽度在这种收缩容器里无法稳定解析，改回固定值 */
  td.logo-cell img.logo-ali {
    width: 100px;
  }

  td.logo-cell img.logo-nju {
    width: 70px;
  }

  td.logo-cell br {
    display: none;
  }

  .chinese-name {
    font-size: 1.6rem;
  }

  div#toptitle h1, #layout-content div#toptitle h1 {
    font-size: 1.45rem;
  }

  .contact-label {
    min-width: 0;
    margin-right: 0.5em;
  }
}

/* 打印：解除滚动容器限高（否则超出部分会丢失），
   并去掉屏幕专用的底色、投影与悬停效果 */
@media print {
  body {
    background: #fff;
  }

  #layout-content {
    padding: 0;
    margin: 0;
    max-width: none;
    box-shadow: none;
  }

  .scroll-box,
  ul.content-list.news-panel {
    max-height: none !important;
    overflow: visible !important;
  }

  ul.content-list.news-panel {
    border: none;
    padding-left: 1.6em;
  }

  .publication-item:hover {
    background: none;
  }
}
