| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433 |
- :root {
- --ink: #1b2430;
- --muted: #5c6b7a;
- --line: #e2d9cc;
- --paper: #f6f1e8;
- --card: #fffdf8;
- --teal: #0e6e68;
- --teal-ink: #084843;
- --amber: #9a5b12;
- --red: #8f2d2d;
- --green: #1d6b45;
- --shadow: 0 10px 30px rgba(40, 32, 20, 0.06);
- font-family: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
- }
- * { box-sizing: border-box; }
- body { margin: 0; color: var(--ink); background: var(--paper); }
- button, input, select, textarea { font: inherit; color: inherit; }
- button { cursor: pointer; }
- h1, h2, h3, p { margin: 0; }
- .login {
- min-height: 100vh;
- display: grid;
- grid-template-columns: 320px 1fr;
- }
- .login-side {
- background: var(--teal-ink);
- color: #f3efe6;
- padding: 48px 36px;
- }
- .login-side h1 { font-size: 28px; font-weight: 650; letter-spacing: 0.04em; }
- .login-side p { margin-top: 16px; line-height: 1.7; color: #d5ebe8; }
- .login-main { padding: 40px 48px 64px; }
- .login-main h2 { font-size: 20px; font-weight: 640; }
- .persona-grid {
- margin-top: 20px;
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
- gap: 12px;
- }
- .persona {
- text-align: left;
- background: var(--card);
- border: 1px solid var(--line);
- border-radius: 12px;
- padding: 14px 16px;
- box-shadow: var(--shadow);
- }
- .persona strong { display: block; font-size: 16px; }
- .persona span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
- .persona:hover { border-color: var(--teal); }
- .shell { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
- .nav {
- background: #172028;
- color: #e7e1d6;
- padding: 22px 14px;
- display: flex;
- flex-direction: column;
- gap: 4px;
- }
- .brand { padding: 0 8px 16px; font-weight: 650; letter-spacing: 0.06em; }
- .nav button {
- background: transparent;
- border: 0;
- color: inherit;
- text-align: left;
- border-radius: 8px;
- padding: 9px 10px;
- width: 100%;
- font-size: 14px;
- cursor: pointer;
- }
- .nav button.active, .nav button:hover { background: rgba(255, 255, 255, 0.08); }
- .nav .nav-group {
- font-size: 12px;
- letter-spacing: 0.08em;
- text-transform: uppercase;
- color: #8ea0a0;
- padding: 14px 10px 6px;
- cursor: pointer;
- display: flex;
- justify-content: space-between;
- align-items: center;
- user-select: none;
- }
- .nav .nav-group:hover { background: transparent; color: #c2d3d1; }
- .nav .nav-group .caret { font-size: 11px; transition: transform 0.18s ease; }
- .nav .nav-group.open .caret { transform: rotate(0deg); }
- .nav .nav-sub { padding-left: 12px; display: flex; flex-direction: column; gap: 2px; }
- .nav .nav-sub.closed { display: none; }
- .nav .nav-sub .nav-leaf { font-size: 13.5px; color: #d1c8ba; padding: 7px 10px; }
- .nav .nav-sub .nav-leaf.active {
- background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
- color: #fff;
- }
- .nav .who { margin-top: auto; padding: 12px 8px 0; font-size: 13px; color: #b7c4c2; line-height: 1.5; }
- .nav .who button { margin-top: 8px; border: 1px solid rgba(255,255,255,0.2); width: 100%; }
- .main { padding: 22px 28px 48px; min-width: 0; }
- .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
- .top h1 { font-size: 22px; font-weight: 650; }
- .top p { color: var(--muted); margin-top: 4px; font-size: 13px; }
- .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
- .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
- .card, .panel {
- background: var(--card);
- border: 1px solid var(--line);
- border-radius: 14px;
- box-shadow: var(--shadow);
- }
- .card { padding: 14px 16px; }
- .card b { display: block; font-size: 22px; margin-top: 4px; word-break: break-word; }
- .card span { color: var(--muted); font-size: 13px; }
- .panel { padding: 16px 18px; margin-bottom: 14px; overflow-x: auto; min-width: 0; }
- .panel h2 { font-size: 16px; margin-bottom: 10px; }
- .panel > .note { margin-top: 8px; }
- table { width: 100%; border-collapse: collapse; font-size: 14px; }
- th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
- td.wrap { white-space: normal; min-width: 240px; }
- th { color: var(--muted); font-weight: 550; font-size: 12px; }
- tr.clickable { cursor: pointer; }
- tr.clickable:hover { background: #f3efe6; }
- .pill {
- display: inline-block;
- border-radius: 999px;
- padding: 2px 8px;
- font-size: 12px;
- background: #efe7da;
- white-space: nowrap;
- }
- .pill.ok { background: #e5f4ea; color: var(--green); }
- .pill.wait { background: #fff1d6; color: var(--amber); }
- .pill.bad { background: #fde8e4; color: var(--red); }
- .pill.run { background: #e5f3f2; color: var(--teal-ink); }
- .btn, .btn.ghost {
- border-radius: 8px;
- padding: 7px 12px;
- border: 1px solid var(--teal);
- background: var(--teal);
- color: white;
- white-space: nowrap;
- }
- .btn.ghost { background: transparent; color: var(--teal-ink); }
- .btn.warn { background: var(--red); border-color: var(--red); }
- .btn:disabled { opacity: 0.45; cursor: not-allowed; }
- label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
- input, select, textarea {
- width: 100%;
- max-width: 420px;
- border: 1px solid var(--line);
- background: white;
- border-radius: 8px;
- padding: 8px 10px;
- }
- input[type="checkbox"], input[type="radio"] { width: auto; max-width: none; margin: 0; }
- td select, .row select { width: auto; min-width: 96px; max-width: 200px; }
- .row input { width: auto; }
- textarea { min-height: 88px; max-width: 560px; }
- .form-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
- /* 多列表单 */
- .form-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
- gap: 0 18px;
- }
- .form-grid label { margin-top: 8px; }
- .form-grid .form-actions { grid-column: 1 / -1; }
- /* 对象存储键列表 / 材料列表 */
- ul.files {
- margin: 8px 0 0;
- padding: 0;
- list-style: none;
- }
- ul.files li {
- padding: 6px 10px;
- background: #f7f2e8;
- border: 1px solid var(--line);
- border-radius: 8px;
- margin-bottom: 6px;
- font-size: 13px;
- word-break: break-all;
- }
- /* 复选列表(成员范围、企业直选) */
- .checklist {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
- gap: 2px 18px;
- margin-top: 6px;
- }
- label.ck {
- display: flex;
- align-items: center;
- gap: 7px;
- font-size: 14px;
- font-weight: normal;
- color: var(--ink);
- margin: 4px 0;
- line-height: 1.5;
- }
- label.ck .note { font-weight: normal; }
- /* 区域树 */
- ul.tree {
- list-style: none;
- margin: 0;
- padding: 0;
- }
- ul.tree ul.tree { padding-left: 24px; }
- .tree-node {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 2px 0;
- }
- .tree-select {
- background: transparent;
- border: 1px solid transparent;
- border-radius: 8px;
- padding: 5px 10px;
- color: var(--ink);
- }
- .tree-select:hover { background: #f3efe6; }
- .tree-node.on .tree-select {
- background: var(--teal);
- border-color: var(--teal);
- color: #fff;
- }
- .lv {
- font-size: 12px;
- color: var(--teal-ink);
- background: #e5f3f2;
- border-radius: 6px;
- padding: 1px 7px;
- white-space: nowrap;
- }
- .cnt { font-size: 12px; color: var(--muted); white-space: nowrap; }
- /* 范围配置里的勾选树 */
- ul.tree.check label.ck { margin: 5px 0; }
- ul.tree.check ul.tree { margin: 2px 0; }
- .note { color: var(--muted); font-size: 13px; line-height: 1.6; }
- .alert {
- background: #fff4ec;
- border: 1px solid #f0d2bc;
- color: #7a3e12;
- border-radius: 12px;
- padding: 10px 12px;
- margin-bottom: 12px;
- font-size: 14px;
- line-height: 1.6;
- }
- .toast {
- position: fixed;
- right: 20px;
- bottom: 20px;
- background: var(--ink);
- color: white;
- padding: 12px 14px;
- border-radius: 10px;
- max-width: 320px;
- box-shadow: var(--shadow);
- font-size: 14px;
- line-height: 1.5;
- }
- .split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; align-items: start; }
- .log { margin: 0; padding-left: 18px; color: var(--muted); }
- .log li { margin: 4px 0; line-height: 1.6; }
- @media (max-width: 900px) {
- .login, .shell, .split { grid-template-columns: 1fr; }
- .login-side { padding: 28px 22px; }
- }
- /* ================= 交互与视觉增强 ================= */
- /* 全局过渡基类,给常见可交互元素 */
- button, .card, .panel, tr.clickable, .tree-select, label.ck {
- transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease, box-shadow 180ms ease;
- }
- input, select, textarea { transition: border-color 180ms ease, box-shadow 180ms ease; }
- /* 侧栏:折叠子菜单过渡(用 max-height 替代 display:none) */
- .nav .nav-sub { overflow: hidden; transition: max-height 220ms ease, opacity 220ms ease; max-height: 600px; opacity: 1; }
- .nav .nav-sub.closed { max-height: 0; opacity: 0; }
- /* 侧栏叶子按钮活跃态:左侧竖条 + 更强对比 */
- .nav .nav-sub .nav-leaf.active {
- position: relative;
- background: rgba(14, 110, 104, 0.22);
- color: #fff;
- padding-left: 14px;
- }
- .nav .nav-sub .nav-leaf.active::before {
- content: "";
- position: absolute; left: -12px; top: 4px; bottom: 4px; width: 3px;
- background: #19d0c0; border-radius: 2px;
- }
- .nav .nav-sub .nav-leaf:hover { color: #fff; background: rgba(255,255,255,0.06); }
- /* 顶层叶子按钮(如"概览""审计日志")活跃态 */
- .nav > button.nav-leaf.active {
- background: rgba(14, 110, 104, 0.22);
- color: #fff;
- }
- /* 折叠 caret 旋转 */
- .nav .nav-group .caret { transform: rotate(-90deg); }
- .nav .nav-group.open .caret { transform: rotate(0deg); }
- /* 按钮:focus-visible + 按下态 */
- .btn:focus-visible, button:focus-visible,
- .persona:focus-visible, .tree-select:focus-visible {
- outline: 2px solid var(--teal);
- outline-offset: 2px;
- }
- .btn:active { transform: translateY(1px); }
- /* 表格:thead 底线 + hover 高亮 + 斑马纹 */
- table { border-radius: 10px; overflow: hidden; }
- thead th {
- background: #faf4e8;
- border-bottom: 2px solid var(--line);
- padding: 10px 10px;
- position: sticky; top: 0; z-index: 1;
- }
- tbody tr:nth-child(even) td { background: #fbf7ee; }
- tbody tr.clickable:hover td, tbody tr:hover td {
- background: #f0e8d6 !important;
- }
- /* 表单 focus glow */
- input:focus, select:focus, textarea:focus {
- border-color: var(--teal);
- box-shadow: 0 0 0 3px rgba(14, 110, 104, 0.14);
- outline: none;
- }
- /* panel / card 入场动画 */
- @keyframes fadeInUp {
- from { opacity: 0; transform: translateY(6px); }
- to { opacity: 1; transform: none; }
- }
- .panel, .card, .alert, .persona { animation: fadeInUp 300ms ease both; }
- .panel:nth-child(2) { animation-delay: 40ms; }
- .panel:nth-child(3) { animation-delay: 80ms; }
- .panel:nth-child(4) { animation-delay: 120ms; }
- /* toast 滑入 */
- .toast {
- animation: slideInRight 280ms ease both;
- }
- @keyframes slideInRight {
- from { opacity: 0; transform: translateX(24px); }
- to { opacity: 1; transform: none; }
- }
- /* 登录 persona 悬停抬升 */
- .persona { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
- .persona:hover {
- transform: translateY(-2px);
- box-shadow: 0 14px 32px rgba(40, 32, 20, 0.12);
- border-color: var(--teal);
- }
- /* webkit 滚动条 */
- ::-webkit-scrollbar { width: 10px; height: 10px; }
- ::-webkit-scrollbar-track { background: transparent; }
- ::-webkit-scrollbar-thumb { background: #d7ccba; border-radius: 5px; }
- ::-webkit-scrollbar-thumb:hover { background: #b9ac95; }
- .panel::-webkit-scrollbar-thumb { background: #d7ccba; }
- /* pill hover 微动(可交互的情况下) */
- .pill { cursor: default; }
- /* 区域树选中节点加 glow */
- .tree-node.on .tree-select {
- box-shadow: 0 0 0 2px rgba(14,110,104,0.2);
- }
- /* 区域树操作菜单 */
- .tree-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; position: relative; }
- .tree-head h2 { margin: 0; }
- .tree-node { position: relative; }
- .node-menu-btn {
- background: transparent; border: 1px solid transparent; border-radius: 6px;
- color: var(--muted); font-weight: 700; font-size: 15px; line-height: 1;
- padding: 3px 7px; margin-left: 2px;
- }
- .node-menu-btn:hover { background: #efe7da; color: var(--ink); }
- .tree-node.on .node-menu-btn { color: #fff; }
- .tree-node.on .node-menu-btn:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
- .node-menu {
- position: absolute; top: 100%; left: 0; z-index: 30;
- background: var(--card); border: 1px solid var(--line); border-radius: 10px;
- box-shadow: 0 12px 32px rgba(40, 32, 20, 0.16);
- padding: 4px; min-width: 176px;
- display: flex; flex-direction: column; gap: 2px;
- }
- .node-menu button {
- text-align: left; background: transparent; border: 0; border-radius: 7px;
- padding: 7px 10px; font-size: 13.5px;
- }
- .node-menu button:hover { background: #f3efe6; }
- .node-menu button.danger { color: var(--red); }
- .node-menu button.danger:hover { background: #fde8e4; }
- /* 弹窗 */
- .modal-overlay {
- position: fixed; inset: 0; z-index: 50;
- background: rgba(23, 32, 40, 0.45);
- display: flex; align-items: center; justify-content: center;
- padding: 20px;
- animation: fadeIn 160ms ease both;
- }
- @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
- .modal {
- background: var(--card); border: 1px solid var(--line); border-radius: 14px;
- padding: 20px 22px; width: 100%; max-width: 480px;
- box-shadow: 0 20px 60px rgba(20, 16, 10, 0.28);
- }
- .modal h3 { font-size: 17px; margin-bottom: 10px; }
- .modal label { margin-top: 2px; }
- .modal input, .modal select { max-width: 100%; }
|