.calendar-container {
  width: 100%;
  background: rgba(255, 255, 255, 1);
  padding: 0 10px 10px 10px;
  overflow: hidden;
  box-sizing: border-box;
}

.calendar-header {
  background: -webkit-linear-gradient(90deg, #3a1c71, #d76d77, #ffaf7b);
  background: -moz-linear-gradient(90deg, #3a1c71, #d76d77, #ffaf7b);
  background: linear-gradient(90deg, #3a1c71, #d76d77, #ffaf7b);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  color: white;
}

.calendar-title {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.date-display {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 300;
}

.lunar-date {
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 500;
}
.calendar-content {
  border: 1px solid #82b3f6;
}
.navigation {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
}
.current-date {
  line-height: 28px;
  font-size: 16px;
  color: #0166b6;
  font-weight: 700;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #555;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
     -moz-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

.weekdays {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[7];
  grid-template-columns: repeat(7, 1fr);
  background: #ddefff;
  padding: 12px 0;
  font-weight: 700;
  color: #0166b6;
}

.weekday {
  text-align: center;
}

.sunday {
  color: #e74c3c;
}

.saturday {
  color: #3498db;
}

.days-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[7];
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.day {
  background: rgba(255, 255, 255, 0.95);
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
     -moz-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  border-right: 1px solid rgba(0, 0, 0, 0.03);
  min-height: 50px;
}

.solar-date {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #2c3e50;
}

.lunar-info {
  font-size: 12px;
  color: #555;
  text-align: center;
  line-height: 1;
}

.current-day .solar-date, 
.current-day .lunar-info {
  color: #468cf0;
}

.kbnumber {
  background: #dae8fc;
}

.other-month {
  background: rgba(245, 245, 245, 0.7);
}

.other-month .solar-date {
  color: #bbb;
}

.other-month .lunar-info {
  color: #ccc;
}

.festival {
  color: #e74c3c;
  font-weight: 600;
  font-size: 0.75rem;
  margin-top: 3px;
  white-space: nowrap;
}

.solar-term {
  color: #27ae60;
  font-weight: 600;
  font-size: 0.75rem;
  margin-top: 3px;
}

.legend {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
     -moz-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 20px;
  gap: 20px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.02);
}

.legend-item {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
}

.legend-color {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin-right: 8px;
}

.current-day-legend {
  background: -webkit-linear-gradient(135deg, #3498db, #8e44ad);
  background: -moz-linear-gradient(135deg, #3498db, #8e44ad);
  background: linear-gradient(135deg, #3498db, #8e44ad);
}

.festival-legend {
  background: #e74c3c;
}

.solar-term-legend {
  background: #27ae60;
}

.holiday-legend {
  background: #f39c12;
}

.decoration {
  position: absolute;
  font-size: 9rem;
  opacity: 0.03;
  color: #3a1c71;
  font-weight: bold;
  z-index: 0;
}

.decoration-1 {
  top: 20px;
  right: 30px;
  -ms-transform: rotate(15deg);
      transform: rotate(15deg);
}

.decoration-2 {
  bottom: 20px;
  left: 30px;
  -ms-transform: rotate(-15deg);
      transform: rotate(-15deg);
}

.leap-indicator {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.7rem;
  color: #27ae60;
  font-weight: bold;
}

.bid-num {
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  background-color: #468cf0;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 12px;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 650px) {
  .calendar-title {
      font-size: 2.2rem;
  }
  
  .date-display {
      font-size: 1.5rem;
  }
  
  .solar-date {
      font-size: 1.4rem;
  }
  
  .lunar-info {
      font-size: 0.75rem;
  }
  
  .nav-btn {
      width: 42px;
      height: 42px;
  }
  
  .legend {
      gap: 15px;
  }
  
  .day {
      min-height: 60px;
  }
}