/* 现代字体系统 - 使用系统字体栈 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 性能优化 - 关键渲染路径优化 */
* {
  box-sizing: border-box;
}

/* 预加载关键资源 */
body {
  font-display: swap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 图片优化 */
img {
  max-width: 100%;
  height: auto;
}

/* 视频优化 */
video {
  max-width: 100%;
  height: auto;
}

/* 清新科技配色方案 - 现代青色系 */
:root {
  /* 主色调 - 现代青色科技感 */
  --primary-color: #0891b2;
  --primary-hover: #0e7490;
  --primary-light: #06b6d4;
  
  /* 强调色 - 青灰色保持专业感 */
  --accent-color: #64748b;
  --accent-hover: #475569;
  --accent-light: #e0f2f1;
  
  /* 青色系 - 清新科技感 */
  --blue-accent: #06b6d4;
  --blue-light: #ecfeff;
  --blue-hover: #0891b2;
  --blue-shadow: rgba(6, 182, 212, 0.10);
  --blue-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  
  /* 绿色系 - 清新的成功色 */
  --green-accent: #10b981;
  --green-light: #f0fdf4;
  --green-shadow: rgba(16, 185, 129, 0.08);
  
  /* 灰色系 - 柔和科技感 */
  --gray-accent: #6b7280;
  --gray-light: #f8fafc;
  --gray-shadow: rgba(107, 114, 128, 0.06);
  
  /* 文字颜色 - 更高对比度 */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  /* 背景颜色 - 清新白色系 */
  --bg-primary: #ffffff;
  --bg-secondary: #f0fdfa;
  --bg-tertiary: #ecfeff;
  --bg-accent: #f0fdfa;
  
  /* 边框和分割线 - 更淡雅 */
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --border-accent: #e2e8f0;
  
  /* 阴影效果 - 清新科技感 */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03);
  --shadow-md: 0 4px 6px -1px rgb(6 182 212 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(6 182 212 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-colored: 0 4px 14px 0 rgba(6, 182, 212, 0.12);
  
  /* 圆角 - 稍微减小 */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  
  /* 渐变效果 - 清新科技感 */
  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-accent: linear-gradient(135deg, #67e8f9 0%, #22d3ee 100%);
  --gradient-subtle: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
  
  /* 柔和高亮色彩 - 清新黄色系 */
  --highlight-soft: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
  --highlight-bg-soft: #fef9c3;
}

/* 夜间模式配色方案 - 清新科技风格 */
[data-theme="dark"] {
  /* 主色调 - 明亮的青色在暗背景下 */
  --primary-color: #22d3ee;
  --primary-hover: #67e8f9;
  --primary-light: #06b6d4;
  
  /* 强调色 - 温和的青灰色保持专业感 */
  --accent-color: #94a3b8;
  --accent-hover: #cbd5e1;
  --accent-light: #475569;
  
  /* 青色系 - 适应暗色主题 */
  --blue-accent: #22d3ee;
  --blue-light: #164e63;
  --blue-hover: #67e8f9;
  --blue-shadow: rgba(34, 211, 238, 0.15);
  --blue-gradient: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  
  /* 绿色系 - 夜间友好的绿色 */
  --green-accent: #10b981;
  --green-light: #064e3b;
  --green-shadow: rgba(16, 185, 129, 0.08);
  
  /* 灰色系 - 替代紫色 */
  --gray-accent: #9ca3af;
  --gray-light: #1f2937;
  --gray-shadow: rgba(156, 163, 175, 0.08);
  
  /* 文字颜色 - 高对比度但不刺眼 */
  --text-primary: #f9fafb;
  --text-secondary: #e5e7eb;
  --text-muted: #d1d5db;
  --text-light: #9ca3af;
  
  /* 背景颜色 - 深色系带青色调 */
  --bg-primary: #0f1419;
  --bg-secondary: #164e63;
  --bg-tertiary: #155e75;
  --bg-accent: #083344;
  
  /* 边框和分割线 - 暗色系 */
  --border-color: #374151;
  --border-light: #4b5563;
  --border-accent: #6b7280;
  
  /* 阴影效果 - 适应暗色带青色光晕 */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(6 182 212 / 0.15), 0 2px 4px -2px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 10px 15px -3px rgb(6 182 212 / 0.18), 0 4px 6px -4px rgb(0 0 0 / 0.6);
  --shadow-colored: 0 4px 14px 0 rgba(34, 211, 238, 0.20);
  
  /* 渐变效果 - 夜间青色版本 */
  --gradient-primary: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  --gradient-accent: linear-gradient(135deg, #67e8f9 0%, #22d3ee 100%);
  --gradient-subtle: linear-gradient(135deg, #164e63 0%, #155e75 100%);
  
  /* 柔和高亮色彩 - 夜间版本 */
  --highlight-soft: linear-gradient(135deg, #92400e 0%, #d97706 50%, #fbbf24 100%);
  --highlight-bg-soft: rgba(146, 64, 14, 0.25);
}

a {
  color: var(--blue-accent);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

a:focus,
a:hover {
  color: var(--blue-hover);
  text-decoration: none;
  background: var(--blue-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--blue-accent);
  font-weight: 600;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
}

body {
  background: var(--bg-secondary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

strong {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

heading {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

papertitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.4;
}

name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--name-color, var(--text-primary));
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
  position: relative;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.one:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* 项目视频容器样式 - 用于研究项目展示 */
.project-video-container {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.project-video-container:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.project-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease-in-out;
  border-radius: 4px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.project-video-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.project-video-container img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 0;
}

.fade {
  transition: opacity 0.3s ease-in-out;
}

span.highlight {
  position: relative;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0 2px;
  background: transparent;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

span.highlight::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--highlight-soft);
  border-radius: 2px;
  transform: scaleX(0.8);
  transform-origin: center;
  transition: all 0.3s ease;
  z-index: -1;
  opacity: 0.6;
}

span.highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  right: -2px;
  bottom: 0;
  background: var(--highlight-bg-soft);
  opacity: 0;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  z-index: -2;
}

span.highlight:hover::before {
  transform: scaleX(1);
  height: 3px;
  opacity: 0.9;
}

span.highlight:hover::after {
  opacity: 0.7;
}

.page-footer {
  width: 100%;
  height: 50px;
  background: rgb(82, 82, 82);
  text-align: center;
  line-height: 50px;
  color: white;
  font-size: 12px;
}

.button-13 {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-accent);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid var(--blue-light);
  position: relative;
}

.button-13::after {
  content: '→';
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.button-13:hover {
  color: white;
  background: var(--blue-accent);
  border-color: var(--blue-accent);
  text-decoration: none;
}

.button-13:hover::after {
  transform: translateX(2px);
}

/* 页脚样式 */
.footer-info {
  width: 100%;
  margin-top: 48px;
  border-top: 3px solid transparent;
  background: var(--gradient-subtle);
  padding: 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

.footer-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.visitor-map {
  text-align: center;
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
}

.copyright {
  font-weight: 500;
  color: var(--blue-hover);
}

.separator {
  color: var(--text-light);
  font-weight: 300;
}

.last-updated {
  color: var(--text-light);
  font-size: 11px;
}

.footer-info a {
  color: var(--blue-accent);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 1px 3px;
  border-radius: 3px;
}

.footer-info a:hover {
  color: var(--blue-hover);
  background: var(--blue-light);
  text-decoration: none;
}

/* 页脚响应式设计 */
@media (max-width: 768px) {
  .footer-content {
    padding: 16px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
  }
  
  .visitor-map {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 12px;
  }
  
  .footer-bottom {
    font-size: 10px;
    padding: 12px 0;
  }
}
.icon-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 28px;
  width: 100%;
  box-sizing: border-box;
  background: var(--gradient-subtle);
  border-radius: var(--radius-xl);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.icon-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.icon-container a {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  padding: 8px;
  border-radius: var(--radius-md);
}

.icon-container a:hover {
  transform: scale(1.05);
  background: white;
  box-shadow: var(--shadow-sm);
}

.icon-container img {
  height: 40px;
  max-width: 100%;
  vertical-align: middle;
  filter: grayscale(20%);
  transition: filter 0.2s ease;
}

.icon-container a:hover img {
  filter: grayscale(0%);
}


/* --- 响应式优化 (当屏幕宽度小于等于 480px 时生效) --- */
@media (max-width: 480px) {
  .icon-container {
    gap: 15px;             /* 在小屏幕上减小图标间距 */
    padding: 10px;         /* 在小屏幕上减小容器内边距 */
  }
}

.news {
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  height: 180px;
  overflow-y: scroll;
  box-sizing: border-box;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
}

.news::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.news ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: 12px;
  transition: all 0.2s ease;
}

.news li:last-child {
  border-bottom: none;
}

.news li::before {
  content: '•';
  color: var(--blue-accent);
  font-weight: normal;
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.9em;
}

.news li:hover {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding-left: 12px;
  margin: 0 -4px;
}

.news li a {
  color: var(--blue-accent);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 1px 3px;
  border-radius: 3px;
}

.news li a:hover {
  color: var(--blue-hover);
  background: var(--blue-light);
  text-decoration: none;
}

/* News标题样式 */
h2 {
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  border-bottom: 2px solid var(--section-accent);
  padding-bottom: 8px;
}

h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--section-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* 特殊新闻标记样式 */
.newnew {
  background: var(--blue-accent);
  color: white;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8em;
  letter-spacing: 0.02em;
  display: inline-block;
}

/* Misc部分样式 */
.misc-container {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
}

.misc-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.misc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.misc-category {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.misc-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-primary);
  border-color: var(--blue-accent);
}

sub_heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-hover);
  display: block;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--blue-light);
}

.misc-category li {
  list-style: none;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  padding-left: 16px;
  transition: all 0.2s ease;
}

.misc-category li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 12px;
  color: var(--blue-accent);
}

.misc-category li:hover {
  color: var(--text-primary);
  padding-left: 20px;
}

.misc-category a {
  color: var(--blue-accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 1px 3px;
  border-radius: 3px;
}

.misc-category a:hover {
  color: var(--blue-hover);
  background: var(--blue-light);
  text-decoration: none;
}

/* 现代化表格样式 */
table {
  border-collapse: separate;
  border-spacing: 0;
}

/* Research和Projects表格特殊样式 - 更紧凑 */
table tr td {
  padding: 12px 16px;
  vertical-align: top;
}

/* 图片列更紧凑 */
table tr td:first-child {
  padding: 12px;
  width: 18%;
}

/* 内容列更紧凑 */
table tr td:last-child {
  padding: 12px 16px;
  width: 82%;
}

/* 研究项目行样式 */
tr[onmouseout] {
  transition: all 0.2s ease;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* 项目描述段落样式 - 更紧凑 */
tr[onmouseout] p {
  margin: 6px 0;
  line-height: 1.5;
  color: var(--text-secondary);
}

tr[onmouseout] p a {
  color: var(--blue-accent);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 1px 3px;
  border-radius: 3px;
}

tr[onmouseout] p a:hover {
  color: var(--blue-hover);
  background: var(--blue-light);
  text-decoration: none;
}

/* 减少项目之间的间距 */
tr[onmouseout] + tr[onmouseout] {
  margin-top: 4px;
}

tr[onmouseout]:hover {
  background-color: var(--bg-primary);
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Projects部分特殊样式 - 使用highlight黄色系 */
tr[onmouseout][bgcolor="#ffffd0"] {
  background: var(--highlight-bg-soft);
  border-color: #f59e0b;
}

tr[onmouseout][bgcolor="#ffffd0"]:hover {
  background-color: var(--highlight-bg-soft);
  border-color: #d97706;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(245, 158, 11, 0.2);
}

/* 标题样式优化 */
h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 16px 0;
  letter-spacing: -0.025em;
}

/* 子标题样式 */
sub_heading {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}

/* 简约滚动条 */
.news::-webkit-scrollbar {
  width: 6px;
}

.news::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.news::-webkit-scrollbar-thumb {
  background: var(--blue-accent);
  border-radius: var(--radius-sm);
}

.news::-webkit-scrollbar-thumb:hover {
  background: var(--blue-hover);
}

/* 页面加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body {
  animation: fadeInUp 0.8s ease-out;
}

.main-container > table:first-child {
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.news, .misc-container {
  animation: scaleIn 0.6s ease-out 0.4s both;
}

tr[onmouseout] {
  animation: fadeInUp 0.5s ease-out both;
}

tr[onmouseout]:nth-child(1) { animation-delay: 0.1s; }
tr[onmouseout]:nth-child(2) { animation-delay: 0.2s; }
tr[onmouseout]:nth-child(3) { animation-delay: 0.3s; }
tr[onmouseout]:nth-child(4) { animation-delay: 0.4s; }
tr[onmouseout]:nth-child(5) { animation-delay: 0.5s; }

/* 简约日夜切换按钮样式 */
.theme-toggle-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-accent);
}

.theme-toggle-btn:active {
  transform: translateY(0);
}

.theme-icon {
  font-size: 18px;
  position: absolute;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-icon {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.moon-icon {
  transform: rotate(180deg) scale(0);
  opacity: 0;
}

[data-theme="dark"] .sun-icon {
  transform: rotate(-180deg) scale(0);
  opacity: 0;
}

[data-theme="dark"] .moon-icon {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

/* 夜间模式下的简约按钮样式 */
[data-theme="dark"] .theme-toggle-btn {
  background: var(--bg-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-accent);
}

/* 主题颜色选择器样式 - 已隐藏 */
.theme-color-selector {
  display: none;
}

.theme-selector-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid var(--border-color);
  font-size: 20px;
  color: var(--text-secondary);
}

.theme-selector-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-colored);
  border-color: var(--blue-accent);
  color: var(--blue-accent);
}

.theme-options {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 12px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

.theme-options.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: left;
}

.theme-option:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.theme-option.active {
  background: var(--blue-light);
  color: var(--blue-accent);
  font-weight: 600;
}

.theme-preview {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-option.active .theme-preview {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 2px var(--blue-light), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .theme-toggle-container {
    top: 16px;
    right: 16px;
  }
  
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }
  
  .theme-icon {
    font-size: 16px;
  }
  
  .theme-options {
    right: -8px;
    min-width: 180px;
    padding: 8px;
  }
  
  .theme-option {
    padding: 6px 8px;
    font-size: 13px;
    gap: 8px;
  }
  
  .theme-preview {
    width: 14px;
    height: 14px;
  }
}

/* 主题切换动画 */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 夜间模式特殊样式增强 */
[data-theme="dark"] {
  /* 夜间模式下的图片滤镜 */
  img {
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.3s ease;
  }
  
  /* 暗色模式下所有按钮的悬停效果优化 */
  
  /* Project 按钮 - 金黄色主题 */
  .project-icon:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.15) 100%) !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2) !important;
  }
  
  .project-icon:hover i,
  .project-icon:hover span {
    color: #fbbf24 !important;
  }
  
  /* Paper 按钮 - 温和红色主题 */
  .paper-icon.paper-icon:hover {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.1) 0%, rgba(239, 68, 68, 0.15) 100%) !important;
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.2) !important;
  }
  
  .paper-icon.paper-icon:hover i,
  .paper-icon.paper-icon:hover span {
    color: #f87171 !important;
  }
  
  /* Code 按钮 - 温和绿色主题 */
  .code-icon:hover {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.1) 0%, rgba(16, 185, 129, 0.15) 100%) !important;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.2) !important;
  }
  
  .code-icon:hover i,
  .code-icon:hover span {
    color: #34d399 !important;
  }
  
  /* ArXiv 按钮 - 温和橙色主题 */
  .arxiv-icon:hover {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(249, 115, 22, 0.15) 100%) !important;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.2) !important;
  }
  
  .arxiv-icon:hover i,
  .arxiv-icon:hover span {
    color: #fb923c !important;
  }
  
  /* HuggingFace 按钮 - 温和紫色主题 */
  .hf-icon:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(147, 51, 234, 0.15) 100%) !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2) !important;
  }
  
  .hf-icon:hover i,
  .hf-icon:hover span {
    color: #a855f7 !important;
  }
  
  /* Poster 按钮 - 温和青色主题 */
  .poster-icon:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(14, 165, 233, 0.15) 100%) !important;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2) !important;
  }
  
  .poster-icon:hover i,
  .poster-icon:hover span {
    color: #38bdf8 !important;
  }
  
  img:hover {
    filter: brightness(1) contrast(1);
  }
  
  /* 夜间模式下的视频滤镜 */
  video {
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.3s ease;
  }
  
  /* 夜间模式下保持简洁的样式 */
  a:hover {
    background: var(--blue-light);
  }
  
  /* 夜间模式下的按钮样式 */
  .button-13:hover {
    background: var(--blue-accent);
    color: white;
  }
  
  /* 夜间模式下的项目卡片样式 */
  tr[onmouseout]:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--blue-accent);
  }
  
  /* 夜间模式下的特殊项目样式 - 黄色系 */
  tr[onmouseout][bgcolor="#ffffd0"] {
    background: var(--highlight-bg-soft);
    border-color: #d97706;
  }
  
  tr[onmouseout][bgcolor="#ffffd0"]:hover {
    background-color: var(--highlight-bg-soft);
    border-color: #f59e0b;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(217, 119, 6, 0.3);
  }
  
  /* 确保所有文字在暗色背景下有足够对比度 */
  strong {
    color: var(--text-primary);
  }
  
  /* 确保子标题在暗色模式下可见 */
  sub_heading {
    color: var(--blue-accent) !important;
  }
  
  /* 优化新闻列表的边框 */
  .news li {
    border-bottom-color: var(--border-color);
  }
  
  /* 优化Misc分类的边框 */
  .misc-category {
    border-color: var(--border-color);
  }
  
  sub_heading {
    border-bottom-color: var(--border-color);
  }
  
  /* 确保所有图标在暗色模式下可见 */
  .contact-icon i,
  .paper-icon i {
    color: var(--text-secondary);
  }
  
  /* 优化悬停状态的文字颜色 */
  .misc-category li:hover {
    color: var(--text-primary) !important;
  }
  
  /* 确保页脚文字在暗色模式下可读 */
  .footer-bottom {
    color: var(--text-muted);
    border-top-color: var(--border-color);
  }
  
  .copyright {
    color: var(--blue-accent) !important;
  }
  
  .separator,
  .last-updated {
    color: var(--text-light) !important;
  }
  
  /* 确保新闻列表文字在暗色模式下可读 */
  .news li {
    color: var(--text-secondary);
  }
  
  .news li strong {
    color: var(--text-primary);
  }
  
  /* 优化表格中的文字对比度 */
  table tr td {
    color: var(--text-secondary);
  }
  
  /* 确保段落文字在暗色模式下清晰 */
  p {
    color: var(--text-secondary);
  }
  
  /* 优化heading元素 */
  heading {
    color: var(--text-primary) !important;
  }
  
  /* 确保所有链接在暗色模式下可见 - 温和舒适的样式 */
  a {
    color: var(--blue-accent);
    font-weight: 500;
  }
  
  a:hover, a:focus {
    color: var(--blue-hover);
    background: var(--blue-light);
    font-weight: 600;
    border-bottom-color: var(--blue-accent);
  }
  
  /* 优化papertitle在暗色模式下的显示 */
  papertitle {
    color: var(--text-primary) !important;
  }
  
  papertitle a {
    color: var(--blue-hover);
  }
  
  papertitle a:hover {
    color: var(--text-primary);
    background: var(--blue-accent);
  }
}

/* 夜间模式切换时的页面闪烁防止 */
html {
  color-scheme: light dark;
}

[data-theme="dark"] html {
  color-scheme: dark;
}

/* 为夜间模式优化的高亮样式 */
[data-theme="dark"] span.highlight::before {
  background: var(--highlight-soft);
  opacity: 0.7;
}

[data-theme="dark"] span.highlight:hover::before {
  background: var(--highlight-soft);
  opacity: 0.9;
}

[data-theme="dark"] span.highlight::after {
  background: var(--highlight-bg-soft);
}

/* 个人简介区域优化 - 使用highlight黄色系 */
tr[bgcolor="#ffffd0"] {
  background: var(--highlight-bg-soft) !important;
  border-radius: var(--radius-lg);
  margin: 12px 0;
  box-shadow: var(--shadow-md);
  border: 2px solid #f59e0b;
}

/* 链接悬停效果增强 - 排除图标链接 */
a[href^="http"]:not([href*="bigcileng.github.io"]):not(.contact-icon):not(.paper-icon):after {
  content: "↗";
  font-size: 0.8em;
  margin-left: 2px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

a[href^="http"]:not([href*="bigcileng.github.io"]):not(.contact-icon):not(.paper-icon):hover:after {
  opacity: 1;
}

/* 论文标题特殊样式 */
papertitle {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: block;
}

papertitle a {
  color: var(--blue-hover);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 1px 3px;
  border-radius: 3px;
}

papertitle a:hover {
  color: white;
  background: var(--blue-accent);
  text-decoration: none;
}

papertitle:before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue-accent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

tr[onmouseout]:hover papertitle:before {
  opacity: 1;
}

/* 主容器响应式设计 */
.main-container {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box; 
}

/* 联系图标样式 */
.contact-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
}

.contact-icon {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 40px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
  border: none;
  padding: 0 12px;
  gap: 8px;
}

.contact-icon i {
  font-size: 20px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: block;
}

.contact-icon span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
}

.contact-icon:hover {
  transform: translateY(-3px);
  text-decoration: none;
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
  border-radius: 20px;
}

.contact-icon:hover i {
  transform: scale(1.1);
}

.contact-icon:hover span {
  opacity: 1;
  transform: translateX(0);
}

.email-icon:hover {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}
.email-icon:hover i {
  color: #dc2626;
}

.scholar-icon:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.scholar-icon:hover i {
  color: #2563eb;
}

.github-icon:hover {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}
.github-icon:hover i {
  color: #374151;
}

.zhihu-icon:hover {
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
}
.zhihu-icon:hover i {
  color: #0066ff;
}
.zhihu-icon:hover span {
  color: #0066ff;
}

.x-custom-icon {
  font-size: 20px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: block;
  font-weight: bold;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  text-align: center;
  line-height: 1;
}

.x-icon:hover {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}
.x-icon:hover .x-custom-icon {
  color: #000000;
  transform: scale(1.1);
}

/* 论文链接图标样式 */
.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0;
}

.paper-icon {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 32px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  position: relative;
  padding: 0 8px;
  gap: 6px;
}

.paper-icon i {
  font-size: 16px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: block;
}

.paper-icon span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
}

.paper-icon:hover {
  transform: translateY(-2px);
  text-decoration: none;
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
}

.paper-icon:hover i {
  transform: scale(1.1);
}

.paper-icon:hover span {
  opacity: 1;
  transform: translateX(0);
}

.project-icon:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.project-icon:hover i {
  color: #2563eb;
}
.project-icon:hover span {
  color: #2563eb;
}

.paper-icon.paper-icon:hover {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}
.paper-icon.paper-icon:hover i {
  color: #dc2626;
}

.code-icon:hover {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}
.code-icon:hover i {
  color: #374151;
}

.poster-icon:hover {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}
.poster-icon:hover i {
  color: var(--purple-accent);
}

.arxiv-icon:hover {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}
.arxiv-icon:hover i {
  color: #b31b1b;
}

.hf-icon:hover {
  background: linear-gradient(135deg, #fef3e2 0%, #fed7aa 100%);
}
.hf-icon:hover i {
  color: #ea580c;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .main-container {
    padding: 0 15px;
  }
  
  name {
    font-size: 28px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  .one {
    width: 120px;
    height: 120px;
  }
  
  .two {
    width: 120px;
    height: 120px;
  }
  
  .icon-container {
    gap: 20px;
    padding: 15px;
  }
  
  .icon-container img {
    height: 35px;
  }
  
  .contact-icons {
    gap: 20px;
  }
  
  .contact-icon {
    height: 36px;
    padding: 0 10px;
    gap: 6px;
  }
  
  .contact-icon i {
    font-size: 18px;
  }
  
  .contact-icon span {
    font-size: 11px;
  }
  
  .paper-links {
    gap: 12px;
  }
  
  .paper-icon {
    height: 28px;
    padding: 0 6px;
    gap: 4px;
  }
  
  .paper-icon i {
    font-size: 14px;
  }
  
  .paper-icon span {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 0 10px;
  }
  
  .icon-container {
    gap: 15px;
    padding: 10px;
  }
  
  .icon-container img {
    height: 30px;
  }
  
  .news {
    padding: 16px;
    height: 160px;
  }
  
  .misc-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
  }
  
  .misc-category {
    padding: 12px;
  }
  
  .contact-icons {
    gap: 16px;
  }
  
  .contact-icon {
    height: 32px;
    padding: 0 8px;
    gap: 4px;
  }
  
  .contact-icon i {
    font-size: 16px;
  }
  
  .contact-icon span {
    font-size: 10px;
  }
  
  .paper-links {
    justify-content: center;
    gap: 10px;
  }
  
  .paper-icon {
    height: 24px;
    padding: 0 6px;
    gap: 3px;
  }
  
  .paper-icon i {
    font-size: 12px;
  }
  
  .paper-icon span {
    font-size: 8px;
  }
}

