/* 基础样式保持不变，添加新的样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background: linear-gradient(135deg, #202c5e 0%, #9a88ac 100%);
min-height: 100vh;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background: white;
margin-top: 20px;
margin-bottom: 20px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Header样式 */
.header {
text-align: center;
padding: 40px 0;
background: linear-gradient(135deg, #f093fb 0%, #6b20ff 100%);
border-radius: 15px;
margin-bottom: 30px;
color: white;
}

.profile-img {
width: 100px;
height: 100px;
border-radius: 50%;
background: rgba(255,255,255,0.2);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
font-size: 2em;
font-weight: bold;
border: 3px solid rgba(255,255,255,0.3);
}

.header h1 {
font-size: 2.5em;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
font-size: 1.2em;
margin-bottom: 10px;
opacity: 0.9;
}

.current-position {
font-size: 1.1em;
font-weight: 500;
margin-bottom: 5px;
}

.location-info {
opacity: 0.8;
}

/* 导航标签 */
.nav-tabs {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin-bottom: 30px;
background: #f8f9fa;
padding: 10px;
border-radius: 10px;
}

.nav-tab {
flex: 1;
min-width: 120px;
padding: 12px 20px;
border: none;
background: transparent;
cursor: pointer;
border-radius: 8px;
transition: all 0.3s ease;
font-weight: 500;
}

.nav-tab:hover {
background: #e9ecef;
transform: translateY(-2px);
}

.nav-tab.active {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 标签页内容 */
.tab-content {
display: none;
}

.tab-content.active {
display: block;
}

/* 卡片样式 */
.card {
background: white;
padding: 25px;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
margin-bottom: 20px;
border: 1px solid #e9ecef;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card h2 {
color: #2c3e50;
margin-bottom: 20px;
font-size: 1.5em;
border-bottom: 2px solid #3498db;
padding-bottom: 10px;
}

.card h3 {
color: #34495e;
margin-bottom: 10px;
}

.card h4 {
color: #7f8c8d;
margin-bottom: 5px;
}

/* 布局样式 */
.main-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-bottom: 20px;
}

.full-width {
grid-column: 1 / -1;
}

/* 技能网格 */
.skills-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
margin-top: 20px;
}

.skill-item {
background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
color: white;
padding: 15px;
border-radius: 8px;
text-align: center;
font-weight: 500;
transition: transform 0.3s ease;
}

.skill-item:hover {
transform: translateY(-3px);
}

/* 研究兴趣详细链接 */
.interest-detail-link {
grid-column: 1 / -1;
text-align: center;
margin-top: 20px;
}

.interest-detail-link .project-link {
display: inline-block;
background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
color: white;
padding: 12px 24px;
border-radius: 25px;
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
}

.interest-detail-link .project-link:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(232, 67, 147, 0.4);
}

/* 教育项目样式 */
.education-item, .experience-item {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
margin-bottom: 15px;
border-left: 4px solid #3498db;
}

.education-item h3, .experience-item h3 {
color: #2c3e50;
margin-bottom: 10px;
}

.date {
color: #7f8c8d;
font-style: italic;
font-weight: 500;
}

/* 导师信息样式 */
.supervisor-info {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}

.supervisor-item {
background: #f8f9fa;
padding: 15px;
border-radius: 8px;
border-left: 4px solid #e74c3c;
}

/* 出版物样式 */
.publication-section {
margin-bottom: 30px;
}

.publication-section h3 {
color: #2c3e50;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 1px solid #bdc3c7;
}

.publication-item {
background: #f8f9fa;
padding: 15px;
border-radius: 8px;
margin-bottom: 10px;
border-left: 4px solid #9b59b6;
}

.publication-item p {
margin-bottom: 5px;
}

.publication-item:last-child {
margin-bottom: 0;
}

/* 项目样式 */
.projects-grid {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}

.project-section-title {
grid-column: 1 / -1;
margin: 20px 0 10px 0;
}

.project-section-title h3 {
color: #2c3e50;
font-size: 1.3em;
border-bottom: 2px solid #e74c3c;
padding-bottom: 8px;
}

.project-item {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
border-left: 4px solid #00b894;
transition: transform 0.3s ease;
}

.project-item:hover {
transform: translateY(-3px);
}

.project-item h4 {
color: #2c3e50;
margin-bottom: 10px;
}

.project-link {
display: inline-block;
background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
color: white;
padding: 8px 16px;
border-radius: 20px;
text-decoration: none;
font-size: 0.9em;
font-weight: 500;
margin-top: 10px;
transition: all 0.3s ease;
}

.project-link:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

/* 联系方式样式 */
.contact-info {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}

.contact-item {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
border-left: 4px solid #f39c12;
}

.contact-item strong {
color: #2c3e50;
font-size: 1.1em;
}

/* 多个email地址的样式 */
.emails-list {
margin-top: 10px;
}

.email-item {
margin-bottom: 8px;
padding: 8px 0;
border-bottom: 1px solid #f0f0f0;
}

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

.email-type {
font-weight: 600;
color: #3498db;
margin-right: 8px;
display: inline-block;
min-width: 70px;
}

.email-item a {
color: #2c3e50;
text-decoration: none;
font-weight: 500;
}

.email-item a:hover {
color: #3498db;
text-decoration: underline;
}

.email-desc {
color: #7f8c8d;
font-size: 0.9em;
font-style: italic;
margin-left: 5px;
}

/* 社交媒体和学术档案链接样式优化 */
.academic-profile-links,
.social-media-links {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 10px;
margin-top: 15px;
}

.academic-profile-links p,
.social-media-links p {
margin: 0;
}

/* 占位符样式 */
.placeholder {
color: #7f8c8d;
font-style: italic;
text-align: center;
padding: 20px;
background: #f8f9fa;
border-radius: 8px;
border: 2px dashed #bdc3c7;
}

/* 加载指示器 */
.loading-indicator {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.9);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 1000;
transition: opacity 0.3s ease;
}

.loading-indicator.hidden {
opacity: 0;
}

.spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid #3498db;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 20px;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* 页脚样式 */
.footer {
text-align: center;
padding: 20px 0;
margin-top: 40px;
border-top: 1px solid #e9ecef;
color: #7f8c8d;
}

/* 响应式设计 */
@media (max-width: 768px) {
.container {
  margin: 10px;
  padding: 15px;
}

.header h1 {
  font-size: 2em;
}

.main-content {
  grid-template-columns: 1fr;
}

.nav-tabs {
  flex-direction: column;
}

.nav-tab {
  min-width: auto;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.supervisor-info {
  grid-template-columns: 1fr;
}

.email-type {
  display: block;
  margin-bottom: 3px;
  min-width: auto;
}

.email-item {
  padding: 10px 0;
}

.academic-profile-links,
.social-media-links {
  grid-template-columns: 1fr;
}

.contact-info {
  grid-template-columns: 1fr;
}
}

@media (max-width: 480px) {
.header {
  padding: 20px 0;
}

.header h1 {
  font-size: 1.5em;
}

.profile-img {
  width: 80px;
  height: 80px;
  font-size: 1.5em;
}

.card {
  padding: 15px;
}

.skills-grid {
  grid-template-columns: 1fr;
}
}

/* 打印样式 */
@media print {
body {
  background: white;
}

.container {
  box-shadow: none;
  margin: 0;
}

.nav-tabs {
  display: none;
}

.tab-content {
  display: block !important;
}

.loading-indicator {
  display: none;
}

.card:hover {
  transform: none;
}

.project-link,
.interest-detail-link .project-link {
  background: #333;
  color: white;
}
}
 
/* 类型标签样式 */
.item-type {
display: inline-block;
padding: 4px 8px;
border-radius: 12px;
font-size: 0.8em;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.item-type.notes {
background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
color: white;
}

.item-type.presentation {
background: linear-gradient(135deg, #6f09e3 0%, #c13cff 100%);
color: white;
}

/* PDF链接样式优化 */
.publication-item .project-link {
margin-top: 8px;
font-size: 0.9em;
}

/* 项目折叠样式 */
.project-section {
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.project-section-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  user-select: none;
}

.project-section-header:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.project-section-header h3 {
  margin: 0;
  color: white;
  border: none;
  padding: 0;
  font-size: 1.2em;
}

.collapse-icon {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.collapse-icon.collapsed {
  transform: rotate(-90deg);
}

.project-section-content {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.project-section-content.collapsed {
  max-height: 0;
}

.project-items {
  padding: 20px;
}

.project-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #00b894;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.project-item:last-child {
  margin-bottom: 0;
}

/* 项目元数据样式 */
.project-meta {
  display: flex;
  gap: 15px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.project-year, .project-status {
  background: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85em;
  font-weight: 500;
}

.project-status {
  background: #27ae60;
}

/* 技术标签样式 */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.tech-tag {
  background: #e74c3c;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
}

/* 项目特性列表样式 */
.project-features {
  margin: 10px 0;
  padding-left: 20px;
}

.project-features li {
  margin-bottom: 5px;
  color: #555;
}

/* 项目结果样式 */
.project-result {
  background: #d5e8d4;
  padding: 10px;
  border-radius: 5px;
  border-left: 3px solid #27ae60;
  margin: 10px 0;
}

/* 项目链接样式 */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
