body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

header {
  background-color: #8e44ad;
  color: white;
  text-align: center;
  padding: 50px 0;
  background-image: url('https://picsum.photos/id/1048/1920/1080');
  background-size: cover;
  background-position: center;
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(142, 68, 173, 0.7);
}

header h1, header h2 {
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0;
  font-size: 28px;
  margin-top: 10px;
}

h2 {
  font-size: 24px;
  font-weight: normal;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

ul {
  list-style-type: none;
  padding: 0;
  counter-reset: step;
}

li {
  background-color: white;
  border-radius: 8px;
  margin: 20px 0;
  padding: 20px 30px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

li:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #8e44ad;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.task {
  color: #8e44ad;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
}

.department, .time, .description {
  margin: 8px 0;
  line-height: 1.5;
  font-size: 14px;
  font-weight: bold;
}

.department {
  color: #27ae60;
}

.time {
  color: #e67e22;
}

.description {
  color: #666;
  padding-left: 25px;
  position: relative;
}

.description::before {
  content: '•';
  position: absolute;
  left: 10px;
  color: #8e44ad;
}

footer {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 14px;
}

.nearest-event {
  background-color: white;
  max-width: 1000px;
  margin: -10px auto;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nearest-event h3 {
  color: #8e44ad;
  margin-top: 0;
  font-size: 22px;
  text-align: center;
}

.event-info {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.current-event, .next-event {
  flex: 1;
  padding: 15px;
  border-radius: 6px;
  background-color: #f8f9fa;
  position: relative;
}

.alarm-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  color: #e67e22;
}

.current-event h4, .next-event h4 {
  color: #8e44ad;
  margin-top: 0;
  font-size: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.event-task, .next-task {
  color: #8e44ad;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}

.event-time, .next-time {
  color: #e67e22;
  font-size: 14px;
  font-weight: bold;
}

@media (max-width: 600px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .event-info {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  li {
    margin: 15px -5px;
    padding: 15px 10px;
  }
  
  li::before {
    left: -10px;
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
  
  .task {
    font-size: 14px;
  }
  
  .description {
    padding-left: 15px;
  }
  
  .description::before {
    left: 5px;
  }
}
