/* 添加Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 基础变量定义 - 亮色模式 */
:root {
  --primary-color: #445566;
  --primary-dark: #2c3e50;
  --primary-light: #7f8c8d;
  --secondary-color: #cc7722;
  --secondary-dark: #a85400;
  --secondary-light: #e1a95f;
  --accent-color: #8e44ad;
  --bg-color: #ffffff;
  --text-color: #2c3e50;
  --text-light: #7f8c8d;
  --light-gray: #f5f7fa;
  --mid-gray: #d6dce5;
  --dark-gray: #7f8c8d;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --header-bg: #ffffff;
  --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  --card-bg: #ffffff;
  --footer-bg: #f9fafb;
  --border-color: #eaeff5;
  --hover-color: #f9fafb;
}

/* 暗色模式变量 */
.dark-mode {
  --primary-color: #607d8b;
  --primary-dark: #455a64;
  --primary-light: #90a4ae;
  --secondary-color: #d7a55c;
  --secondary-dark: #b38044;
  --secondary-light: #e6c992;
  --accent-color: #9575cd;
  --bg-color: #121f2f;
  --text-color: #ecf0f1;
  --text-light: #bdc3c7;
  --light-gray: #1e3246;
  --mid-gray: #34495e;
  --dark-gray: #bdc3c7;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  --header-bg: #1e3246;
  --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  --card-bg: #1e3246;
  --footer-bg: #121f2f;
  --border-color: #34495e;
  --hover-color: #1e3246;
}

/* 基础样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  letter-spacing: -0.011em;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--header-bg);
  box-shadow: var(--header-shadow);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 5px 10px;
  border-radius: 5px;
}

.nav-links li a:hover {
  color: var(--primary-color);
  background-color: var(--light-gray);
}

.theme-toggle, .language-toggle {
  cursor: pointer;
}

.theme-toggle i {
  font-size: 1.2rem;
  color: var(--text-color);
  transition: var(--transition);
}

.theme-toggle i:hover {
  color: var(--secondary-color);
  transform: rotate(30deg);
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease;
  background-color: var(--text-color);
}

/* 主要内容区 */
.main-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* 部分样式 */
.section {
  margin: 60px 0;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

/* 关于部分 */
.profile-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
}

.bio-container {
  flex: 1;
  text-align: center;
}

.profile-image-container {
  text-align: center;
  flex: 0 0 430px;
}

.profile-image {
  max-width: 430px;
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.profile-image:hover {
  transform: scale(1.02);
}

.name {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: -0.02em;
}

.chinese-name {
  font-family: 'KaiTi', 'STKaiti', 'SimKai', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--secondary-color);
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 0.15em;
}

.bio {
  margin-bottom: 18px;
  text-align: justify;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* 社交链接 */
.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 25px;
  background-color: var(--light-gray);
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.social-links a i {
  font-size: 1rem;
}

/* 标题样式 */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary-color);
  text-align: center;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 35px;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* 出版物项 */
.publication-item {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 50px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.publication-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.publication-media {
  width: 100%;
  overflow: hidden;
}

.publication-media video {
  width: 100%;
  height: auto;
  display: block;
}

.publication-content {
  padding: 20px;
}

.publication-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
  line-height: 1.4;
}

.publication-authors {
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

.publication-venue {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--dark-gray);
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.publication-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--light-gray);
  border-radius: 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  font-weight: 500;
}

.publication-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.publication-links a i {
  font-size: 1rem;
}

/* 演讲和评审部分 - 全新样式 */
.talks-container, .reviews-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

/* 美化滚动条样式 */
.talks-container::-webkit-scrollbar, .reviews-container::-webkit-scrollbar {
  width: 8px;
}

.talks-container::-webkit-scrollbar-track, .reviews-container::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 10px;
}

.talks-container::-webkit-scrollbar-thumb, .reviews-container::-webkit-scrollbar-thumb {
  background: var(--mid-gray);
  border-radius: 10px;
}

.talks-container::-webkit-scrollbar-thumb:hover, .reviews-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.talk-item, .review-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.talk-item:hover, .review-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.talk-date, .review-date {
  background-color: var(--light-gray);
  color: var(--primary-color);
  font-weight: 600;
  padding: 20px;
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  height: 100%;
}

.talk-content, .review-content {
  padding: 20px;
}

.talk-title {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.talk-links {
  margin-top: 10px;
}

.talk-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.talk-links a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* 页脚 */
.footer {
  background-color: var(--footer-bg);
  padding: 20px 0;
  text-align: center;
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
}

.footer p {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--secondary-color);
}

/* 淡入动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fadeIn {
  animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* 响应式设计 */
@media (min-width: 768px) {
  .profile-container {
    flex-direction: row-reverse;
    align-items: center;
    gap: 60px;
  }
  
  .bio-container {
    flex: 1;
    text-align: left;
  }
  
  .profile-image-container {
    flex: 0 0 430px;
  }
  
 .publication-item {
    flex-direction: row;
  }
  
  .publication-media {
    flex: 0 0 38%;
    max-width: 38%;
  }
  
  .publication-content {
    flex: 0 0 62%;
    max-width: 62%;
  }
}

@media (max-width: 767px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: var(--header-bg);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: 10px 0;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .talk-item, .review-item {
    grid-template-columns: 1fr;
  }
  
  .talk-date, .review-date {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
  }
}

/* 屏幕适应性更强 */
@media (max-width: 480px) {
  .name {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .publication-title {
    font-size: 1rem;
  }
}

/* 打印样式 */
@media print {
  body {
    font-size: 12pt;
    color: #000;
    background-color: #fff;
  }
  
  .header, .footer, .social-links, .hamburger, .theme-toggle, .language-toggle {
    display: none;
  }
  
  .main-container {
    padding: 0;
    margin: 0;
  }
  
  .publication-item, .talk-item, .review-item {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* 固定在角落的主题切换按钮 */
.theme-toggle-fixed {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.theme-toggle-fixed:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.dark-mode .theme-toggle-fixed {
  background-color: var(--secondary-color);
}

.theme-toggle-fixed i {
  font-size: 2rem;
  color: white;
  transition: all 0.4s ease;
}

.theme-toggle-fixed:hover i {
  transform: rotate(45deg);
}

/* 添加脉动动画 */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); }
  100% { transform: scale(1); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); }
}

.theme-toggle-fixed {
  animation: pulse 2s infinite;
}

.theme-toggle-fixed:hover {
  animation: none;
}