body {
  /* font-family: "Microsoft YaHei", Arial, sans-serif; */
  margin: 0;
  /* padding: 20px;
  background: #f0f2f5; */
}


.custom-header {
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
  /* gap: 34px; */
  /* margin-bottom: 20px; */
  /* flex-wrap: wrap; */
  background: #eef1fa;
  padding: 16px 20px;
  border: 1px solid #204981;
  border-bottom: none;
}


.calendar-box table{
    border-bottom: none;
}

#year-select {
  padding: 6px 6px;
  font-size: 16px;
  border: 1px solid #204981;
  border-radius: 5px;
  min-width: 80px;
  background: #eff1f9;
  color: #204981;
  position: relative;
  display: inline-block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  /* float: left; */
  margin-right: 20px;
}

.select-wrapper {
  position: relative;
  display: inline-block;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #0e348a;
  pointer-events: none;
}



#month-select {
  padding: 6px 5px;
  font-size: 16px;
  border: 1px solid #204981;
  border-radius: 5px;
  min-width: 115px;
  background: #eef1fa;
  color: #204981;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

select:focus {
  outline: none;
  border: 1px solid #ccc;
}


#month-select option,
#year-select option {
  background-color: #eff1f9;
  color: #333;
  border-radius: 5px;
}

.fc .fc-col-header-cell-cushion {
  color: #204981;
}

#today-btn {
  padding: 6px 20px;
  font-size: 16px;
  background: transparent;
  color: #204981;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid #204981;
  margin-left: 30px;
  float: right;
}

#today-btn:hover {
  background: #dce3f3;
}



#calendar {
  width: 100%;
  margin: 0 auto;
  background: white;
  border-radius: 0;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
  overflow: hidden;
  height: 100%;
  border: 1px solid #204981;
  border-top: none;
}


.news-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #d42e13;
  border-radius: 50%;
  pointer-events: none;
}

.fc-daygrid-day-frame {
  position: relative;
}


.error {
  text-align: center;
  padding: 30px;
  color: red;
  font-size: 1.1em;
}



.calendar-box {
  width: 446px;
  /* overflow: hidden; */
  margin: 0 auto;
  /* margin-top: 10px; */
}


/***/

.fc-theme-standard td,
.fc-theme-standard th {
  border: none;
}

.fc-daygrid-day-events {
  display: none !important;
}

.fc-daygrid-day-bg {
  display: none !important;
}

.fc .fc-daygrid-day-frame {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fc-daygrid-day-frame {
  position: relative;
}

.fc .fc-daygrid-day-number {
  padding: 0;
}

.news-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: #ff6b6b;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/**/
.fc .fc-daygrid-day.fc-day-today {
  background-color: initial;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  /* background-color: #ddd; */
  border-radius: 50%;
}

thead .fc-col-header-cell {
  width: 60px !important;
  height: 36px !important;
  line-height: 40px !important;
}

tbody .fc-daygrid-body td {
  width: 47px !important;
  height: 47px !important;
}

.fc .fc-daygrid-day-number {
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fc-daygrid-day-number.news {
  background-color: #204981;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  transition: 0.3s;
}

.fc-daygrid-day-number.news:hover {
    background: #e4eaff !important;
    color: #2b477e;
}

.fc-theme-standard .fc-scrollgrid {
  border: none;
}

.custom-select {
  position: relative;
  display: inline-block;
}

.select-trigger {
  font-size: 16px;
  border-radius: 5px;
  background: #eff1f9;
  color: #204981;
  cursor: pointer;
  text-align: center;
  min-width: 80px;
  user-select: none;
}

.select-trigger::after {
  content: "▼";
  margin-left: 8px;
  color: #0e348a;
  font-size: 12px;
}

.select-options {
  position: absolute;
  top: 32px;
  left: -1px;
  width: 100%;
  background: #fff;
  border: 1px solid #204981;
  border-top: none;
  border-radius: 0 0 5px 5px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
  max-height: none;
  overflow: visible;
  z-index: 1000;
  display: none; /* 初始隐藏 */
  font-size: 15px;
}

.select-options .select-option:last-child{
  border-radius: 0 0 5px 5px;
}


.select-option {
  padding: 4px 10px;
  cursor: pointer;
  background-color: #eff1f9;
  user-select: none;
  
}

.select-option:hover {
  background-color: #dce3f3;
}

.select-option.selected {
  background-color: #204981 !important;
  color: #FFFFFF;
  font-weight: bold;
}


.custom-header {
  overflow: visible;
  position: relative;
}

.select-options {
  scrollbar-width: thin;
  scrollbar-color: #c0d8f0 #f1f1f1;
  scroll-behavior: smooth;
}

.select-options::-webkit-scrollbar {
  width: 2px;
}

.select-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.select-options::-webkit-scrollbar-thumb {
  background-color: #c0d8f0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.select-options::-webkit-scrollbar-thumb:hover,
.select-options::-webkit-scrollbar-thumb:active {
  background-color: #204981;
}


/**/

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  border-radius: 50%;
  position: relative;
  color: #333;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number::after {
content: "";
    position: absolute;
    top: 26px;
    right: 6px;
    width: 21px;
    height: 9px;
    border-left: 2px solid #ff0000;
    border-bottom: 2px solid #ff0000;
    transform: rotate(-45deg);
}

.fc-daygrid-day-number.news {
  background-color: #204981 !important;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number.news {
  background-color: #204981 !important;
  border-radius: 50%;
  color: #fff;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number.news::after {
content: "";
    position: absolute;
    top: 26px;
    right: 6px;
    width: 21px;
    height: 9px;
    border-left: 2px solid #ff0000;
    border-bottom: 2px solid #ff0000;
    transform: rotate(-45deg);
}

 @media (max-width: 1499px) {

thead .fc-col-header-cell{
    width: 50px !important;
}
.calendar-box {
    width: 370px;
}
#year-select {
    padding:4px;
    margin-right: 10px;
}
.select-trigger {
    min-width: 60px;
}

#month-select {
    padding: 4px;
    border-radius: 4px;
    min-width: 90px;
}

#today-btn {
    padding: 5px 19px;
    border-radius: 4px;
}

.custom-header {
    padding: 12px 14px;
}
tbody .fc-daygrid-body td {
    width: 43px !important;
    height: 43px !important;
}
}

@media (max-width: 1279px) {
.calendar-box {
   width: 274px;
}

.select-trigger {
    font-size: 14px;
    border-radius: 4px;
    min-width: 50px;
}
.select-trigger::after {
    margin-left: 3px;
}
#year-select {
    border-radius: 4px;
    min-width: 40px;
}
#month-select {
    min-width: 65px;
}
.select-options {
    font-size: 12px;
}
#today-btn {
   padding: 5px 7px;
    font-size: 14px;
    margin-left:20px;
}

.calendar-box .fc table {
    font-size: 12px;
}
thead .fc-col-header-cell {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
}
.fc .fc-col-header-cell-cushion {
    padding:0px;
}
.fc .fc-daygrid-day-number {
    width: 30px;
    height: 30px;
}
tbody .fc-daygrid-body td {
    width: 30px !important;
    height: 30px !important;
}
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number::after {top: 16px;right: 1px;}
}
@media (max-width:960px){
    .calendar-box { width: 360px; }
    .custom-header { padding: 14px; }
    thead .fc-col-header-cell  { width: 60px !important; height: 36px !important; line-height: 40px !important; }
    tbody .fc-daygrid-body td { width: 51px !important; height: 40px !important;  }
    .select-options { top: 25px;}
}

@media (max-width:767px){
.calendar-box{width:100%;}
thead .fc-col-header-cell { width: 51px !important;}
#today-btn { padding: 3px 7px; }
}
