/* ===== 扩展样式：公告 / 客服标识 / 账号凭证 / 后台 ===== */
:root {
    --cs-color: #f0932b;
}

/* ── 登录页公告 ── */
.login-notice-wrap {
    margin-top: 18px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}
.login-notice-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.login-notice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}
.login-notice-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
}
.login-notice-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
.login-notice-item-text {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}
.auto-register-tip {
    font-size: 13px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ── 公告铃铛 ── */
#ann-btn { position: relative; }
.ann-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 2px var(--bg-secondary);
}
.ann-modal { max-width: 460px; width: 92%; }
.ann-body {
    max-height: 55vh;
    overflow-y: auto;
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ann-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 14px;
}
.ann-item h3 { font-size: 14px; margin-bottom: 6px; color: var(--accent); }
.ann-item p { font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: var(--text-secondary); }
.ann-item small { display: block; margin-top: 8px; font-size: 11px; color: var(--text-muted); }

/* ── 账号凭证 ── */
.cred-tip { font-size: 13px; color: var(--text-secondary); margin: 10px 0 14px; line-height: 1.6; }
.cred-box, .cred-inline {
    background: var(--bg-tertiary);
    border: 1px dashed var(--accent);
    border-radius: var(--border-radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cred-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.cred-row span { color: var(--text-muted); font-size: 13px; }
.cred-row b { font-size: 15px; color: var(--accent); word-break: break-all; user-select: all; }

/* ── 客服标识 ── */
.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--cs-color);
    color: #fff;
    vertical-align: middle;
    margin-left: 5px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--cs-color);
    background: rgba(240, 147, 43, 0.08);
    border-bottom: 1px solid var(--border-color);
}
.pending-group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    opacity: 0.75;
}
.pending-group-item .pg-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-chip {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.status-pending { background: rgba(253, 203, 110, 0.18); color: var(--warning); }
.status-rejected { background: rgba(225, 112, 85, 0.15); color: var(--danger); }

/* ── 会话列表顶部公告条 ── */
.sidebar-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 16px 0;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    background: rgba(240, 147, 43, 0.1);
    border: 1px solid rgba(240, 147, 43, 0.25);
    color: var(--cs-color);
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    transition: filter 0.2s;
}
.sidebar-notice:active { filter: brightness(0.92); }
.sidebar-notice > i.fa-bullhorn { font-size: 13px; flex-shrink: 0; }
.sidebar-notice-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    line-height: 1.5;
}
.sidebar-notice-text b { color: var(--cs-color); margin-right: 4px; }
.sidebar-notice-arrow { flex-shrink: 0; font-size: 12px; opacity: 0.6; }

@media (max-width: 640px) {
    .ann-modal { width: 94%; }
    .ann-body { max-height: 60vh; }
    .login-notice-list { max-height: 140px; }
}
