@import url('common.css');

.index-box {
    display: flex;
    gap: 34px;
}

.mail-box {
    min-height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
}

.mail-box .mail-box-header {
    display: flex;
    width: 100%;
}

.mail-box .mail-box-header span {
    cursor: pointer;
    display: flex;
    width: 160px;
    height: 60px;
    position: relative;
    font-size: 22px;
    padding: 7px 34px 0;
    border-radius: 3px;
    box-sizing: border-box;
}

.mail-box .mail-box-header span.layui-this {
    color: #fff;
}

.mail-box .mail-box-header span.layui-this::before {
    color: #fff;
    z-index: -1;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../img/hdjl/tab-bg.png") center center no-repeat;
    background-size: cover;
}

.mail-box .mail-box-content {
    flex: 1;
}

.mail-box .mail-box-content ul {
    height: 100%;
    display: none;
}

.mail-box .mail-box-content ul li:not(.empty) {
    width: 100%;
    height: 55px;
    font-size: 18px;
    display: flex;
    border-bottom: 1px solid #AAAAAA;
    position: relative;
    padding: 18px 11px 18px 30px;
    align-items: center;
}

.mail-box .mail-box-content ul li:not(.empty)::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: #999999;
    border-radius: 50%;
}

.mail-box .mail-box-content ul li:not(.empty) a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-box .mail-box-content ul li:not(.empty) span {
    margin-left: 20px;
    font-size: 17px;
    color: #AAAAAA;
}

.message {
    width: 50%;
    min-height: 100%;
    background: url("../img/hdjl/message-bg.png") center center no-repeat;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
}

.message .message-title {
    padding: 22px;
    width: 100%;
    display: flex;
}

.message .message-title .title-img {
    width: 144px;
}

.message .message-wrapper {
    box-sizing: border-box;
    padding: 22px;
    flex: 1;
    width: 100%;
    margin-top: 30px;
}

.message .message-wrapper .carousel-content:not(.empty) {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.message .message-wrapper .carousel-content:not(.empty) .carousel-item {
    box-sizing: border-box;
    width: 100%;
    border-radius: 9px;
    background-size: 22px;
    background: #F5F7FA url("../img/hdjl/message-item.png") no-repeat 23px 17px;
    background-size: 22px;
    padding: 17px 17px 17px 57px;
}

.message .message-wrapper .carousel-content:not(.empty) .carousel-item .title {
    word-break: break-word;
}

.message .message-wrapper .carousel-content:not(.empty) .carousel-item .time {
    float: right;
    white-space: nowrap;
}

.message .interview-wrapper {
    width: 100%;
    display: flex;
    gap: 26px;
    margin-top: 47px;
}

.message .interview-wrapper a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message .interview-wrapper a img {
    width: 100%;
}

.empty {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty img {
    width: 252px;
}

.empty p {
    font-size: 18px;
    margin-top: 15px;
    color: #999999;
}

@media (max-width: 767px) {
    .index-box {
        flex-direction: column;
    }

    .index-box .mail-box,
    .index-box .message {
        width: 100%;
    }

    .index-box .mail-box .mail-box-header {
        justify-content: center;
    }

    .index-box .mail-box .mail-box-header span {
        height: 70px !important;
        display: flex;
        text-align: center;
        justify-content: center;
        padding: 10px 0 0 !important;
    }

    .index-box .mail-box .mail-box-content > ul {
        overflow-y: auto;
        max-height: 500px;
    }

    .index-box .mail-box .mail-box-content > ul li {
        box-sizing: border-box;
    }

    .index-box .message .message-title {
        box-sizing: border-box;
        padding: 10px 20px 0;
    }

    .index-box .message .message-title img {
        width: 120px;
    }

    .index-box .message .message-wrapper {
        box-sizing: border-box;
        max-height: 500px;
        overflow-y: auto;
        padding: 10px 20px 0;
    }

    .index-box .message .interview-wrapper {
        flex-direction: column;
    }
}
