.site-home-card {
    overflow: visible;
}

.site-home-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 28px;
    position: relative;
}

.site-home-header-title {
    max-width: min(52vw, 520px);
    overflow: hidden;
    color: #303133;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-home-header-right {
    justify-self: end;
}

.site-notice-action {
    justify-self: start;
    position: relative;
    min-width: 1px;
}

.site-notice-trigger.el-button,
.site-order-link.el-button {
    padding: 3px 0;
    letter-spacing: 0;
}

.site-notice-reminder {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 40;
    width: max-content;
    max-width: min(300px, calc(100vw - 48px));
    padding: 10px 34px 10px 12px;
    border: 1px solid #d9e7f5;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.14);
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.site-notice-reminder::before,
.site-notice-reminder::after {
    position: absolute;
    left: 18px;
    width: 0;
    height: 0;
    border-style: solid;
    content: '';
}

.site-notice-reminder::before {
    top: -8px;
    border-width: 0 8px 8px;
    border-color: transparent transparent #d9e7f5;
}

.site-notice-reminder::after {
    top: -7px;
    border-width: 0 8px 8px;
    border-color: transparent transparent #ffffff;
}

.site-notice-reminder-close {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #909399;
    cursor: pointer;
    line-height: 24px;
    text-align: center;
}

.site-notice-reminder-close:hover {
    color: #409eff;
}

.site-notice-fade-enter-active,
.site-notice-fade-leave-active {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-notice-fade-enter,
.site-notice-fade-leave-to {
    opacity: 0;
    transform: translateY(-4px);
}

.site-notice-modal .ivu-modal {
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    top: 8vh;
}

.site-notice-modal .ivu-modal-body {
    padding: 0;
}

.site-notice-modal .ivu-modal-header-inner {
    height: auto;
    padding-right: 24px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
}

.site-notice-list {
    min-height: 180px;
    max-height: 58vh;
    overflow-y: auto;
    padding: 0 20px;
}

.site-notice-empty {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    color: #909399;
    font-size: 14px;
}

.site-notice-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    min-height: 64px;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border: 0;
    border-bottom: 1px solid #ebeef5;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.site-notice-item:last-child {
    border-bottom: 0;
}

.site-notice-item:hover {
    background: #f7f9fc;
}

.site-notice-item-main {
    min-width: 0;
}

.site-notice-item-title {
    color: #303133;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.site-notice-item-time,
.site-notice-detail-time {
    margin-top: 5px;
    color: #909399;
    font-size: 12px;
    line-height: 1.4;
}

.site-notice-item-arrow {
    color: #c0c4cc;
    font-size: 16px;
}

.site-notice-pagination {
    padding: 12px 16px 16px;
    border-top: 1px solid #ebeef5;
    text-align: center;
}

.site-notice-detail {
    min-height: 160px;
    max-height: 62vh;
    overflow-y: auto;
    padding: 20px 24px 24px;
}

.site-notice-detail-content {
    color: #303133;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

@media (max-width: 480px) {
    .site-home-header {
        gap: 8px;
    }

    .site-home-header-title {
        max-width: 40vw;
        font-size: 16px;
    }

    .site-notice-trigger.el-button,
    .site-order-link.el-button {
        font-size: 13px;
    }

    .site-notice-modal .ivu-modal {
        top: 5vh;
    }

    .site-notice-list {
        max-height: 64vh;
        padding: 0 14px;
    }

    .site-notice-detail {
        max-height: 68vh;
        padding: 18px;
    }
}
