/**
 * @提及增强插件样式
 * @file plugins/mention_plus/assets/style.css
 */

.mp-mention {
    color: var(--mn-primary, #2563eb);
    background: var(--mn-primary-subtle, rgba(37, 99, 235, .08));
    border-radius: var(--mn-radius-sm, 4px);
    padding: 0 2px;
    font-weight: 500;
}

a.mp-mention {
    text-decoration: none;
}

a.mp-mention:hover {
    color: var(--mn-primary-hover, #1d4ed8);
    text-decoration: underline;
}

.mp-at-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: var(--mn-radius-sm, 4px);
    background: var(--mn-bg-row-hover, #f3f4f6);
    color: var(--mn-primary, #2563eb);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* ===== 补全下拉 ===== */
.mp-ac {
    position: absolute;
    z-index: 80;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: var(--mn-radius, 8px);
    background: var(--mn-bg-card, #ffffff);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.mp-ac-item {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: 0;
    border-radius: var(--mn-radius-sm, 4px);
    background: transparent;
    color: var(--mn-text, #111827);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.mp-ac-item:hover,
.mp-ac-item:focus {
    background: var(--mn-bg-row-hover, #f3f4f6);
    color: var(--mn-primary, #2563eb);
}

/* ===== 提及中心 ===== */
.mp-page {
    padding: 20px;
}

.mp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.mp-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--mn-text, #111827);
}

.mp-read-form {
    margin: 0;
}

.mp-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--mn-border, #e5e7eb);
    border-radius: var(--mn-radius, 8px);
    background: var(--mn-bg-card, #ffffff);
    overflow: hidden;
}

.mp-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mn-border-light, #f0f0f0);
}

.mp-item:last-child {
    border-bottom: none;
}

.mp-dot {
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-radius: 50%;
    background: transparent;
}

.mp-item--unread .mp-dot {
    background: var(--mn-primary, #2563eb);
}

.mp-item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.mp-item-title {
    font-size: 14px;
    line-height: 1.5;
    color: var(--mn-text, #111827);
    word-break: break-word;
}

.mp-item-title a {
    color: var(--mn-text, #111827);
    text-decoration: none;
}

.mp-item-title a:hover {
    color: var(--mn-primary, #2563eb);
}

.mp-item-summary {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--mn-text-muted, #6b7280);
    word-break: break-word;
}

.mp-item-time {
    flex: none;
    font-size: 12px;
    color: var(--mn-text-muted, #9ca3af);
}

@media (max-width: 640px) {
    .mp-page {
        padding: 14px;
    }

    .mp-item {
        flex-wrap: wrap;
    }

    .mp-item-time {
        width: 100%;
        padding-left: 17px;
    }
}
