#calendar {
    width: 100%;
    height: 80vh;
    margin: 0 auto;
  }

  @media (max-width: 768px) {
    #calendar {
      width: 95%;
      height: 70vh;
    }

    .fc-header-toolbar {
      flex-direction: column;
      align-items: center;
    }

    .fc-button-group {
      margin-bottom: 5px;
    }
  }

  @media (min-width: 768px) and (max-width: 992px) {
    #calendar {
      width: 92%;
      height: 75vh;
    }
  }

  .event-content {
    border-radius: 8px;
    padding: 8px 12px;
    width: 240px;
    background: var(--md-default-bg-color, #fff);
    color: var(--md-default-fg-color, #000);
    box-shadow: var(--md-shadow-z2, 0 2px 4px rgba(0,0,0,0.2));
    font-family: var(--md-text-font-family, Arial, sans-serif);
    line-height: 1.4;
    border: 1px solid var(--md-default-fg-color--lightest, #ddd);
    transition: all 0.15s ease;
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: normal;
  }

  .event-content h3 {
    margin: 0 0 2px 0;
    padding: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--md-primary-fg-color, #007bff);
    border-left: 3px solid var(--md-accent-fg-color, #ff5722);
    padding-left: 8px;
  }

  .event-content p {
    margin: 1px 0;
    padding: 0 0 0 8px;
    font-size: 0.92em;
    color: var(--md-default-fg-color--light, #666);
    line-height: 1.5;
    position: relative;
  }

  .event-content a {
    color: var(--md-accent-fg-color, #ff5722);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
  }

  .event-content a:hover {
    color: var(--md-primary-fg-color, #007bff);
    background-color: rgba(255, 87, 34, 0.1);
    text-decoration: underline;
  }

  .event-content p:not(:last-child)::after {
    content: "";
    display: block;
    height: 1px;
    background: var(--md-default-fg-color--lightest, #ddd);
    margin: 2px 0;
    opacity: 0.3;
  }

/* 小屏幕设备（如手机） */
@media (max-width: 800px) {
  .event-content {
      width: 100%; /* 宽度占满整个屏幕 */
      padding: 0.5px; /* 增加内边距 */
      margin-bottom: 15px; /* 增加间距 */
  }

  .event-content h3 {
      font-size: 1em; /* 增大标题字体 */
  }

  .event-content p {
      font-size: 1em; /* 增大段落字体 */
  }
}


/* 大屏幕设备（如桌面） */
@media (min-width: 800px) {
  .event-content {
      width: 240px; /* 默认宽度 */
  }
}