*{
    margin: 0;
    padding: 0;
}

body{
    margin: 0 auto;
}

.content-body{
    height: auto;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.calendar-year {
    margin: 20px auto;
    width: inherit;
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap:wrap;
}

.calendar-tab {
    width: 80%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.calendar-tab > div {
    cursor: pointer;
    width: 20vw;
    text-align: center;
    height: 34px;
    vertical-align: middle;
    justify-content: center;
    display: flex;
    align-items: center;
    color: #155724;
    border: 1px solid #155724;
    user-select: none;
}

.calendar-tab .active{
    background: #155724;
    color: white;
}

.calendar-year .calendar-month {
    height: auto;
    width: 200px;
    margin: 20px 10px;
    border-radius: 4px;
    background: rgb(230,230,230,0.3);
}

.calendar-year .calendar-month.passed{
    color: rgba(0, 0, 0, 0.3);
}


.calendar-year .benefit {
    background-color: antiquewhite;
}

.calendar-year .calendar-month dt{
    text-align: center;
    font-style:italic;
    height: 30px;
    line-height: 30px;
}

.calendar-year .calendar-month .special:not(.passed) {
    color: rgba(255, 0, 0, 1);
    font-weight: bold;
}

.calendar-year .calendar-month .special.passed {
    color: rgba(255, 0, 0, 0.3);
}

.calendar-year .calendar-month dl{
    height: 28px;
    width: 28px;
    text-align: center;
    display: block;
    float: left;
    vertical-align: middle;
    font-size: 12px;
    position: relative;
    margin-bottom: 0;
}

.calendar-year .calendar-month .week{
    font-weight: bold;
    display: flex;
    justify-content: center;
    vertical-align: middle;
}

.calendar-year .calendar-month .rest{
    /*background-color: grey;*/
    /*color: white;*/
}

.calendar-year .calendar-month .work:not(.passed){
    background-color: rgba(0, 128, 0, 0.8);
    color: white;
}
.calendar-year .calendar-month .work.passed{
    background-color: rgba(0, 128, 0, 0.3);
    color: white;
}

.calendar-year .calendar-month .passed:not(.special,.work){
    color: rgba(128, 128, 128, 0.3);
}

.calendar-year .calendar-month .today{
    background-color: orangered;
    color: white;
}

.calendar-year .calendar-month .signed:after{
    content: '√';
    font-size: 13px;
    color: orange;
    position: absolute;
    right: 0;
    bottom: 0;
}

.calendar-day{
    cursor: pointer;
    user-select: none;
}

/**
   日期样式
 */
.day-layer{
    background: white;
    position: absolute;
    top: 0;
    left: 0;
    width: min(1080px, 100vw);
    height: min(calc(100% + 20vh), calc(100vh - 5%));
}

.day-layer-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.day-layer-body-tab, .day-layer-body-label, .day-layer-footer {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.day-layer-body-tab span,.day-layer-body-label span {
    width: 20%;
    height: 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.3rem;
}

.day-layer-body-label span {
    width: calc(20% * 3 / 4);
    font-size: 1.2rem;
}

.day-layer-body {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
}

.day-layer-body-html{
    display: inline-flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
}

.day-layer-body-html:last-child {
    margin-top: 2rem;
}
.day-layer-body-hour, .day-layer-body-minute, .day-layer-body-second,.day-layer-body-chen {
    display: flex;
    flex-direction: column;
    width: calc(20% * 3 / 4);
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: pointer;
    user-select: none;
}

.day-layer-body-hour span,.day-layer-body-minute span,.day-layer-body-second span,.day-layer-body-chen span{
    justify-content: center;
    align-items: center;
    display: flex;
    height: 38px;
}

.day-layer-body-tab span, .day-layer-body-label span, .day-layer-body-html span {
    border: 1px solid rgb(245, 245, 245);
}

.day-layer-body-tab span{
    background: rgb(153, 153, 153);
    height: 48px;
}
.day-layer-body-label span{
    background: rgb(188, 188, 188);
}
.day-layer-body-html span {
    background: rgb(204, 204, 204);
}
.day-layer-body-html .active {
    background: rgb(120, 200, 0);
    color: #008eff;
}

.day-layer-body-showtime {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    color: #005cbf;
}

.day-layer-footer {
    margin-top: 2rem;
}


/**
    兼容移动端样式 820px
 */
@media screen and (max-width: 820px){
    .calendar-year {
        margin: 4rem 1rem;
        width: inherit;
    }

    .calendar-year .calendar-month {
        height: 280px;
        width: 225px;
        border-radius: 2vh;
    }

    .calendar-year .calendar-month dt{
        height: 3rem;
        line-height: 3rem;
    }

    .calendar-year .calendar-month dl{
        height: 32px;
        width: 32px;
        line-height: 32px;
    }
}

/**
    兼容移动端样式 540px
 */
@media screen and (max-width: 540px){
    .calendar-year {
        margin: 4rem 1rem;
    }

    .calendar-year .calendar-month {
        height: 69vh;
        width: inherit;
        border-radius: 2vh;
    }

    .calendar-year .calendar-month dt{
        height: 3rem;
        line-height: 3rem;
    }

    .calendar-year .calendar-month dl{
        height: 4rem;
        width: 4rem;
        line-height: 4rem;
    }
}

/**
    兼容移动端样式 414px
 */
@media screen and (max-width: 414px){
    .calendar-year {
        margin: inherit;
        width: inherit;
        height: auto;
        font-size: 18px;
    }

    .calendar-year .yath {
        width: inherit;
        height: auto;
        cursor: pointer;
    }

    .calendar-year .calendar-month {
        height: 58vh;
        width: inherit;
        border-radius: 2vh;
    }

    .calendar-year .calendar-month dt{
        height: 3rem;
        line-height: 3rem;
    }

    .calendar-year .calendar-month dl{
        height: 3.5rem;
        width: 3.5rem;
        line-height: 3.5rem;
    }
}

/**
    兼容移动端样式 390px
 */
@media screen and (max-width: 390px){
    .calendar-year {
        margin: 4rem 1rem;
        width: inherit;
        height: auto;
    }

    .calendar-year .calendar-month {
        height: 44vh;
        width: inherit;
        border-radius: 2vh;
    }

    .calendar-year .calendar-month dt{
        height: 3rem;
        line-height: 3rem;
    }

    .calendar-year .calendar-month dl{
        height: 3rem;
        width: 3rem;
        line-height: 3rem;
    }
}

/**
    兼容移动端样式 375px
 */
@media screen and (max-width: 375px){
    .calendar-year {
        margin: 4rem 1rem;
        width: inherit;
    }

    .calendar-year .calendar-month {
        height: 53vh;
        width: inherit;
        border-radius: 2vh;
    }

    .calendar-year .calendar-month dt{
        height: 3rem;
        line-height: 3rem;
    }

    .calendar-year .calendar-month dl{
        height: 2.8rem;
        width: 2.8rem;
        line-height: 2.8rem;
    }
}

/**
    兼容移动端样式 360px
 */
@media screen and (max-width: 360px){
    .calendar-year {
        margin: 4rem 1rem;
        width: inherit;
    }

    .calendar-year .calendar-month {
        height: 47vh;
        width: inherit;
        border-radius: 2vh;
    }

    .calendar-year .calendar-month dt{
        height: 3rem;
        line-height: 3rem;
    }

    .calendar-year .calendar-month dl{
        height: 2.5rem;
        width: 2.5rem;
        line-height: 2.5rem;
    }
}

/**
    兼容移动端样式 280px
 */
@media screen and (max-width: 280px){
    .calendar-year {
        margin: 4rem 1rem;
        width: inherit;
        height: auto;
    }

    .calendar-year .calendar-month {
        height: 40vh;
        width: inherit;
        border-radius: 2vh;
    }

    .calendar-year .calendar-month dt{
        height: 2rem;
        line-height: 2rem;
    }

    .calendar-year .calendar-month dl{
        height: 2rem;
        width: 2rem;
        line-height: 2rem;
    }
}






