/* 团队中心 · 对照影擎 team-center。仅 scope 在 .team-page,不改共享 .btn/.pill/.input */ .team-page { --klein: #002fa7; --st-muted: #6f747c; --st-text: #17181a; --st-black: #101012; --st-line: rgba(34, 42, 54, 0.10); --st-wash: rgba(34, 42, 54, 0.045); --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; .team-inner { width: min(1560px, 100%); margin: 0 auto; } .page-head { margin-bottom: 34px; } .page-head h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.02em; } .page-head .sub { margin-top: 10px; font-size: 15px; color: var(--st-muted); } .tc-ghost, .tc-primary, .tc-compact { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; cursor: pointer; font: inherit; font-size: 14px; } .tc-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); } .tc-ghost:hover { background: rgba(34, 42, 54, 0.10); } .tc-ghost svg, .tc-primary svg, .tc-compact svg { display: block; width: 18px; height: 18px; } .tc-primary { min-width: 132px; height: 50px; padding: 0 22px; color: #fff; border: 0; background: var(--klein); box-shadow: 0 9px 18px rgba(0, 47, 167, 0.18); } .tc-primary:hover { background: #002680; } .tc-compact { height: 38px; padding: 0 15px; color: #fff; border: 0; background: var(--st-black); } .tc-compact-klein { color: var(--klein); border: 1px solid rgba(0, 47, 167, 0.18); background: rgba(0, 47, 167, 0.07); } .tc-compact-klein:hover { color: #fff; background: var(--klein); } .tc-hero { display: grid; grid-template-columns: minmax(260px, 0.9fr) repeat(4, minmax(150px, 0.7fr)); gap: 0; overflow: hidden; border-radius: 14px; color: #fff; background: #202124; box-shadow: 0 14px 30px rgba(16, 16, 18, 0.18); } .tc-identity, .tc-metric { min-height: 158px; padding: 26px; } .tc-identity { display: flex; flex-direction: column; justify-content: space-between; } .tc-identity h2 { margin: 0 0 8px; font-size: 23px; font-weight: 600; color: #fff; } .tc-identity p, .tc-metric span, .tc-metric small { color: rgba(255, 255, 255, 0.58); } .tc-identity p { margin: 0; font-size: 12px; } .tc-team-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-bottom: 10px; border-radius: 7px; color: #fff; background: rgba(255,255,255,.1); font-size: 11px; letter-spacing: .04em; } .tc-metric { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255, 255, 255, 0.13); } .tc-metric strong { margin: 9px 0 6px; font-size: 20px; font-weight: 600; color: #fff; letter-spacing: -.02em; } .tc-metric small { font-size: 11px; } .tc-section { margin-top: 28px; } .tc-section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; } .tc-section-title h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--st-text); } .tc-section-title p { margin: 5px 0 0; color: var(--st-muted); font-size: 12px; } .tc-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr); gap: 20px; align-items: stretch; } .tc-panel { min-width: 0; border: 1px solid var(--st-line); border-radius: 14px; background: var(--st-wash); box-shadow: var(--st-shadow); overflow: hidden; } .tc-panel-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 20px; border-bottom: 1px solid rgba(34, 42, 54, 0.08); } .tc-panel-head h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--st-text); } .tc-search { width: 220px; 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); } .tc-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--st-text); } .tc-row { min-height: 72px; display: grid; grid-template-columns: minmax(160px, 1.4fr) 64px minmax(90px, 0.7fr) minmax(80px, 0.65fr) minmax(90px, 0.7fr) minmax(90px, 0.75fr) 92px; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid rgba(34, 42, 54, 0.07); font-size: 13px; color: var(--st-text); } .tc-row:last-of-type { border-bottom: 0; } .tc-row-head { min-height: 46px; color: var(--st-muted); font-size: 12px; } .tc-person { display: flex; align-items: center; gap: 12px; min-width: 0; } .tc-person strong, .tc-person span { display: block; } .tc-person strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tc-person span { margin-top: 3px; color: var(--st-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tc-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--st-black); font-size: 16px; font-weight: 600; } .tc-tag { display: inline-flex; align-items: center; width: max-content; height: 25px; padding: 0 9px; border-radius: 7px; color: #4c5360; background: rgba(34, 42, 54, 0.08); font-size: 11px; } .tc-tag-super { color: var(--klein); background: rgba(0, 47, 167, 0.09); } .tc-tag-admin { color: #138d3f; background: rgba(22, 184, 78, 0.10); } .tc-quota { font-size: 12px; color: var(--st-muted); } .tc-used strong { display: block; font-size: 13px; font-weight: 600; } .used-bar { width: 80px; height: 4px; background: rgba(34, 42, 54, 0.08); border-radius: 2px; overflow: hidden; margin-top: 6px; } .used-bar > span { display: block; height: 100%; background: var(--klein); } .used-bar > span.ok { background: #42c366; } .used-bar > span.warn { background: #c73737; } .tc-acts { display: flex; gap: 4px; justify-content: flex-end; } .tc-icon { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; line-height: 0; border: 1px solid var(--st-line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--st-muted); padding: 0; } .tc-icon svg { display: block; width: 14px; height: 14px; } .tc-icon:hover { color: var(--st-text); background: rgba(34, 42, 54, 0.06); } .tc-icon.danger:hover { color: #c73737; border-color: rgba(199, 55, 55, .3); } .tc-muted { font-size: 12px; color: var(--st-muted); } .tc-activity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 20px; } .tc-activity-item { min-height: 74px; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid rgba(34, 42, 54, 0.07); border-radius: 12px; background: rgba(255, 255, 255, 0.62); } .tc-dot { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 7px; border-radius: 50%; background: var(--klein); } .tc-activity-item p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--st-text); } .tc-activity-item span { display: block; margin-top: 4px; color: var(--st-muted); font-size: 12px; } .tc-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 18px 20px 2px; } .tc-summary div { padding: 14px; border-radius: 11px; background: rgba(0, 47, 167, 0.055); } .tc-summary span, .tc-summary strong { display: block; } .tc-summary span { color: var(--st-muted); font-size: 11px; } .tc-summary strong { margin-top: 7px; font-size: 16px; font-weight: 600; color: var(--st-text); } .tc-segmented { display: flex; align-items: center; gap: 8px; } .tc-seg { height: 38px; padding: 0 16px; border: 0; border-radius: 9px; color: #50555d; background: transparent; cursor: pointer; font: inherit; font-size: 14px; } .tc-seg.active { color: #fff; background: var(--st-black); } .tc-chart { position: relative; height: 220px; display: flex; align-items: flex-end; gap: 12px; padding: 30px 28px 22px; } .tc-chart::after { content: ""; position: absolute; right: 28px; bottom: 42px; left: 28px; height: 1px; background: rgba(34, 42, 54, 0.12); } .tc-chart-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--st-muted); font-size: 13px; } .tc-bar-group { position: relative; z-index: 1; height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 9px; color: var(--st-muted); font-size: 11px; min-width: 0; } .tc-bar { width: min(30px, 70%); min-height: 10px; border-radius: 7px 7px 3px 3px; background: var(--klein); opacity: 0.78; } .tc-bar-value { color: #343a45; font-size: 10px; font-weight: 600; line-height: 1; } .tc-bar-group span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .tc-perm-panel { padding: 8px 0 4px; } .perm-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; } .perm-table th, .perm-table td { padding: 10px 20px; } .perm-table th { border-bottom: 1px solid rgba(34, 42, 54, 0.08); color: var(--st-muted); font-size: 12px; font-weight: 500; text-align: left; } .perm-table th:not(:first-child), .perm-table td:not(:first-child) { text-align: center; } .perm-table tbody td:first-child { color: var(--st-text); } .perm-table tbody tr { border-bottom: 1px solid rgba(34, 42, 54, 0.07); } .perm-table .yes { color: #138d3f; font-weight: 600; } .perm-table .no { color: var(--black-alpha-32); } .list-pager { padding: 12px 20px 16px; border-top: 1px solid rgba(34, 42, 54, 0.07); } @media (max-width: 1100px) { margin: -28px -24px -48px; .tc-hero { grid-template-columns: minmax(230px, 1fr) repeat(2, minmax(125px, 0.7fr)); } .tc-grid { grid-template-columns: 1fr; } .tc-row { grid-template-columns: minmax(140px, 1.2fr) 64px minmax(80px, 0.7fr) minmax(80px, 0.7fr) 92px; } .tc-row > :nth-child(3), .tc-row > :nth-child(5) { display: none; } .tc-activity { grid-template-columns: 1fr; } } } /* ═══════════════════════════════════════════════════════════════════ 团队页定制弹窗 · 注意:TeamModal 经 createPortal 挂到 document.body, 弹窗内容在 .modal.invite-modal 之下、不在 .team-page 内 → 这些类必须 写在顶层(不能 scope 进 .team-page)。全部用 restraint token,不写裸 hex。 绝不复用 styles.css 旧暖米调色板的同名类(.role-choice/.cred-card 等)。 ═══════════════════════════════════════════════════════════════════ */ /* 共用:字段必填星标 / 标签副注 */ .invite-modal .field-label .req { color: var(--accent-crimson); margin-left: 2px; } .invite-modal .field-label .lbl-note { color: var(--black-alpha-48); font-weight: 400; margin-left: 2px; font-family: var(--font-mono); } /* 共用:输入框 + 行内随机生成按钮 */ .invite-modal .input-with-gen { display: flex; gap: 8px; } .invite-modal .input-with-gen .input { flex: 1; min-width: 0; } .invite-modal .input-with-gen .btn-sm { height: 38px; padding: 0 12px; flex: 0 0 auto; } .invite-modal .pw-input { letter-spacing: .04em; } /* 数字输入去掉 spinner(对齐设计稿) */ .invite-modal .num-input::-webkit-outer-spin-button, .invite-modal .num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .invite-modal .num-input { -moz-appearance: textfield; font-variant-numeric: tabular-nums; } /* ─── 角色双卡(创建账户 / 编辑成员共用)─── */ .invite-modal .role-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .invite-modal .role-choice { padding: 12px 14px; border: 1px solid var(--border-faint); border-radius: var(--r-md); cursor: pointer; transition: border-color var(--t-base), background var(--t-base); } .invite-modal .role-choice:hover { background: var(--background-lighter); } .invite-modal .role-choice.selected { border-color: var(--heat); background: var(--heat-12); } .invite-modal .role-choice .title { font-size: 13px; font-weight: 600; color: var(--accent-black); } .invite-modal .role-choice .desc { font-size: 11px; color: var(--black-alpha-56); margin-top: 2px; font-family: var(--font-mono); letter-spacing: .02em; } /* ─── 创建账户:三档额度网格 ─── */ .create-acct-modal .quota-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .create-acct-modal .quota-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .create-acct-modal .quota-cell .qk { font-family: var(--font-mono); font-size: 10.5px; color: var(--black-alpha-48); letter-spacing: .02em; } .create-acct-modal .quota-cell .input { height: 34px; padding: 0 10px; } /* ─── 分享凭据:cred-card(icon 沿用 .ic-m 单橙锚点,符合「全场只有一个 accent」)─── */ .share-acct-modal .cred-card { background: var(--background-lighter); border: 1px solid var(--border-faint); border-radius: var(--r-md); overflow: hidden; } .share-acct-modal .cred-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) 28px; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border-faint); } .share-acct-modal .cred-row:last-child { border-bottom: 0; } .share-acct-modal .cred-row .ck { font-size: 11.5px; color: var(--black-alpha-48); font-family: var(--font-mono); letter-spacing: .02em; } .share-acct-modal .cred-row .cv { font-size: 13px; color: var(--accent-black); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .share-acct-modal .cred-row .cv.mono { font-family: var(--font-mono); letter-spacing: .04em; } .share-acct-modal .cred-copy { width: 28px; height: 28px; background: transparent; border: 1px solid var(--border-faint); border-radius: var(--r-sm); color: var(--black-alpha-56); display: grid; place-items: center; cursor: pointer; transition: border-color var(--t-base), color var(--t-base); } .share-acct-modal .cred-copy:hover { border-color: var(--heat-20); color: var(--heat); } .share-acct-modal .cred-rules { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--black-alpha-56); letter-spacing: .02em; line-height: 1.7; } .share-acct-modal .cred-rules .li { display: flex; gap: 8px; } .share-acct-modal .cred-rules .li::before { content: none; } .share-acct-modal .cred-copy-all { margin-top: 14px; } .share-acct-modal .cred-copy-all .btn-sm { width: 100%; justify-content: center; } /* ─── 编辑成员:只读用户名框 ─── */ .edit-member-modal .readonly-input { background: var(--background-lighter); color: var(--black-alpha-56); cursor: not-allowed; } /* ─── 重置密码:警示框 ─── */ .reset-pwd-modal .reset-pwd-warn { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--heat-12); border: 1px solid var(--heat-20); border-radius: var(--r-md); margin-bottom: 14px; font-size: 12.5px; color: var(--heat); line-height: 1.5; } .reset-pwd-modal .reset-pwd-warn svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; } /* ─── 设置月限额:快捷预设 pill + 实时剩余额度 ─── */ .limit-modal .limit-presets { display: flex; flex-wrap: wrap; gap: 6px; } .limit-modal .limit-presets .lp { height: 32px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-pill); font-size: 12px; font-family: var(--font-mono); color: var(--accent-black); cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color var(--t-base), background var(--t-base), color var(--t-base); } .limit-modal .limit-presets .lp:hover { border-color: var(--heat-20); background: var(--heat-12); color: var(--heat); } .limit-modal .limit-presets .lp.selected { border-color: var(--heat); background: var(--heat-12); color: var(--heat); font-weight: 600; } .limit-modal .limit-info { margin-top: 14px; padding: 10px 12px; background: var(--background-lighter); border-radius: var(--r-md); font-size: 11.5px; display: flex; flex-direction: column; gap: 4px; } .limit-modal .limit-info .li-row { display: flex; align-items: baseline; gap: 8px; } .limit-modal .limit-info .lk { font-family: var(--font-mono); color: var(--black-alpha-48); letter-spacing: .02em; } .limit-modal .limit-info .lv { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--accent-black); font-weight: 600; } .limit-modal .limit-info .lv.neg { color: var(--accent-crimson); }