/* ========== 顶部消息入口 ========== */
.c-app .message-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    height: 50px;
}

.c-app .message-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    padding: 0 12px;
    border-radius: 20px;
    transition: background 0.2s ease, color 0.2s ease;
    user-select: none;
}

.c-app .message-trigger:hover {
    color: #1a73e8;
    /*background: #f1f3f4;*/
}

.c-app .message-dropdown.active .message-trigger {
    color: #1a73e8;
    /*background: #e8f0fe;*/
}

.c-app .message-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.c-app .message-icon-wrap .fa-bell {
    font-size: 17px;
    line-height: 1;
}

.c-app .navbar-message-badge {
    display: none;
    position: absolute;
    top: -5px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff5252, #ea4335);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    font-weight: 600;
    box-sizing: border-box;
    border: 1.5px solid #fff;
    box-shadow: 0 1px 3px rgba(234, 67, 53, 0.4);
}

.c-app .navbar-message-badge.visible {
    display: inline-block;
}

/* ========== 下拉面板 ========== */
.c-app .message-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 420px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(60, 64, 67, 0.18), 0 2px 8px rgba(60, 64, 67, 0.08);
    z-index: 1000010;
    overflow: hidden;
    animation: messagePanelIn 0.18s ease-out;
}

@keyframes messagePanelIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.c-app .message-dropdown.active .message-panel {
    display: flex;
    flex-direction: column;
}

.c-app .message-panel-header {
    padding: 14px 18px 0;
    font-size: 13px;
    font-weight: 600;
    color: #3c4043;
    letter-spacing: 0.02em;
}

.c-app .message-panel-tabs {
    display: flex;
    gap: 4px;
    padding: 0 18px 0;
    border-bottom: 1px solid #e8eaed;
}

.c-app .message-panel-tab {
    position: relative;
    padding: 0 14px ;
    font-size: 14px;
    color: #5f6368;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.c-app .message-panel-tab:hover {
    color: #1a73e8;
}

.c-app .message-panel-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
    font-weight: 600;
}

.c-app .message-panel-body {
    min-height: 140px;
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.c-app .message-panel-body::-webkit-scrollbar {
    width: 6px;
}

.c-app .message-panel-body::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 3px;
}

.c-app .message-panel-body::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}

.c-app .message-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 56px 24px;
    text-align: center;
    color: #9aa0a6;
    font-size: 14px;
}

.c-app .message-panel-empty .empty-icon {
    font-size: 36px;
    color: #dadce0;
    line-height: 1;
}

.c-app .message-panel-empty.loading .empty-icon {
    animation: messageSpin 0.8s linear infinite;
}

@keyframes messageSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== 消息列表项 ========== */
.c-app .message-item,
.system-notify-inbox-list .message-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background 0.15s ease;
    align-items: flex-start;
}

.c-app .message-item:last-child,
.system-notify-inbox-list .message-item:last-child {
    border-bottom: none;
}

.c-app .message-item:hover,
.system-notify-inbox-list .message-item:hover {
    background: #f8f9fa;
}

.c-app .message-item.unread,
.system-notify-inbox-list .message-item.unread {
    background: linear-gradient(90deg, #f0f6ff 0%, #fafbff 100%);
}

.c-app .message-item.unread:hover,
.system-notify-inbox-list .message-item.unread:hover {
    background: linear-gradient(90deg, #e8f0fe 0%, #f4f7ff 100%);
}

.c-app .message-item-icon,
.system-notify-inbox-list .message-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f0fe, #d2e3fc);
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.c-app .message-item.unread .message-item-icon,
.system-notify-inbox-list .message-item.unread .message-item-icon {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: #fff;
}

.c-app .message-item-main,
.system-notify-inbox-list .message-item-main {
    flex: 1;
    min-width: 0;
}

.c-app .message-item-meta,
.system-notify-inbox-list .message-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #9aa0a6;
    margin-bottom: 6px;
    line-height: 1.4;
}

.c-app .message-item-meta .meta-sep,
.system-notify-inbox-list .message-item-meta .meta-sep {
    color: #dadce0;
}

.c-app .message-item-tag,
.system-notify-inbox-list .message-item-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    color: #1a73e8;
    background: #e8f0fe;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c-app .message-item-content,
.system-notify-inbox-list .message-item-content {
    font-size: 13px;
    color: #3c4043;
    line-height: 1.55;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.c-app .message-item.unread .message-item-content,
.system-notify-inbox-list .message-item.unread .message-item-content {
    color: #202124;
    font-weight: 500;
}

.c-app .message-item.navigable .message-item-icon,
.system-notify-inbox-list .message-item.navigable .message-item-icon {
    background: linear-gradient(135deg, #e8f0fe, #c2d9fc);
    color: #1967d2;
}

.c-app .message-item.navigable,
.system-notify-inbox-list .message-item.navigable {
    cursor: pointer;
}

.c-app .message-item-meta .message-source-tag,
.system-notify-inbox-list .message-item-meta .message-source-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    color: #137333;
    background: #e6f4ea;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 底部分页栏 ========== */
.c-app .message-panel-pagination,
.system-notify-inbox-list .inbox-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-top: 1px solid #f1f3f4;
    font-size: 12px;
    color: #5f6368;
    background: #fafafa;
    min-height: 40px;
    box-sizing: border-box;
}

.c-app .message-panel-pagination-left {
    flex-shrink: 0;
}

.c-app .message-panel-pagination-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.c-app .message-panel-pagination .message-mark-all-read {
    font-size: 13px;
    color: #5f6368;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 0;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.c-app .message-panel-pagination .message-mark-all-read:hover {
    color: #1a73e8;
    text-decoration: none;
}

.c-app .message-panel-pagination:empty,
.system-notify-inbox-list .inbox-pagination:empty {
    display: none;
}

.c-app .message-panel-pagination button,
.system-notify-inbox-list .inbox-pagination button {
    padding: 4px 10px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #fff;
    color: #3c4043;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.c-app .message-panel-pagination button:hover:not(:disabled),
.system-notify-inbox-list .inbox-pagination button:hover:not(:disabled) {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #f8fbff;
}

.c-app .message-panel-pagination button:disabled,
.system-notify-inbox-list .inbox-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ========== 全量消息中心页 ========== */
.system-notify-inbox-list .inbox-page {
    padding: 20px 24px;
    background: #f8f9fa;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
}

.system-notify-inbox-list .inbox-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.06);
    overflow: hidden;
}

.system-notify-inbox-list .inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0;
}

.system-notify-inbox-list .inbox-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #202124;
}

.system-notify-inbox-list .inbox-mark-all-read {
    color: #1a73e8;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: background 0.15s ease;
    text-decoration: none;
}

.system-notify-inbox-list .inbox-mark-all-read:hover {
    background: #e8f0fe;
}

.system-notify-inbox-list .message-panel-tabs {
    padding: 12px 24px 0;
    border-bottom: 1px solid #e8eaed;
}

.system-notify-inbox-list .inbox-list-body {
    min-height: 320px;
}

.system-notify-inbox-list .inbox-pagination {
    justify-content: flex-end;
    padding: 14px 24px;
    font-size: 13px;
}

.system-notify-inbox-list .inbox-pagination button {
    padding: 6px 14px;
    font-size: 13px;
}

/* ========== 详情弹窗 ========== */
.system-notify-inbox-detail {
    padding: 4px 8px 8px;
    min-width: 520px;
    max-width: 720px;
}

.system-notify-inbox-detail .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #5f6368;
}

.system-notify-inbox-detail .detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.system-notify-inbox-detail .detail-meta-item i {
    color: #1a73e8;
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.system-notify-inbox-detail .detail-meta-item strong {
    color: #3c4043;
    font-weight: 500;
}

.system-notify-inbox-detail .notify-content-body {
    font-size: 14px;
    line-height: 1.75;
    color: #202124;
    word-break: break-word;
    padding: 0 4px 8px;
    max-height: 480px;
    overflow-y: auto;
}

.system-notify-inbox-detail .notify-content-body::-webkit-scrollbar {
    width: 6px;
}

.system-notify-inbox-detail .notify-content-body::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 3px;
}
