.calendar_content p{
    /*white-space: nowrap!important;*/
}

@media only screen and (min-width: 1200px) {
    .divinationBox{
        display: flex;
        width: 1200px;
        justify-content: space-between;
        align-items: flex-start;
    }
    .calendar{
        padding: 6px;
        width: 585px;
        background: #FDF5E6;
		border-radius: 10px;
		border: 1px solid #D0AD9A;
		margin-bottom: 30px;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-self: flex-start;
		/*position: relative;*/
    }
    .calendar_content{
        padding: 0 20px;
		position: relative;
		z-index: 2;
		flex: 1;
    }
    .calendarTabBox {
        margin-bottom: 12px;
    }
    .calendarRmForm {
        margin-bottom: 4px;
    }
    .calendarDateBar {
        margin-bottom: 10px;
    }
    .calendarDisplay {
        margin-bottom: 8px;
    }
    .calendarPanel-renming {
        position: relative;
    }
    .calendar .angleBox{
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-shrink: 0;
    }
    .calendar > .angleBox:last-of-type {
        margin-top: auto;
    }
    .calendar .dataBox{
        display: flex;
        align-items:center;
        flex-wrap: wrap;
        margin: 15px 0;
    }
    .calendar .dataBox select{
        width: 75px;
    }
    .calendar .dataBox .m-btn{
        margin-top: 15px!important;
    }
    .calendar .dataBox .todayBtn{
        width: 100px;
        height: 38px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
        font-weight: 600;
        margin-left: 15px;
        margin-top: 15px;
        border-radius: 15px;
        background: #f9e19a;
        color: #975305;
        cursor: pointer;
    }
    .data_time{
        width: 100%;
        height: 227px;
        background: #FFF1D8;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #D0AD9A;
        margin-bottom: 20px;
    }
    .data_time .red{
        color: #DA2222;
    }
    /*.data_time .red1{*/
    /*    color: #D4463B;*/
    /*}*/
    .data_time_title{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .data_time_title div{
        display: flex;
        align-items: center;
    }
    .data_time_title p{
        font-weight: 600;
        font-size: 17px;
        color: #333333;
    }
    .data_time_text{
        margin: 10px 0 0 0;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
    }
    .data_time_text_icon{
        width: 40px;
        height: 40px;
    }
    .data_time_text_name{
        display: flex;
        justify-content: space-between;
        width: -webkit-fill-available;
        margin: 0 10px 12px 10px;
    }
    .data_time_text_name div{
         display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    .data_time_text_name div p{
        font-weight: 400;
        font-size: 16px;
        color: #333333;
    }
    .data_time_text_name  .day_num{
        font-weight: bold;
        font-size: 70px;
        color: #D4463B;
        position: absolute;
    }
    .data_time_text_name .solar{
        /*margin-top: 10px;*/
        max-width: 128px;
        white-space: nowrap;
    }
    .data_time_day{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .data_time_day{
        font-weight: 600;
        font-size: 20px;
        color: #333333;
    }
    .twelve_hours{
        display: flex;
        flex-direction: column;
        margin-top: 10px;
    }
    .twelve_hours .twelve_hours_box,.twelve_hours_r{
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 400;
        font-size: 15px;
        color: #666666;
    }
    .twelve_hours_r span{
        text-align: center;
        min-width: 30px;
    }
    .twelve_hours_l{
        width: 56px;
    }
    .twelve_hours_r{
        width: 450px;
    }
    .text1,.text2,.text3,.text4,.text5 {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .text1 .te_item:first-child {
        width: 65.5%;
        /*width: 346px;*/
    }
    .text1 .te_item:last-child {
        width: 33%;
    }
    .text2 .te_item{
        width: 100%;
    }
    .text3 .te_item:first-child {
        width: 55%;
        /*width: 346px;*/
    }
    .text3 .te_item:last-child {
        width: 43.5%;
    }
    .text4 .te_item,.text5 .te_item{
        width: 32.3%;
        /*width: 346px;*/
    }
    .te_item{
        display: flex;
        align-items: center;
        height: 37px;
        background: #FFF1D8;
        border-radius: 5px;
        border: 1px solid #D0AD9A;
        margin-bottom: 10px;
        font-weight: 400;
        font-size: 16px;
        color: #000000;
    }
    .te_item .red1{
        color: #DA2222;
    }
    .syn_box{
        height: 27px;
        background: #F1E3C7;
        border-radius: 3px 3px 3px 3px;
        display: flex;
        align-items: center;
    }
    .te_item p{
        margin-left: 10px;
    }
    .te_item span {
        background: #F1E3C7;
        border-radius: 3px;
        padding: 0 5px;
    }
    .te_item .s_text1{
        margin: 0 5px;
    }
    .te_item .s_text2{
        margin: 0 5px;
        width: 46%;
        text-align: center;
    }
    .bigSelect{
        width: 120px!important;
    }
    .zheri-content{
        width: 585px!important;
    }
    .zheri-header{
        border-bottom: 0!important;
        padding: 20px 12px!important;
    }
    .zheriModleBox{
        display: flex;
         align-items: center;
         justify-content: space-between;
         flex-wrap: wrap;
         padding: 10px 30px 10px 30px;
    }
    .zheriModleBox_item{
        display: flex;
         align-items: center;
         width: 252px;
         height: 89px;
         background-image: url('../img/zheriback.png');
         background-size: 100% 100%;
         margin-bottom: 20px;
    }
    .zheriModleBox_item div{
        display: flex;
        flex-direction: column;
        
    }
    .zheriModleBox_item_l{
        width: 77px;
        align-items: center;
    }
    .zheriModleBox_item_r{
        padding-left: 10px;
        border-left: 1px solid #F2D2B5;
    }
    .zheriModleBox_item p{
        font-weight: 400;
        font-size: 14px;
        color: #333333;
    }
    .zheriModleBox_item .subtext{
        color: #666666;
    }
    .zheriModleBox_item .red1{
        color: #DA2222;
    }
    .zheri-content .angleBox{
        position: absolute;
        bottom: 0;
        padding: 2%;
    }
}

@media screen and (max-width:1200px) and (min-width:700px) {
        .divinationBox{
        display: flex;
        width: 95vw;
        justify-content: space-between;
        margin: 2.5vw auto 0;
        align-items: flex-start;
    }
    .calendar{
        padding: 0.48vw;
        width: 46.8vw;
        background: #FDF5E6;
		border-radius: 0.8vw;
		border: 1px solid #D0AD9A;
		margin-bottom: 2.5vw;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-self: flex-start;
		/*position: relative;*/
    }
    .calendar_content{
        padding: 0 20px;
		position: relative;
		z-index: 2;
		flex: 1;
    }
    .calendarTabBox {
        margin-bottom: 12px;
    }
    .calendarRmForm {
        margin-bottom: 4px;
    }
    .calendarDateBar {
        margin-bottom: 10px;
    }
    .calendarDisplay {
        margin-bottom: 8px;
    }
    .calendarPanel-renming {
        position: relative;
    }
    .calendar .angleBox{
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-shrink: 0;
    }
    .calendar > .angleBox:last-of-type {
        margin-top: auto;
    }
    .calendar .dataBox{
        display: flex;
        align-items:center;
        flex-wrap: wrap;
        margin: 1vw 0;
    }
    .calendar .dataBox select {
        width: 7vw;
    }
    .calendar .dataBox .m-btn{
        width: 10vw;
        margin-top: 1vw!important;
    }
    .calendar .dataBox .todayBtn{
        width: 8vw;
        height: 3.04vw;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.12vw;
        font-weight: 600;
        margin-left: 1vw;
        margin-top: 1vw;
        border-radius: 0.5vw;
        background: #f9e19a;
        color: #975305;
        cursor: pointer;
    }
    /*.calendar .dataBox p {*/
    /*    margin-right: 0!important;*/
    /*}*/
    .data_time{
        width: 100%;
        /*height: 237px;*/
        background: #FFF1D8;
        padding: 0.48vw;
        border-radius: 0.8vw;
        border: 1px solid #D0AD9A;
        margin-bottom: 1vw;
    }
    .data_time .red{
        color: #DA2222;
    }
    /*.data_time .red1{*/
    /*    color: #D4463B;*/
    /*}*/
    .data_time_title{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0.5vw 0;
    }
    .data_time_title div{
        display: flex;
        align-items: center;
    }
    .data_time_title p{
        font-weight: 600;
        font-size: 1.15vw;
        color: #333333;
    }
    .data_time_text{
        margin: 0.8vw 0 0 0;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
    }
    .data_time_text_icon{
        width: 3vw;
        height: 3vw;
    }
    .data_time_text_name{
        display: flex;
        justify-content: space-between;
        width: -webkit-fill-available;
        margin: 0 0.8vw 0.9vw 0.8vw;
    }
    .data_time_text_name div{
         display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    .data_time_text_name div p{
        font-weight: 400;
        font-size: 1.35vw;
        color: #333333;
    }
    .data_time_text_name  .day_num{
        font-weight: bold;
        font-size: 5vw;
        color: #D4463B;
        position: absolute;
    }
    .data_time_text_name .solar{
        /*margin-top: 10px;*/
        max-width: 10.6vw;
        white-space: nowrap;
    }
    .data_time_day{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .data_time_day{
        font-weight: 600;
        font-size: 1.8vw;
        color: #333333;
    }
    .twelve_hours{
        display: flex;
        flex-direction: column;
        margin-top: 1.2vw 0;
    }
    .twelve_hours .twelve_hours_box,.twelve_hours_r{
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 400;
        font-size: 1.1vw;
        color: #666666;
    }
    .twelve_hours_r span{
        text-align: center;
        min-width: 2.5vw;
    }
    .twelve_hours_l{
        width: 5vw;
    }
    .twelve_hours_r{
        width: 40vw;
    }
    
    .text1,.text2,.text3,.text4,.text5 {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .text1 .te_item:first-child {
        width: 65.5%;
        /*width: 346px;*/
    }
    .text1 .te_item:last-child {
        width: 33%;
    }
    .text2 .te_item{
        width: 100%;
    }
    .text3 .te_item:first-child {
        width: 55%;
        /*width: 346px;*/
    }
    .text3 .te_item:last-child {
        width: 43.5%;
    }
    .text4 .te_item,.text5 .te_item{
        width: 32.3%;
        /*width: 346px;*/
    }
    .te_item{
        display: flex;
        align-items: center;
        height: 3vw;
        background: #FFF1D8;
        border-radius: 0.4vw;
        border: 1px solid #D0AD9A;
        margin-bottom: 0.8vw;
        font-weight: 400;
        font-size: 1.25vw;
        color: #000000;
    }
    .te_item .red1{
        color: #DA2222;
    }
    .syn_box{
        height: 2.25vw;
        background: #F1E3C7;
        border-radius: 0.25vw;
        display: flex;
        align-items: center;
    }
    .te_item p{
        margin-left: 0.7vw;
    }
    .te_item span {
        background: #F1E3C7;
        border-radius: 3px;
        padding: 0 0.4vw;
    }
    .te_item .s_text1{
        margin: 0 0.4vw;
    }
    .te_item .s_text2{
        margin: 0 0.4vw;
        width: 46%;
        text-align: center;
    }
    .bigSelect{
        width: 10vw!important;
    }
    .zheri-content{
        width: 585px!important;
    }
    .zheri-header{
        border-bottom: 0!important;
        padding: 20px 12px!important;
    }
    .zheriModleBox{
        display: flex;
         align-items: center;
         justify-content: space-between;
         flex-wrap: wrap;
         padding: 10px 30px 10px 30px;
    }
    .zheriModleBox_item{
        display: flex;
         align-items: center;
         width: 252px;
         height: 89px;
         background-image: url('../img/zheriback.png');
         background-size: 100% 100%;
         margin-bottom: 20px;
    }
    .zheriModleBox_item div{
        display: flex;
        flex-direction: column;
        
    }
    .zheriModleBox_item_l{
        width: 77px;
        align-items: center;
    }
    .zheriModleBox_item_r{
        padding-left: 10px;
        border-left: 1px solid #F2D2B5;
    }
    .zheriModleBox_item p{
        font-weight: 400;
        font-size: 14px;
        color: #333333;
    }
    .zheriModleBox_item .subtext{
        color: #666666;
    }
    .zheriModleBox_item .red1{
        color: #DA2222;
    }
    .zheri-content .angleBox{
        position: absolute;
        bottom: 0;
        padding: 2%;
    }
}
@media only screen and (max-width: 700px) {
        .divinationBox{
        display: flex;
        flex-direction: column;
        width: 95vw;
        /*justify-content: space-between;*/
        margin: 2.5vw auto 0;
        align-items: stretch;
    }
    .calendar{
        padding: 0.96vw;
        width: 95vw;
        background: #FDF5E6;
		border-radius: 0.8vw;
		border: 1px solid #D0AD9A;
		margin-bottom: 5vw;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-self: auto;
		/*position: relative;*/
    }
    .calendar_content{
        padding: 0 20px;
		position: relative;
		z-index: 2;
		flex: 1;
    }
    .calendarTabBox {
        margin-bottom: 12px;
    }
    .calendarRmForm {
        margin-bottom: 4px;
    }
    .calendarDateBar {
        margin-bottom: 10px;
    }
    .calendarDisplay {
        margin-bottom: 8px;
    }
    .calendarPanel-renming {
        position: relative;
    }
    .calendar .angleBox{
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-shrink: 0;
    }
    .calendar > .angleBox:last-of-type {
        margin-top: auto;
    }
    .calendar .dataBox{
        display: flex;
        align-items:center;
        /*justify-content: space-between;*/
        flex-wrap: wrap;
        margin: 1.6vw 0;
    }
    .calendar .dataBox select {
        width: 14vw;
    }
    .calendar .dataBox .m-btn{
        margin-top: 2vw!important;
    }
    .calendar .m-btn{
        width: 20vw;
    }
    .dataBox .todayBtn{
        width: 12vw;
        height: 5.866vw;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2.4vw;
        font-weight: 600;
        margin-left: 2vw;
        margin-top: 2vw;
        border-radius: 1vw;
        background: #f9e19a;
        color: #975305;
        cursor: pointer;
    }
    .data_time{
        width: 100%;
        /*height: 237px;*/
        background: #FFF1D8;
        padding: 1.8vw;
        border-radius: 1.4vw;
        border: 1px solid #D0AD9A;
        margin-bottom: 2vw;
    }
    .data_time .red{
        color: #DA2222;
    }
    /*.data_time .red1{*/
    /*    color: #D4463B;*/
    /*}*/
    .data_time_title{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .data_time_title div{
        display: flex;
        align-items: center;
    }
    .data_time_title p{
        font-weight: 600;
        font-size: 2.6vw;
        color: #333333;
    }
    .data_time_text{
        margin: 1.4vw 0 0 0;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
    }
    .data_time_text_icon{
        width: 5.7vw;
        height: 5.7vw;
    }
    .data_time_text_name{
        display: flex;
        justify-content: space-between;
        width: -webkit-fill-available;
        margin: 0 1.4vw 1.5vw 1.4vw;
    }
    .data_time_text_name div{
         display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    .data_time_text_name div p{
        font-weight: 400;
        font-size: 2.4vw;
        color: #333333;
    }
    .data_time_text_name  .day_num{
        font-weight: bold;
        font-size: 9.5vw;
        color: #D4463B;
        position: absolute;
    }
    .data_time_text_name .solar{
        /*margin-top: 10px;*/
        max-width: 18vw;
        white-space: nowrap;
    }
    .data_time_day{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .data_time_day{
        font-weight: 600;
        font-size: 2.85vw;
        color: #333333;
    }
    .twelve_hours{
        display: flex;
        flex-direction: column;
        margin-top: 1.4vw;
    }
    .twelve_hours .twelve_hours_box,.twelve_hours_r{
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 400;
        font-size: 2vw;
        color: #666666;
    }
    .twelve_hours_r span{
        text-align: center;
        min-width: 4vw;
    }
    .twelve_hours_l{
        min-width: ;: 8vw;
    }
    .twelve_hours_r{
        width: 74vw;
    }
    .text1,.text2,.text3,.text4,.text5 {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .text1 .te_item:first-child {
        width: 65.5%;
        /*width: 346px;*/
    }
    .text1 .te_item:last-child {
        width: 33%;
    }
    .text2 .te_item{
        width: 100%;
    }
    .text3 .te_item:first-child {
        width: 55%;
        /*width: 346px;*/
    }
    .text3 .te_item:last-child {
        width: 43.5%;
    }
    .text4 .te_item,.text5 .te_item{
        width: 32.3%;
        /*width: 346px;*/
    }
    .te_item{
        display: flex;
        align-items: center;
        height: 5.2vw;
        background: #FFF1D8;
        border-radius: 0.7vw;
        border: 1px solid #D0AD9A;
        margin-bottom: 1.4vw;
        font-weight: 400;
        font-size: 2.2vw;
        color: #000000;
    }
    .te_item .red1{
        color: #DA2222;
    }
    .syn_box{
        height: 3.5vw;
        background: #F1E3C7;
        border-radius: 0.4vw;
        display: flex;
        align-items: center;
    }
    .te_item p{
        margin-left: 1.4vw;
    }
    .te_item span {
        background: #F1E3C7;
        border-radius: 0.4vw;
        padding: 0 0.7vw;
    }
    .te_item .s_text1{
        margin: 0 0.7vw;
    }
    .te_item .s_text2{
        margin: 0 0.7vw;
        width: 46%;
        text-align: center;
    }
    .bigSelect{
        width: 20vw!important;
    }
    .zheri-content{
        width: 90vw!important;
    }
    .zheri-header{
        border-bottom: 0!important;
        padding: 2.8vw 12px!important;
    }
    .zheriModleBox{
        display: flex;
         align-items: center;
         justify-content: space-between;
         flex-wrap: wrap;
         padding: 1.4vw 4.28vw 1.4vw 4.28vw;
    }
    .zheriModleBox_item{
        display: flex;
         align-items: center;
         width: 39vw;
         height: 12.7vw;
         background-image: url('../img/zheriback.png');
         background-size: 100% 100%;
         margin-bottom: 2.8vw;
    }
    .zheriModleBox_item div{
        display: flex;
        flex-direction: column;
        
    }
    .zheriModleBox_item_l{
        width: 11vw;
        align-items: center;
    }
    .zheriModleBox_item_r{
        padding-left: 1.4vw;
        border-left: 1px solid #F2D2B5;
    }
    .zheriModleBox_item p{
        font-weight: 400;
        font-size: 2vw;
        color: #333333;
    }
    .zheriModleBox_item .subtext{
        color: #666666;
    }
    .zheriModleBox_item .red1{
        color: #DA2222;
    }
    .zheri-content .angleBox{
        position: absolute;
        bottom: 0;
        padding: 2%;
    }
}
/* ???? / ???? ???? */
.calendar .inquire_title {
    margin-top: 0;
}
.calendar .inquire_subtitle {
    margin-top: 6px;
}
.calendar.calendar-mode-zeri .calendarTabBox div[data-cal="zeri"].tabActive {
    background: linear-gradient(180deg, #F26E53 0%, #B10C0A 100%);
    color: #F8DD91;
}
.calendar.calendar-mode-renming {
    background: #FFF8F0;
    border-color: #E8C4A0;
}
.calendar.calendar-mode-renming .calendarTabBox div[data-cal="renming"].tabActive {
    background: linear-gradient(180deg, #F0A060 0%, #C45C26 100%);
    color: #FFF5E6;
}
.calendar.calendar-mode-renming .calendarRmForm {
    background: linear-gradient(180deg, #FFF5EB 0%, #FFEAD8 100%);
    border: 1px solid #E8C4A0;
    border-radius: 8px;
    padding: 8px 12px 4px;
}
.calendar.calendar-mode-renming .calendarRmForm .inquire_subtitle {
    color: #A04A20;
}
.calendar.calendar-mode-renming .data_time {
    background: #FFF5EB;
    border-color: #E8C4A0;
}
.calendar.calendar-mode-renming .calendarPanel-renming .m-btn {
    background-image: none;
    background: linear-gradient(180deg, #F0A060 0%, #C45C26 100%);
    border-radius: 15px;
    text-shadow: none;
}
.calendar.calendar-mode-renming .todayBtn {
    background: #FFE8D0;
    color: #A04A20;
}
.calendar.calendar-mode-renming .calendarDateBar .m-btn {
    background-image: none;
    background: linear-gradient(180deg, #E8B878 0%, #C48840 100%);
    border-radius: 15px;
    text-shadow: none;
}
.calendar.calendar-mode-renming .data_time .red,
.calendar.calendar-mode-renming .data_time .red1,
.calendar.calendar-mode-renming .te_item .red1 {
    color: #C45C26;
}
.calendar.calendar-mode-renming .data_time_text_name .day_num {
    color: #D4783A;
}
.calendar.calendar-mode-renming .te_item {
    background: #FFF5EB;
    border-color: #E8C4A0;
}
.calendar.calendar-mode-renming .syn_box,
.calendar.calendar-mode-renming .te_item span {
    background: #FFEAD8;
}

/* 去掉择日表单后：收紧黄历卡片，左右分栏填补空隙 */
.divinationLeft,
.divinationRight {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 585px;
}
.divinationLeft .calendar,
.divinationLeft .inquireItem,
.divinationRight .inquireItem {
    width: 100%;
}
@media screen and (max-width:1200px) and (min-width:700px) {
    .divinationLeft,
    .divinationRight {
        width: 46.8vw;
    }
}
@media only screen and (max-width: 700px) {
    .divinationLeft,
    .divinationRight {
        width: 95vw;
    }
}
.calendar.calendar-mode-zeri .calendar_content {
    flex: 0 0 auto;
}
.calendar.calendar-mode-zeri > .angleBox:last-of-type,
.calendar.calendar-mode-zeri > .angleBox {
    margin-top: 4px;
}
.calendar.calendar-mode-zeri .calendarDisplay {
    margin-bottom: 0;
}
.calendar.calendar-mode-zeri .calendarDisplay .text5 .te_item {
    margin-bottom: 4px;
}
.calendar.calendar-mode-zeri .calendarPanel-renming {
    min-height: 0;
    padding-bottom: 0;
}
.calendar.calendar-mode-renming .calendarPanel-renming {
    position: relative;
    min-height: 180px;
    padding-bottom: 56px;
}

/* ?????? */
.renming-content {
    width: 585px !important;
    max-width: 96vw;
    background: #FFF8F0;
    border: 1px solid #E8C4A0;
    border-radius: 10px;
    position: relative;
}
.renming-header {
    border-bottom: 1px solid #E8C4A0 !important;
    padding: 16px 20px !important;
}
.renmingModalTitle {
    font-size: 16px;
    font-weight: 600;
    color: #A04A20;
    margin: 0;
}
.renmingModleBox {
    max-height: 65vh;
    overflow-y: auto;
    padding: 16px 20px 8px;
}
.renmingModalFoot {
    padding: 0 20px 16px;
    text-align: right;
}
.renmingModalFoot .m-btn {
    display: inline-flex;
    margin: 0;
    background-image: none;
    background: linear-gradient(180deg, #F0A060 0%, #C45C26 100%);
    border-radius: 15px;
    text-shadow: none;
}
.renming-content .angleBox {
    position: absolute;
    bottom: 0;
    padding: 2%;
    width: 100%;
    pointer-events: none;
}
.rm-m-sec {
    background: #FFF5EB;
    border: 1px solid #E8C4A0;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #5C4030;
}
.rm-m-label {
    font-weight: 600;
    color: #C45C26;
    margin: 0 0 6px;
}
.rm-m-sec .red1 {
    color: #C45C26;
    font-weight: 600;
}
.rm-m-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rm-m-pillar {
    background: #FFEAD8;
    padding: 4px 10px;
    border-radius: 4px;
}
.rm-m-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 4px;
}
.rm-m-table th,
.rm-m-table td {
    border: 1px solid #E8C4A0;
    padding: 6px 8px;
    text-align: center;
}
.rm-m-table th {
    background: #FFEAD8;
    color: #A04A20;
}
.rm-person-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
    margin-bottom: 2px;
}
.rm-person-addbtn {
    border: none;
    background: transparent;
    color: #C45C26;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    padding: 4px 0;
}
.rm-person-addbtn:hover {
    color: #A04A20;
    text-decoration: underline;
}
.rm-person-removebtn {
    flex-shrink: 0;
    margin-left: auto;
    border: none;
    background: transparent;
    color: #999;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    padding: 4px 0;
}
.rm-person-removebtn:hover {
    color: #C45C26;
    text-decoration: underline;
}
.calendarRmForm .rm-gender-row,
.calendarRmForm .rm-birth-row {
    flex-wrap: nowrap;
    align-items: center;
}
.rm-m-person-title {
    font-size: 15px;
    font-weight: 600;
    color: #A04A20;
    padding: 8px 0 4px;
    border-bottom: 1px dashed #E8C4A0;
    margin-bottom: 8px;
}
.rm-m-person-divider {
    height: 12px;
    border-bottom: 2px solid #E8C4A0;
    margin: 12px 0 16px;
}
.rm-m-tag {
    display: inline-block;
    background: #C45C26;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 6px;
    font-size: 12px;
}
.rm-m-tag.off {
    background: #F0E0D0;
    color: #999;
}
.rm-m-panel-label {
    font-weight: 600;
    color: #A04A20;
    margin-right: 8px;
    white-space: nowrap;
}
.rm-m-hint {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}
.rm-m-panel-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: #FFF8F0;
    border: 1px solid #E8C4A0;
    border-radius: 6px;
    margin-bottom: 10px;
    min-height: 44px;
    font-size: 14px;
}
.rm-m-panel-row.half {
    flex: 1 1 calc(50% - 5px);
    min-width: 200px;
    box-sizing: border-box;
}
.rm-m-panel-row.third {
    flex: 1 1 calc(33.33% - 7px);
    min-width: 160px;
    box-sizing: border-box;
}
.rm-m-panel-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.liunian .dataBox {
    margin: 30px 0;
}
.rm-liunian-row-single {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
}
.liunianModalBody {
    padding: 16px 20px 24px;
    max-height: 75vh;
    overflow-y: auto;
}
#liunianModal .liunianModalBody {
    text-align: center;
}
#liunianModal .rm-liunian-row-single {
    display: inline-block;
    width: 420px;
    max-width: 100%;
    text-align: left;
}
.liunianModalBody .rm-liunian-loading {
    text-align: center;
}
.rm-liunian-wrap {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(180deg, #FFF5EB 0%, #FFF8F0 100%);
    border: 1px solid #E8C4A0;
    border-radius: 10px;
}
.rm-liunian-wrap > h4 {
    color: #A04A20;
    margin: 0 0 16px;
    font-size: 17px;
    border-left: 4px solid #C45C26;
    padding-left: 10px;
}
.rm-liunian-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}
.rm-liunian-card {
    width: 100%;
    max-width: 420px;
    justify-self: center;
}
.rm-liunian-body {
    padding: 0;
    display: flex;
    justify-content: center;
}
.rm-liunian-loading {
    text-align: center;
    color: #999;
    padding: 40px;
    grid-column: 1 / -1;
}
.rm-ln-panel {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
.rm-ln-detail {
    position: relative;
    border: 1px solid #E8C4A0;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 248, 240, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 16px 18px 18px;
    font-family: KaiTi, STKaiti, SimSun, serif;
    display: flex;
    flex-direction: column;
    height: 620px;
    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(196, 92, 38, 0.08);
    overflow: hidden;
}
.rm-ln-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url('../img/liunian/panel-bg.svg') center center / cover no-repeat;
    opacity: 0.55;
    border-radius: 12px;
}
.rm-ln-detail > * {
    position: relative;
    z-index: 1;
}
.rm-ln-detail-year {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: bold;
    color: #A04A20;
    text-align: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #E8C4A0;
}
.rm-ln-detail-hd {
    flex-shrink: 0;
    font-size: 17px;
    font-weight: bold;
    color: #C45C26;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #E8C4A0;
    min-height: 28px;
    text-align: center;
}
.rm-ln-detail-body {
    flex: 0 0 230px;
    height: 230px;
    min-height: 230px;
    max-height: 230px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 2;
    color: #333;
    padding: 6px 8px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
}
.rm-ln-detail-body::-webkit-scrollbar { width: 5px; }
.rm-ln-detail-body::-webkit-scrollbar-thumb { background: #E8C4A0; border-radius: 4px; }
.rm-ln-detail-body .cell-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    align-content: flex-start;
    gap: 10px 28px;
}
.rm-ln-detail-body .cell {
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.rm-ln-detail-body .cell b { color: #5C4030; font-weight: bold; }
.rm-ln-detail-body .wuhuang,
.rm-ln-detail-body .hei { color: #C45C26; font-weight: bold; }
.rm-ln-detail-body .anjian { color: #8B5A2B; font-weight: bold; }
.rm-ln-detail-tip {
    font-size: 13px;
    color: #999;
    text-align: center;
    padding: 72px 12px;
}
.rm-ln-detail .rm-ln-jiugong-wrap {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}
.rm-ln-jiugong {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    height: 100%;
    width: auto;
    max-width: 100%;
    aspect-ratio: 1;
    padding: 6px;
    border-radius: 10px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #FFF5EB 0%, #FFEAD8 100%);
    border: 2px solid #C45C26;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.rm-ln-cell {
    position: relative;
    min-height: 0;
    padding: 0;
    border-radius: 6px;
    border: 1px solid #E8C4A0;
    background: #FFFCF8;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
    transition: box-shadow .15s, border-color .15s, background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rm-ln-cell:hover {
    box-shadow: 0 2px 8px rgba(196, 92, 38, 0.15);
    border-color: #C45C26;
}
.rm-ln-cell.active {
    background: #C45C26;
    border-color: #A04A20;
    box-shadow: none;
}
.rm-ln-cell.active .gua-name,
.rm-ln-cell.active .star { color: #fff; }
.rm-ln-cell.center {
    cursor: default;
    background: linear-gradient(180deg, #FFF0E4 0%, #FFE4CC 100%);
}
.rm-ln-cell.center:hover { box-shadow: none; border-color: #E8C4A0; }
.rm-ln-cell.empty { cursor: default; opacity: .65; }
.rm-ln-cell-core {
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 1;
}
.rm-ln-cell-core .gua-name {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #5C4030;
    margin-bottom: 2px;
    letter-spacing: 1px;
}
.rm-ln-cell-core .star {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #C45C26;
    line-height: 1;
}
.rm-ln-cell.center .star { font-size: 24px; }
@media (max-width: 900px) {
    .rm-liunian-row {
        grid-template-columns: 1fr;
    }
}
