/* =========================
   全局基础设置
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #222;
  min-height: 100vh;
  position: relative;
  background: #f5f5f5;
}

/* 背景图片：固定在页面底层，并进行虚化处理 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/assets/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px);
  transform: scale(1.04);
  z-index: 0;
  pointer-events: none;
}

/* 背景图片上的浅色遮罩：避免两侧背景过于抢眼 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  z-index: 1;
  pointer-events: none;
}

a {
  color: #0645ad;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}


/* =========================
   页面主容器
========================= */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 2;
}


/* =========================
   顶部个人信息区域
========================= */

.site-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px;
  margin-bottom: 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.header-text h1 {
  margin: 0 0 8px;
  font-size: 2.1rem;
}

.english-name {
  font-size: 1.35rem;
  font-weight: 500;
  color: #444;
  margin-left: 12px;
}

.header-text p {
  margin: 4px 0;
}

/* 顶部中英对照的研究方向/身份信息 */
.header-tagline {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0.25rem 0;
  color: #222;
}

.header-tagline.zh-line {
  font-size: 1.25rem;
  font-weight: 500;
  color: #222;
}


/* =========================
   导航栏
========================= */

.nav {
  margin: 0 0 28px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.nav a {
  display: inline-block;
  margin-right: 18px;
  color: #0645ad;
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  text-decoration: underline;
}

/* 如果以后恢复语言切换按钮，可以继续用这个类 */
.language-switch {
  float: right;
}


/* =========================
   通用卡片与标题
========================= */

.card {
  background: #fff;
  color: #222;
  padding: 28px 32px;
  margin-bottom: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

h2 {
  margin-top: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

h3 {
  color: #222;
}


/* =========================
   About Me / Profile 简介区域
========================= */

.bilingual-profile h2 {
  margin-bottom: 1rem;
}

.bilingual-profile p {
  margin: 6px 0;
}

.profile-intro p {
  font-size: 1.18rem;
  line-height: 1.7;
  margin: 0.3rem 0;
  color: #222;
}

/* 中文辅助行 */
.zh-line {
  color: #555;
  font-size: 0.95rem;
}


/* =========================
   研究关键词标签
========================= */

.research-keywords {
  margin-top: 1.5rem;
}

.research-keywords h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.research-keywords ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.research-keywords li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f2f2f2;
  color: #222;
  font-size: 0.98rem;
}


/* =========================
   Publications 研究成果
   使用紧凑参考文献格式
========================= */

#publications h2 {
  margin-bottom: 1rem;
}

#publications h3 {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 600;
}

#publications h3:first-of-type {
  margin-top: 12px;
}

/* 紧凑型参考文献列表 */
.bibliography {
  margin: 0 0 26px 0;
  padding-left: 1.6em;
}

.bibliography li {
  margin-bottom: 10px;
  padding-left: 0.2em;
  line-height: 1.75;
}

.bibliography li::marker {
  font-weight: 500;
}

/* 原题、日文题目等辅助信息 */
.original-title {
  font-weight: 400;
  color: #666;
}

/* 文献列表中突出显示本人姓名 */
.my-name {
  font-weight: 700;
}


/* =========================
   Education 教育经历
========================= */

.education-item {
  margin-bottom: 1.4rem;
}

.education-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.education-heading h3 {
  margin: 0;
  font-size: 1.17em;
  font-weight: 600;
}

.education-year {
  font-size: 1.17em;
  font-weight: 600;
  white-space: nowrap;
}

.education-item ul {
  margin-top: 0.3rem;
}


/* =========================
   Contact 联系方式与图标
========================= */

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 4px 0;
}

.contact-icon {
  width: 1.05em;
  height: 1.05em;
  object-fit: contain;
  flex-shrink: 0;
}


/* =========================
   Footer 页脚
========================= */

.footer {
  margin-top: 40px;
  color: #444;
  font-size: 0.9rem;
  text-align: center;
}


/* =========================
   移动端适配
========================= */

@media (max-width: 700px) {
  .container {
    padding: 28px 16px 64px;
  }

  .site-header {
    flex-direction: column;
    text-align: center;
    padding: 28px 22px;
  }

  .profile-photo {
    width: 135px;
    height: 135px;
  }

  .header-text h1 {
    font-size: 1.9rem;
  }

  .english-name {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .nav {
    padding: 12px 16px;
  }

  .nav a {
    margin-right: 14px;
    margin-bottom: 8px;
  }

  .language-switch {
    float: none;
    display: block;
    margin-top: 10px;
  }

  .card {
    padding: 24px 22px;
  }

  .education-heading {
    flex-direction: column;
    gap: 0.1rem;
  }

  .bibliography {
    padding-left: 1.25em;
  }

  .bibliography li {
    line-height: 1.65;
  }
}
