/* 消息中心 · 对照影擎 messages。仅 scope 在 .msg-page,不改共享 .btn/.pill/.input */ .msg-page { --klein: #002fa7; --st-muted: #6f747c; --st-text: #17181a; --st-black: #101012; --st-line: rgba(34, 42, 54, 0.09); --st-shadow: 0 8px 20px rgba(20, 27, 38, 0.09); width: 100%; max-width: none; box-sizing: border-box; margin: -24px -28px -60px; padding: 52px clamp(40px, 3.2vw, 68px) 48px; display: flex; flex-direction: column; gap: 16px; } @media (max-width: 1100px) { .msg-page { margin: -28px -24px -48px; } } .msg-page .msg-inner { width: min(1560px, 100%); margin: 0 auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; } .msg-page .page-head { display: flex; align-items: flex-start; justify-content: flex-start; gap: 14px; margin-bottom: 6px; flex-wrap: nowrap; } .msg-page .page-head h1 { font-size: 28px; } .msg-page .page-head .sub { margin-top: 6px; font-size: 15px; color: var(--st-muted); } .msg-back { width: 36px; height: 36px; flex: 0 0 36px; margin-top: 4px; display: grid; place-items: center; padding: 0; border-radius: 8px; border: 1px solid rgba(28, 34, 43, 0.12); background: #fff; color: var(--st-text); cursor: pointer; } .msg-back:hover { background: rgba(34, 42, 54, 0.05); } .msg-back:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 47, 167, 0.28); } .msg-back svg { width: 18px; height: 18px; display: block; } .msg-head-actions { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; } .msg-ghost, .msg-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; cursor: pointer; font: inherit; font-size: 14px; } .msg-ghost { min-width: 132px; height: 46px; padding: 0 18px; color: var(--st-text); border: 1px solid rgba(28, 34, 43, 0.12); background: rgba(34, 42, 54, 0.05); } .msg-ghost:hover:not(:disabled) { background: rgba(34, 42, 54, 0.10); } .msg-ghost:disabled { color: rgba(28, 34, 43, 0.36); border-color: rgba(28, 34, 43, 0.07); background: rgba(34, 42, 54, 0.025); cursor: not-allowed; } .msg-ghost svg, .msg-primary svg { display: block; width: 18px; height: 18px; } .msg-ghost-sm { min-width: 0; height: 38px; padding: 0 14px; } .msg-primary { min-width: 0; height: 42px; padding: 0 18px; color: #fff; border: 0; background: var(--klein); box-shadow: 0 9px 18px rgba(0, 47, 167, 0.18); } .msg-primary:hover { background: #002680; } .msg-primary.is-active, .msg-ghost.is-active { color: var(--klein); background: rgba(0, 47, 167, 0.09); border: 1px solid rgba(0, 47, 167, 0.18); box-shadow: none; } .msg-workbench { display: grid; grid-template-columns: 350px minmax(0, 1fr); height: calc(100vh - 260px); min-height: 620px; overflow: hidden; border: 1px solid var(--st-line); border-radius: 14px; background: rgba(34, 42, 54, 0.025); box-shadow: var(--st-shadow); } .msg-inbox, .msg-detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; } .msg-inbox { border-right: 1px solid var(--st-line); background: rgba(255, 255, 255, 0.88); } .msg-toolbar { padding: 18px; border-bottom: 1px solid rgba(34, 42, 54, 0.08); } .msg-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; } .msg-filter { height: 30px; padding: 0 11px; border: 0; border-radius: 8px; color: var(--st-muted); background: rgba(34, 42, 54, 0.055); font: inherit; font-size: 12px; cursor: pointer; } .msg-filter:hover { background: rgba(34, 42, 54, 0.10); color: var(--st-text); } .msg-filter.active { color: #fff; background: var(--st-black); } .msg-filter.is-muted { color: var(--st-muted); background: rgba(34, 42, 54, 0.03); } .msg-filter.active.is-muted { color: #fff; background: var(--st-black); } .msg-search { width: 100%; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid rgba(34, 42, 54, 0.10); border-radius: 10px; background: #fff; color: var(--st-muted); } .msg-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--st-text); } .msg-list { flex: 1; min-height: 0; overflow-y: auto; } .msg-load-more { padding: 14px 16px 18px; text-align: center; font-size: 12px; color: var(--st-muted); } .msg-item { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 16px 18px; text-align: left; border: 0; border-bottom: 1px solid rgba(34, 42, 54, 0.075); background: transparent; font: inherit; cursor: pointer; } .msg-item:hover { background: rgba(34, 42, 54, 0.04); } .msg-item.active { background: rgba(0, 47, 167, 0.07); box-shadow: inset 3px 0 var(--klein); } .msg-item-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; line-height: 0; border-radius: 9px; color: var(--klein); background: rgba(0, 47, 167, 0.09); flex: 0 0 34px; align-self: center; } .msg-item-icon svg { display: block; width: 16px; height: 16px; flex-shrink: 0; } .msg-item-icon.billing { color: #8a6a12; background: rgba(236, 183, 48, 0.14); } .msg-item-icon.system { color: #4c5360; background: rgba(34, 42, 54, 0.08); } .msg-item-icon.team { color: #138d3f; background: rgba(22, 184, 78, 0.10); } .msg-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--st-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .msg-item .msg-time { display: block; color: var(--st-muted); font-size: 11px; white-space: nowrap; align-self: start; padding-top: 2px; } .msg-item.read strong { color: var(--st-muted); font-weight: 500; } .msg-item p { margin: 5px 0 0; color: var(--st-muted); font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .msg-empty { min-height: 320px; display: grid; place-items: center; align-content: center; justify-items: center; gap: 8px; padding: 24px; color: var(--st-muted); font-size: 13px; text-align: center; } .msg-empty svg { display: block; width: 24px; height: 24px; } .msg-empty .msg-ghost { margin-top: 6px; } .msg-mute-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; border-bottom: 1px solid rgba(34, 42, 54, 0.06); color: var(--st-muted); font-size: 12px; background: rgba(34, 42, 54, 0.03); } .msg-mute-note .msg-ghost { flex: 0 0 auto; height: 30px; padding: 0 12px; } .msg-detail-empty-inner .msg-ghost { margin-top: 4px; } @keyframes msg-skel { 0% { background-position: -240px 0; } 100% { background-position: 240px 0; } } .msg-skel-bar, .msg-skel-ico, .msg-skel-time, .msg-skel-more span { display: block; border-radius: 8px; background-color: rgba(34, 42, 54, 0.06); background-image: linear-gradient(90deg, transparent, rgba(34, 42, 54, 0.08), transparent); background-size: 240px 100%; background-repeat: no-repeat; animation: msg-skel 1.2s ease-in-out infinite; } .msg-skel-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 36px; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid rgba(34, 42, 54, 0.06); } .msg-skel-ico { width: 34px; height: 34px; border-radius: 9px; } .msg-skel-copy { display: grid; gap: 8px; min-width: 0; } .msg-skel-bar { height: 12px; width: 72%; } .msg-skel-bar-sm { height: 10px; width: 88%; opacity: .85; } .msg-skel-row:nth-child(odd) .msg-skel-bar { width: 64%; } .msg-skel-row:nth-child(odd) .msg-skel-bar-sm { width: 76%; } .msg-skel-row:nth-child(3n) .msg-skel-bar { width: 80%; } .msg-skel-time { width: 28px; height: 10px; justify-self: end; } .msg-skel-more { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 16px; } .msg-skel-more span { width: 6px; height: 6px; border-radius: 999px; } .msg-skel-more span:nth-child(2) { animation-delay: .15s; } .msg-skel-more span:nth-child(3) { animation-delay: .3s; } .msg-detail-skel { flex: 1; min-height: 0; padding: 28px; } .msg-skel-title { height: 22px; width: 46%; margin-bottom: 14px; } .msg-skel-lead { height: 12px; width: 88%; margin-bottom: 10px; } .msg-skel-lead-2 { width: 62%; margin-bottom: 24px; } .msg-skel-summary { display: grid; gap: 16px; padding: 20px; border-radius: 12px; background: rgba(34, 42, 54, 0.04); } .msg-skel-kv { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 20px; } .msg-skel-k { height: 11px; width: 52px; } .msg-skel-v { height: 12px; width: 42%; } .msg-skel-kv:nth-child(even) .msg-skel-v { width: 58%; } .msg-skel-kv:nth-child(3n) .msg-skel-v { width: 34%; } .msg-detail { padding: 0; background: rgba(255, 255, 255, 0.72); } .msg-detail-body { flex: 1; min-height: 0; overflow-y: auto; padding: 28px; } .msg-detail h2 { margin: 0 0 8px; font-size: 22px; font-weight: 600; color: var(--st-text); line-height: 1.35; } .msg-detail-body > p { margin: 0 0 24px; color: var(--st-muted); font-size: 14px; line-height: 1.7; } .msg-summary { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px 20px; padding: 20px; border-radius: 12px; background: rgba(34, 42, 54, 0.05); } .msg-summary span { color: var(--st-muted); font-size: 13px; } .msg-summary strong { font-size: 14px; font-weight: 600; color: var(--st-text); min-width: 0; overflow-wrap: break-word; } .msg-related { justify-self: start; padding: 0; border: 0; background: none; color: var(--klein); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; } .msg-related:hover { color: #002680; } .msg-timeline { margin-top: 18px; padding: 16px; border-radius: 12px; background: rgba(34, 42, 54, 0.04); } .msg-timeline-h { margin-bottom: 12px; color: var(--st-text); font-size: 13px; font-weight: 600; } .msg-step { display: grid; grid-template-columns: 68px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(34, 42, 54, 0.07); } .msg-step:first-of-type { border-top: 0; padding-top: 0; } .msg-step .t { color: var(--st-muted); font-size: 12px; } .msg-step .d { color: var(--st-text); font-size: 13px; line-height: 1.55; } .msg-log { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--st-black); color: #fff; font-family: var(--font-mono); font-size: 11px; line-height: 1.7; white-space: pre-wrap; } .msg-log-empty { opacity: .48; } .msg-detail-f { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid rgba(34, 42, 54, 0.08); background: rgba(255, 255, 255, 0.7); } .msg-detail-f .spacer { flex: 1; } .msg-detail-empty { flex: 1; display: grid; place-items: center; align-content: center; color: var(--st-muted); text-align: center; } .msg-detail-empty-inner { display: grid; justify-items: center; gap: 10px; } .msg-detail-empty .ic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; line-height: 0; border-radius: 12px; background: rgba(34, 42, 54, 0.07); } .msg-detail-empty .ic svg { display: block; width: 22px; height: 22px; } @media (prefers-reduced-motion: reduce) { .msg-skel-bar, .msg-skel-ico, .msg-skel-time, .msg-skel-more span { animation: none; } } @media (max-width: 860px) { .msg-workbench { grid-template-columns: 1fr; height: auto; } .msg-inbox { border-right: 0; border-bottom: 1px solid var(--st-line); } .msg-list { max-height: 360px; } }