/* liuyu 学术主页 · 风格 A 经典极简
   排版比例参照 supertyd.github.io/yuedong_tan（顶部导航 + 左名片栏 + 右内容区），
   视觉风格保持：白底 + Georgia 衬线 + #1772d0 链接蓝 */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #ffffff;
  color: #222222;
  font-family: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: #1772d0; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #1772d0; outline-offset: 2px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid #eeeeee;
  z-index: 10;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #222222;
}
.brand:hover { text-decoration: none; }

.menu a {
  margin-left: 1.6rem;
  font-size: .95rem;
  color: #555555;
}
.menu a:hover { color: #1772d0; text-decoration: none; }

/* ---------- 主体两栏 ---------- */
.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
}

/* ---------- 左侧名片栏 ---------- */
.side {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 5.2rem;
}

.portrait {
  width: 190px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.side h1 {
  font-size: 1.7rem;
  font-weight: 400;
  margin: 1.1rem 0 0;
}

.side .cn {
  color: #777777;
  font-size: 1.05rem;
  margin: .1rem 0 .9rem;
}

.facts {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  color: #555555;
  font-size: .92rem;
}

.facts li {
  margin-bottom: .35rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

.facts svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: .22rem;
  color: #9a9a9a;
}

.btns { display: flex; flex-direction: column; gap: .5rem; }

.btns a {
  display: block;
  border: 1px solid #dddddd;
  border-radius: 6px;
  padding: .42rem .9rem;
  font-size: .92rem;
  text-align: center;
}
.btns a:hover {
  text-decoration: none;
  border-color: #1772d0;
  background: #f7faff;
}

/* ---------- 右侧内容区 ---------- */
.content { flex: 1; min-width: 0; }

.content section { margin-bottom: 2.6rem; }

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .9rem;
  color: #222222;
}

.content p { margin: 0 0 .8rem; color: #333333; }

/* ---------- News / CV 列表 ---------- */
.news, .cvlist { border-collapse: collapse; }

.news td, .cvlist td {
  font-size: .95rem;
  padding: .18rem .9rem .18rem 0;
  vertical-align: top;
  color: #333333;
}

.news .date, .cvlist .date {
  color: #999999;
  white-space: nowrap;
}

.cvlist .logo {
  padding: .5rem 1rem .3rem 0;
  vertical-align: top;
  line-height: 1;
  white-space: nowrap;
}

.cvlist .logo img {
  width: 96px;
  height: 34px;
  object-fit: contain;
  object-position: left top;
  display: inline-block;
  vertical-align: top;
}

.cvlist .logo img.sq {
  width: 34px;
  margin-right: .3rem;
}

.cvlist .logo img.lg {
  width: 128px;
  height: 42px;
}

.cvlist .loc {
  color: #999999;
  white-space: nowrap;
}

/* ---------- Publications：时间轴 ---------- */
.pub {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.pub::before {
  content: "";
  position: absolute;
  left: 89px;
  top: 4px;
  bottom: -1.25rem;
  width: 2px;
  background: #e8e8e8;
}

.pub:last-child::before {
  bottom: auto;
  height: 16px;
}

.pub::after {
  content: "";
  position: absolute;
  left: 90px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #1772d0;
  transform: translateX(-50%);
}

.pdate {
  width: 76px;
  flex-shrink: 0;
  color: #999999;
  font-size: .92rem;
  white-space: nowrap;
  padding-top: .1rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.vlogo {
  height: 15px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: inline-block;
  vertical-align: -2px;
  margin-right: .3rem;
}

.thumb {
  width: 112px;
  height: 74px;
  object-fit: cover;
  border: 1px solid #e3dfd5;
  border-radius: 3px;
  flex-shrink: 0;
  background: #f4f1ea;
}

.pub .title { font-weight: 700; font-size: .98rem; }
.pub .authors { font-size: .9rem; color: #444444; }
.pub .venue { font-size: .9rem; color: #777777; font-style: italic; }
.pub .paperlinks { font-size: .88rem; margin-top: .1rem; }

.me { font-weight: 700; text-decoration: underline; }

.newsline { font-size: .96rem; color: #333333; }

.milogo {
  height: 20px;
  width: 20px;
  vertical-align: -4px;
  margin-right: .35rem;
  border-radius: 4px;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
  font-size: .82rem;
  color: #999999;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
  .page { flex-direction: column; gap: 2rem; padding-top: 2rem; }
  .side { position: static; width: 100%; max-width: 320px; }
  .portrait { max-width: 210px; }
  .btns { max-width: 260px; }
  .menu a { margin-left: 1rem; }
  .pub { gap: 1.3rem; }
  .thumb { width: 96px; height: 63px; }
  .pdate { width: 66px; font-size: .85rem; }
  .pub::before { left: 75px; }
  .pub::after { left: 76px; }
  .cvlist .logo { padding-right: .6rem; }
  .cvlist .logo img { width: 64px; height: 28px; }
  .cvlist .logo img.sq { width: 28px; margin-right: .2rem; }
}
