#calendar-container {
    width: 400px;
    height: 350px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    position: relative;
    margin: 0 auto;
  }

  #current-month {
    font-size: 23px;
    color: #003778;
    text-align: center;
    margin-bottom: 10px;
  }

  .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 23px;
    font-weight: bold;
    color: #003778;
    margin-bottom: 10px;
  }

  .nav-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #003778;
    cursor: pointer;
  }

  .weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    color: #3A4673;
    margin-bottom: 5px;
  }
  .weekdays span {
    font-size: 21px;
    color: #003778;
    font-weight: 300;
  }
  /* 周一到周日中，第一个与最后一个特殊颜色 */
  .weekdays span:first-child {
    color: #fba62c;
  }
  .weekdays span:last-child {
    color: #fba62c;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 10px 0;
    grid-auto-rows: 1fr;
    height: 72%;
  }

  /* === 日期单元格样式 === */
  .day {
    font-size: 16px;
    font-weight: bold;
    color: #3f3f3f;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    text-align: center;
    position: relative;
    margin: 0 auto;
  }
  .day.prev-month {
    color: #acacac;
  }

  .selected {
    color: white !important;
  }

  .today {
    background-color: #FF9800;
    color: white !important;
  }

  .day.has-schedule {
    position: relative; /* 给箭头伪元素定位 */
  }
  /* 右侧的小箭头 */
  .day.has-schedule::after {
    content: '▸'; /* 这个箭头可以换成其他符号 */
    font-size: 20px;
    color: rgba(128, 128, 128, 0.8);
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .day.has-schedule:hover::after {
    opacity: 1;
  }

  .empty {
    visibility: hidden;
  }
  .day.past {
    background-color: #b3b3b3;
    color: white !important;
  }
  .day.today {
    background-color: #fb9504;
    color: white !important;
  }
  .day.future {
    background-color: #174078;
    color: white !important;
  }

  /* 日程弹出层 */
  .schedule-list {
    display: none;            /* 默认隐藏，JS 显示 */
    position: absolute;
    left: calc(100% + 10px);  /* 稍微右移，给箭头留空间 */
    top: 0;
    background-color: rgba(128, 128, 128, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    width: 400px;
    text-align: left;
    z-index: 99;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: auto;
    min-height: 1em;
  }

  .schedule-item a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 5px;
    line-height: 1.5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .schedule-item a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
  }

  @media screen and (max-width: 1350px) {
    #calendar-container {
      width: 350px;
      height: 350px;
    }
  }
  /* === 样式结束 === */