:root { color: var(--ink); background: var(--bg); font-family: "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 14px; --bg: #0d1117; --panel: #161a22; --elevated: #1b212b; --ink: #e6edf3; --muted: #9aa4ae; --line: #262c36; --accent: #79c0ff; --accent-soft: rgba(121, 192, 255, 0.16); --sidebar: #0d1117; --danger: #f85149; } :root[data-scheme="day"] { --bg: #f6f8fa; --panel: #ffffff; --elevated: #f6f8fa; --ink: #0d1117; --muted: #57606a; --line: #d0d7de; --accent: #0969da; --accent-soft: rgba(9, 105, 218, 0.12); --sidebar: #ffffff; --danger: #cf222e; } ::selection { background: var(--accent-soft); color: var(--ink); } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } * { scrollbar-color: var(--line) transparent; } html, body, #app, .app-root { margin: 0; height: 100%; min-height: 0; } button, input, select { font-family: inherit; } .gate { position: relative; box-sizing: border-box; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--bg); } .theme-switch { position: absolute; top: 16px; right: 16px; } .gate-card { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 28px 28px 22px; } .brand { display: flex; gap: 14px; align-items: center; justify-content: center; margin-bottom: 22px; } .brand-mark { width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--accent); color: var(--accent); background: transparent; display: grid; place-items: center; flex: none; font-size: 15px; font-weight: 650; line-height: 1; } .gate .brand-mark { width: 36px; height: 36px; font-size: 18px; } .brand h1 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -0.03em; } .form-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; align-items: center; margin-bottom: 12px; } .form-row label { display: flex; align-items: center; gap: 4px; color: var(--ink); } .gate-card.with-jigsaw { width: max-content; max-width: calc(100% - 32px); } .jigsaw-block { margin-top: 4px; } .jigsaw-block p { margin: 0 0 8px; text-align: center; } .jigsaw { position: relative; margin: 0 auto; user-select: none; touch-action: none; } .jigsaw .board, .jigsaw .piece { display: block; max-width: none; } .jigsaw .piece { position: absolute; pointer-events: none; } .jigsaw-track { position: relative; height: 36px; margin: 8px auto 0; border: 1px solid var(--line); background: var(--elevated); touch-action: none; } .jigsaw-handle { position: absolute; top: -1px; width: 40px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--accent); background: var(--panel); color: var(--accent); cursor: grab; } .jigsaw-handle:disabled { cursor: wait; } .gate-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; } .shell { height: 100%; background: var(--bg); color: var(--ink); } .shell .n-layout, .shell .n-layout-scroll-container, .content { background: var(--bg); } .shell .n-layout-sider { background: var(--sidebar); border-right: 1px solid var(--line); } .shell .n-layout-sider > .n-scrollbar, .shell .n-layout-sider .n-scrollbar-container, .shell .n-layout-sider .n-scrollbar-content { height: 100%; } .sider-body { flex: 1; height: 100%; display: flex; flex-direction: column; min-height: 0; } .sider-brand { height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; } .sider-brand.compact { justify-content: center; padding: 0; } .sider-brand strong { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; } .sider-body .n-menu { flex: 1; min-height: 0; padding-top: 8px; } .shell .n-menu .n-menu-item-content--selected::before { background-color: transparent !important; border-left: 2px solid var(--accent); border-radius: 0; } .sider-user { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; } .sider-user.compact { flex-direction: column; padding: 8px 0 12px; } .sider-user .who { min-width: 0; flex: 1; } .sider-user strong, .sider-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sider-user span { color: var(--muted); font-size: 12px; } .sider-user strong { font-variant-numeric: tabular-nums; } .logout-btn.n-button { color: var(--danger); --n-text-color: var(--danger); --n-text-color-hover: var(--danger); --n-text-color-pressed: var(--danger); --n-text-color-focus: var(--danger); } .content { min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; } .page { height: 100%; min-height: 0; display: flex; flex-direction: column; padding: 28px 32px 20px; box-sizing: border-box; } .page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; } .page-head h2 { margin: 0 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -0.03em; } .page-head p { margin: 0; color: var(--muted); } .content > .n-layout-scroll-container, .content > .n-scrollbar, .content > .n-scrollbar > .n-scrollbar-container { height: 100%; overflow: hidden; } .home-page { overflow: hidden; } .home-page .page-head { flex: none; margin-bottom: 16px; } .home-page .page-head h2 { margin: 0; } .home { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; overflow: hidden; } .home-summary { flex: none; display: flex; flex-direction: column; gap: 12px; } .profile { display: flex; align-items: center; gap: 12px; } .profile strong, .profile span { display: block; } .profile span { margin-top: 4px; color: var(--muted); } .avatar, .avatar-fallback { width: 48px; height: 48px; border-radius: 4px; } .avatar { object-fit: cover; border: 1px solid var(--line); } .avatar-fallback { font-size: 20px; } .facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 16px; margin: 0; } .facts div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; } .facts dt { color: var(--muted); font-size: 12px; } .facts dd { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; } .boards { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; } .board { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; } .board h3 { flex: none; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 650; } .rail { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 16px 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; } .rail:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; } .rail ol { list-style: none; margin: 0; padding: 0; } .rail-empty { margin: 16px 0 0; color: var(--muted); } .event { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 12px; padding-top: 12px; } .mark { position: relative; } .mark::before { content: ""; position: absolute; left: 3px; top: 8px; bottom: -20px; width: 1px; background: var(--muted); opacity: 0.45; } .event:last-child .mark::before { display: none; } .mark::after { content: ""; position: absolute; left: 0; top: 5px; width: 7px; height: 7px; box-sizing: border-box; border: 1px solid var(--accent); border-radius: 50%; background: var(--panel); } .event-hit { min-width: 0; margin: 0; padding: 0 0 4px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; } .event-hit:hover strong { color: var(--accent); } .event time, .event .meta, .event .meta span { color: var(--muted); font-size: 12px; line-height: 1.4; } .event time { display: block; } .event .meta { display: flex; gap: 8px; margin: 2px 0 0; } .event .meta span.ok, .detail-table td.ok { color: var(--accent); } .event .meta span.late, .detail-table td.late { color: var(--danger); } .event time { font-variant-numeric: tabular-nums; } .event strong { display: block; margin-top: 2px; font-size: 14px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; } .detail-notice { margin: 0 0 12px; color: var(--danger); } .detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; } .detail-facts div { min-width: 0; } .detail-facts dt { color: var(--muted); font-size: 12px; } .detail-facts dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .detail h4 { margin: 16px 0 8px; font-size: 14px; } .detail-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; } .detail-table th, .detail-table td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; } .detail-table th { color: var(--muted); font-size: 12px; font-weight: 400; } .phase ul { list-style: none; margin: 0; padding: 0; } .phase h4 { display: flex; justify-content: space-between; gap: 12px; } .phase h4 span, .phase li span { color: var(--muted); font-size: 12px; font-weight: 400; } .phase li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); } .phase li strong { min-width: 0; font-weight: 650; overflow-wrap: anywhere; } .home-status { margin: 0 0 12px; color: var(--muted); } @media (max-width: 800px) { .page { padding: 16px 12px; } .boards { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); } .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .detail-facts { grid-template-columns: minmax(0, 1fr); } }