/* 全局重置：移除所有元素的内外边距，并将盒模型设置为border-box */
/* border-box模型让元素的宽度包含padding和border，布局更直观 */
* {
  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, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  position: relative;
  overflow-x: hidden;
}

/* Navigation Styles */
.navigation {
  width: 250px;
  background: #2c3e50;
  padding: 2rem 0;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .navigation {
    transform: translateX(-100%);
    width: auto;
    position: fixed;
    z-index: 1000;
    height: 100%; /* 修改高度为自适应内容 */
    left: 0;
    top: 0;
  }
  
  .navigation.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 1rem;
    /* 移除为导航栏预留的空间 */
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2001;
    background-color: #000 !important;
    color: #fff !important;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
  }
}

.navigation ul {
  list-style: none;
}

.navigation li {
  margin: 0.5rem 0;
}

.nav-link {
  display: block;
  padding: 1rem 2rem;
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  background: #34495e;
  border-left-color: #3498db;
  color: #3498db;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 250px;
  padding: 2rem;
  width: calc(100% - 250px);
  max-width: 100%;
  box-sizing: border-box;
}

/* 添加菜单按钮样式 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: fixed; /* 固定在窗口右上角 */
    top: 1rem;
    right: 1rem;
    z-index: 2001; /* 保证高于导航栏 */
  }
}

.section {
  display: none;
  animation: fadeIn 0.5s ease-in;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title i {
  color: #3498db;
}

/* Profile Styles */
.profile-container {
  max-width: 800px;
}

.profile-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
}

.profile-image {
  flex-shrink: 0;
}

.profile-pic {
  width: 183px;
  height: 266px;
  border-radius: 0;
  object-fit: cover;
  border: 5px solid #3857b6;
}

.profile-info h1 {
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.profile-info h2 {
  font-size: 1.5rem;
  color: #7f8c8d;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.1rem;
  color: #555;
  font-style: italic;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item i {
  color: #3498db;
  width: 20px;
}

.about-section h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Education Styles */
.education-timeline {
  position: relative;
  padding-left: 2rem;
}

.education-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #3498db;
}

.education-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.education-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0;
  width: 12px;
  height: 12px;
  background: #3498db;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #3498db;
}

.education-date {
  font-weight: bold;
  color: #3498db;
  margin-bottom: 0.5rem;
}

.education-content h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.education-content h4 {
  color: #7f8c8d;
  margin-bottom: 0.5rem;
}

.gpa {
  font-weight: bold;
  color: #27ae60;
  margin-bottom: 1rem;
}

.coursework {
  list-style: none;
  margin-bottom: 1rem;
}

.coursework li {
  padding: 0.25rem 0;
  color: #555;
}

.coursework li::before {
  content: "▸";
  color: #3498db;
  margin-right: 0.5rem;
}

.achievements {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.achievement-badge {
  background: #3498db;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

.certifications {
  margin-top: 3rem;
}

.certifications h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.cert-item i {
  font-size: 1.5rem;
  color: #3498db;
}

/* Skills Styles */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  border-top: 4px solid #3498db;
}

.skill-category h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.skill-item {
  margin-bottom: 1rem;
}

.skill-name {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}

.skill-bar {
  height: 8px;
  background: #ecf0f1;
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: #3498db;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.soft-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.soft-skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.soft-skill i {
  font-size: 2rem;
  color: #3498db;
  margin-bottom: 0.5rem;
}

/* Research Styles */
.research-timeline {
  position: relative;
  padding-left: 2rem;
}

.research-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e74c3c;
}

.research-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.research-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0;
  width: 12px;
  height: 12px;
  background: #e74c3c;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #e74c3c;
}

.research-date {
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 0.5rem;
}

.research-content h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.research-content h4 {
  color: #7f8c8d;
  margin-bottom: 0.25rem;
}

.research-role {
  font-style: italic;
  color: #e74c3c;
  margin-bottom: 0.5rem;
}

.research-supervisor {
  color: #3498db;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.research-description {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.research-highlights h5 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.research-highlights ul {
  margin-bottom: 1rem;
}

.research-highlights li {
  color: #555;
  margin-bottom: 0.25rem;
}

.research-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.research-tag {
  background: #e74c3c;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

.publications {
  margin-top: 3rem;
}

.publications h3 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e74c3c;
}

.publication-category {
  font-size: 1.4rem;
  color: #2c3e50;
  margin: 2.5rem 0 1.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  background: #f8f9fa;
}

.publication-category::before {
  content: '';
  width: 30px;
  height: 30px;
  margin-right: 12px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* 为每种类型添加不同的图标和颜色 */
.publication-category:nth-of-type(1)::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-3v7h-2v-7H7V7h8v2z"/></svg>');
}

.publication-category:nth-of-type(2)::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23298FE5"><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>');
}

.publication-category:nth-of-type(3)::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2327ae60"><path d="M12 2L1 9l11 7 9-5.7V17h2V9L12 2zm0 4.3L5.5 9 12 12.7 18.5 9 12 6.3z"/></svg>');
}

.publication-list {
  margin-bottom: 2.5rem;
  padding-left: 1rem;
}

.publication-item {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  border-left: 4px solid;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
  padding-left: 45px;  /* 为编号留出空间 */
}

.pub-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    padding: 2px 5px;
    background-color: #f5f5f5;
    border-radius: 3px;
}

/* 为不同类型的文章设置不同的边框颜色 */
.publication-category:nth-of-type(1) + .publication-list .publication-item {
  border-left-color: #e74c3c;
}

.publication-category:nth-of-type(2) + .publication-list .publication-item {
  border-left-color: #298FE5;
}

.publication-category:nth-of-type(3) + .publication-list .publication-item {
  border-left-color: #27ae60;
}

.publication-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.publication-item h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

.publication-item p {
  color: #626262;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.citation-count {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  box-shadow: 0 2px 4px rgba(39, 174, 96, 0.2);
  transition: transform 0.2s ease;
}

.citation-count:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(39, 174, 96, 0.3);
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .navigation {
    width: 100%;
    height: auto; /* 修改高度为自适应内容 */
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
  }

  .navigation ul {
    display: flex;
    flex-direction: column; /* 纵向排列 */
    overflow-x: unset;      /* 取消横向滚动 */
    width: 100%;
  }

  .navigation li {
    flex-shrink: 0;
    width: 100%;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 1rem;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

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

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

  .section-title {
    font-size: 2rem;
  }
}

/* Evaluation Styles */
.evaluation-grid {
  display: grid;
  gap: 2rem;
}

.strength-section,
.growth-section,
.goals-section,
.values-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
}

.strength-section {
  border-top: 4px solid #27ae60;
}

.growth-section {
  border-top: 4px solid #f39c12;
}

.goals-section {
  border-top: 4px solid #9b59b6;
}

.values-section {
  border-top: 4px solid #e74c3c;
}

.strength-section h3,
.growth-section h3,
.goals-section h3,
.values-section h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.strength-items {
  display: grid;
  gap: 1.5rem;
}

.strength-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.strength-icon {
  background: #27ae60;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.strength-content h4 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.strength-content p {
  color: #555;
  line-height: 1.6;
}

.growth-items {
  display: grid;
  gap: 1rem;
}

.growth-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #f39c12;
}

.growth-item h4 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.growth-item p {
  color: #555;
  margin-bottom: 0.5rem;
}

.progress-indicator span {
  background: #f39c12;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

.goals-timeline {
  display: grid;
  gap: 1.5rem;
}

.goal-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.goal-timeframe {
  background: #9b59b6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.goal-content {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  flex: 1;
}

.goal-content h4 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.goal-content p {
  color: #555;
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.value-item i {
  font-size: 2.5rem;
  color: #e74c3c;
  margin-bottom: 0.5rem;
}

.value-item span {
  font-weight: 500;
  color: #2c3e50;
}

/* Language Toggle Button */
.lang-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .lang-toggle {
    top: 1rem;
    right: 4rem; /* 为菜单按钮留出空间 */
  }
}

/* Content Sections Enhancement */
.section {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* 优化过渡效果 */
.section {
  transition: all 0.3s ease-in-out;
}

/* 内容区块样式 */
.content-block {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

/* 响应式图片 */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 响应式布局优化 */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .content-block {
    padding: 1rem;
  }
}

/* 添加滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .navigation {
    width: auto;
    height: 100%; /* 修改高度为自适应内容 */
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
  }

  .navigation ul {
    display: flex;
    flex-direction: column; /* 纵向排列 */
    overflow-x: unset;      /* 取消横向滚动 */
    width: 100%;
  }

  .navigation li {
    flex-shrink: 0;
    width: 100%;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 1rem;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

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

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

  .section-title {
    font-size: 2rem;
  }
}

.journal-name {
  font-style: italic;
  color: #555;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
