:root {
  --primary-color: #c62828;
  --secondary-color: #f44336;
  --text-color: #333;
  --background-color: #f5f5f5;
  --white: #ffffff;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background-color: var(--primary-color);
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
  color: var(--white);
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color var(--transition-speed);
}

nav ul li a:hover {
  color: #ffcdd2;
}

.hero {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-in-out;
}

.hero p {
  font-size: 1.4rem;
  animation: fadeIn 1.5s ease-in-out;
}

footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-section {
  margin: 40px 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.profile-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-image img {
  width: 100%;
  height: auto;
  display: block;
}

.profile-info h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
}

.info-item {
  margin: 15px 0;
  padding: 15px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.label {
  font-weight: bold;
  color: var(--primary-color);
  margin-right: 10px;
}

.value {
  color: var(--text-color);
}

.bio p {
  margin: 20px 0;
  line-height: 1.8;
}

.education-section {
  margin: 40px 0;
}

.education-section h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  right: -20px;
  top: 20px;
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-icon {
  left: -20px;
}

.timeline-content {
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.duration {
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 15px;
}

.achievements {
  list-style: none;
  padding-left: 0;
}

.achievements li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

.achievements li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.course-list {
  display: grid;
  gap: 10px;
}

.course-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-item i {
  color: var(--primary-color);
}

.honors-section {
  margin: 40px 0;
}

.honors-section h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

.honors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

.honor-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.honor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.honor-card .icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.honor-card h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 15px;
}

.honor-card .date {
  color: var(--secondary-color);
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

.honor-card p {
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .honors-grid {
    grid-template-columns: 1fr;
  }
  
  .honor-card {
    padding: 20px;
  }
}

.contact-section {
  margin: 40px 0;
}

.contact-section h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 0 auto 60px;
  max-width: 800px;
}

.contact-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contact-card .icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.contact-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-card p {
  color: var(--text-color);
  font-size: 1.1rem;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.btn:hover {
  background: var(--secondary-color);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .timeline-icon {
    left: 0;
    right: auto;
  }
}
