@font-face {
    font-family: "iconfont"; /* Project id  */
    src: url('../font.ttf') format('truetype');
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-xiangyoujiantou:before {
    content: "\e65f";
}

.icon-xiangzuojiantou:before {
    content: "\e660";
}

.icon-24gl-calendar:before {
    content: "\eb3f";
}


* {
    margin: 0;
    overflow: hidden;
    user-select: none;
}

[v-cloak] {
    display: none;
}

#app {
    width: 100vw;
    height: 100vh;
    background: #ffffff;
}

.calendar-card {
    display: flex;
    width: 100%;
}

.calendar-lunar {
    position: relative;
    margin-top: 30px;
    width: 300px;
    flex-shrink: 0;
    height: calc(100vh - 30px);
    overflow-y: scroll;
    padding: 15px 0 15px 15px;
    z-index: 1;
}

/* Chrome, Safari, Edge, Opera */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type='number'] {
    -moz-appearance: textfield;
}

.calendar-lunar::before {
    content: " ";
    position: fixed;
    top: 0;
    background: #f5f5f5;
    height: 100%;
    width: 300px;
    right: 0;
    z-index: 0;
}

.calendar-date {
    font-size: 14px;
    font-weight: 400;
}

.calendar-day {
    position: relative;
    margin-top: 10px;
    font-size: 50px;
    width: 90px;
    height: 90px;
    font-weight: bolder;
    color: #ffffff;
    background: #1772b4;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-day::before {
    position: absolute;
    content: " ";
    width: 5px;
    height: 5px;
    border-radius: 5px;
    background: #ffffff;
    inset: 10px;
}

.calendar-day::after {
    position: absolute;
    content: " ";
    width: 5px;
    height: 5px;
    border-radius: 5px;
    background: #ffffff;
    inset: 10px calc(100% - 15px);
}

.calendar-week1 {
    font-size: 13px;
}

.calendar-week2 {
    font-size: 13px;
}

.calendar-box {
    width: 100%;
    height: calc(100% - 100px);
}


.calendar-grid {
    position: relative;
    height: calc(100vh - 130px);
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows:0.5fr repeat(6, 1fr);
    align-items: center;
    row-gap: 20px;
    padding: 0 20px;
    margin-top: 25px;
}

.calendar-grid > div {
    text-align: center;
}

.items {
    position: relative;
    width: 80%;
    height: 90%;
    border: 2px solid transparent;
    margin: auto;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .3s;
    font-size: 18px;
    font-weight: bold;
}

.items:hover {
    border: 2px solid #d9d9d9;
}

.selDay {
    border: 2px solid #d9d9d9;
}

.items-lunar {
    font-size: 13px;
    color: #9e9ea7;
    font-weight: lighter;
}

.lastMonth, .nextMonth {
    color: #d3d3d3;
}


.weekend {
    color: #f32d39;
}

.currentDay {
    color: #ffffff;
    background: #1772b4;
    border: 2px solid transparent !important;
}

.currentDay > .items-lunar {
    color: #ffffff;
}

.festivals {
    color: #006ec0;
}

.work {
    position: absolute;
    right: 5px;
    top: 5px;
    color: #ffffff;
    background: #0089fc;
    font-size: 12px;
    font-weight: lighter;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holiday {
    position: absolute;
    right: 5px;
    top: 5px;
    color: #ffffff;
    background: red;
    font-size: 12px;
    font-weight: lighter;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .calendar-lunar {
        display: none !important;
    }
}

.lastMonth.weekend, .nextMonth.weekend {
    color: rgba(243, 98, 72, 0.5) !important;
}

.arrow {
    border: none;
    background: #e8e8e8;
    padding: 5px;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow:hover:not(.todayBtn) {
    background: #cbcbcb;
}

.arrow > i {
    font-size: 14px;
    font-weight: bolder;
    color: #797979;
}

.dataInput {
    background: #e7e7e7;
    border-radius: 4px;
    padding: 0 5px;
    color: #797979;
    display: flex;
    align-items: center;
}

.dataInput > i {
    flex-shrink: 0;
}

.dataInput > input {
    border: none;
    outline: none;
    background: transparent;
    max-width: 60px;
    text-indent: 2px;
    color: #797979;
    transform: translateY(1px);
}

.box-head {
    padding: 0 65px;
    margin-top: 50px;
    display: flex;
    column-gap: 10px;
}

.box-head > div, .box-head > button {
    flex-shrink: 0;
}

.todayBtn {
    color: #ffffff;
    background: #1772b4;
}

.holidayBox {
    background: rgba(245, 138, 138, 0.15);
}

.holidayBox.lastMonth, .holidayBox.nextMonth {
    background: rgba(248, 183, 183, 0.1);
}

.workBox {
    color: #1A1B1C;
    background: rgb(0 146 255 / 19%);
}

.workBox.lastMonth, .workBox.nextMonth {
    color: #d3d3d3 !important;
    background: rgba(101, 182, 241, 0.1);
}


.lunar-other {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.LR {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: #808080;
}

.LR:not(.LR:last-child):after {
    position: absolute;
    bottom: 0;
    content: " ";
    width: 100%;
    height: 1px;
    background: #e3e3e3;
}

.sw {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sw > div > span {
    margin-left: 5px;
}

.tag {
    width: max-content;
    height: max-content;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


@media (max-width: 500px) {
    .box-head {
        padding: 0 30px;
    }
}


.calendar-lunar-head {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
