:root { color-scheme: light; --bg: #f7f7f8; --surface: #ffffff; --surface-subtle: #fafafa; --text: #131a2a; --muted: #687080; --border: #e1e3e8; --accent: #c6342d; --accent-hover: #a92823; --accent-soft: #fff0ee; --success: #2f7d4a; --danger: #b82d28; --focus: #8dafed; --shadow: 0 10px 28px rgba(24, 30, 44, 0.07); font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; } [data-theme="dark"] { color-scheme: dark; --bg: #111318; --surface: #191c23; --surface-subtle: #15181e; --text: #f1f3f7; --muted: #a2a9b5; --border: #30343d; --accent: #e65b53; --accent-hover: #f1746d; --accent-soft: #38211f; --success: #65b77e; --danger: #f1746d; --focus: #86aef4; --shadow: 0 14px 34px rgba(0, 0, 0, 0.28); } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; } button, input { font: inherit; } .shell { width: min(1260px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 56px; } .page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; } h1 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.025em; } .page-header p, .section-intro p { margin: 7px 0 0; color: var(--muted); } .button { min-height: 42px; padding: 9px 18px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 650; transition: 160ms ease; white-space: nowrap; } .button:focus-visible, .tab:focus-visible, input:focus-visible, .link-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent); outline-offset: 2px; } .button:disabled { cursor: wait; opacity: .65; } .button--primary { color: #fff; background: var(--accent); box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 20%, transparent); } .button--primary:hover { background: var(--accent-hover); transform: translateY(-1px); } .button--secondary { color: var(--text); background: var(--surface); border-color: var(--border); } .button--secondary:hover { border-color: color-mix(in srgb, var(--text) 24%, var(--border)); } .summary { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); } .summary__item { display: flex; min-height: 112px; flex-direction: column; justify-content: center; padding: 22px 30px; } .summary__item + .summary__item { border-left: 1px solid var(--border); } .summary span { color: var(--muted); font-weight: 600; } .summary strong { margin-top: 2px; font-size: 30px; line-height: 1.2; } .tabs { display: flex; gap: 30px; margin-top: 24px; border-bottom: 1px solid var(--border); } .tab { position: relative; padding: 14px 4px 15px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 650; } .tab:hover, .tab.is-active { color: var(--accent); } .tab.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); content: ""; } .panel { margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; } .panel[hidden] { display: none; } .editor { display: grid; grid-template-columns: minmax(260px, 1.35fr) minmax(210px, 1fr) auto; align-items: end; gap: 16px; padding: 22px; background: var(--surface-subtle); border-bottom: 1px solid var(--border); } label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 650; } input { width: 100%; height: 42px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); transition: border 160ms ease, box-shadow 160ms ease; } input::placeholder { color: color-mix(in srgb, var(--muted) 76%, transparent); } input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); outline: none; } .section-intro { padding: 22px; border-bottom: 1px solid var(--border); } .section-intro h2 { margin: 0; font-size: 18px; } .table-wrap { overflow-x: auto; } table { width: 100%; table-layout: auto; border-collapse: collapse; } th, td { padding: 15px 20px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--border); } th { background: var(--surface-subtle); color: var(--muted); font-size: 13px; font-weight: 700; } tbody tr:last-child td { border-bottom: 0; } tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 42%, transparent); } tbody tr.is-editing { background: color-mix(in srgb, var(--accent-soft) 62%, transparent); } .alias-cell { min-width: 320px; } .inline-editor { min-width: 260px; } .actions { white-space: nowrap; } .link-button { padding: 4px 7px; border: 0; border-radius: 5px; background: transparent; color: #3568ae; cursor: pointer; font-weight: 650; } [data-theme="dark"] .link-button { color: #8db9f4; } .link-button:hover { background: color-mix(in srgb, currentColor 10%, transparent); } .link-button:disabled { cursor: wait; opacity: .55; } .link-button--danger { color: var(--danger); } .state { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; } .state::before { width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ""; } .state--on { color: var(--success); } .state--off { color: var(--muted); } .tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 0 auto; } .tag { display: inline-flex; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 650; } .empty { padding: 42px 20px; color: var(--muted); text-align: center; } .toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; max-width: min(380px, calc(100vw - 48px)); padding: 13px 18px; border-left: 4px solid var(--success); border-radius: 8px; background: var(--surface); box-shadow: 0 14px 38px rgba(0, 0, 0, .18); opacity: 0; pointer-events: none; transform: translateY(14px); transition: 180ms ease; } .toast.is-visible { opacity: 1; transform: translateY(0); } .toast.is-error { border-left-color: var(--danger); } @media (max-width: 760px) { .shell { width: min(100% - 24px, 1260px); padding-top: 20px; } .page-header { align-items: stretch; flex-direction: column; } .summary { grid-template-columns: 1fr; } .summary__item { min-height: 86px; padding: 16px 20px; } .summary__item + .summary__item { border-top: 1px solid var(--border); border-left: 0; } .tabs { gap: 16px; overflow-x: auto; } .tab { flex: 0 0 auto; } .editor { grid-template-columns: 1fr; } .table-wrap { overflow: visible; } table, tbody, tr, td { display: block; width: 100%; } thead { display: none; } tbody tr { padding: 7px 0; border-bottom: 1px solid var(--border); } tbody tr:last-child { border-bottom: 0; } td { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px; padding: 8px 16px; border: 0; overflow-wrap: anywhere; } td::before { color: var(--muted); content: attr(data-label); font-size: 12px; font-weight: 700; } td.actions { grid-template-columns: max-content auto auto; align-items: center; width: 100%; white-space: normal; } .alias-cell, .inline-editor { min-width: 0; } td.empty { display: block; padding: 36px 16px; } td.empty::before { content: none; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }