:root { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: #263346; background: #f5f7fa; font-synthesis: none; --accent: #e66855; --muted: #768194; --border: #e7ebf1; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 14px; }
button, input, select { font: inherit; }
button { padding: 9px 15px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #405067; cursor: pointer; }
button:hover:not(:disabled) { background: #f3f5f8; border-color: #ccd4df; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #e6685540; outline-offset: 2px; }
input, select { padding: 10px 12px; border: 1px solid #dce2eb; border-radius: 7px; background: #fff; color: #263346; }
input { min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 25px; font-weight: 650; letter-spacing: -.5px; }
h2 { font-size: 15px; font-weight: 650; }
.muted { color: var(--muted); line-height: 1.7; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: 2px; margin-bottom: 10px; }
.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.primary:hover:not(:disabled) { background: #d75745; border-color: #d75745; }
.full-width { width: 100%; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: var(--accent); font-size: 24px; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse at 15% 15%, #fdebe5 0, transparent 44%), #f5f7fa; }
.login-card { width: min(420px, 100%); padding: 38px; border: 1px solid #fff; border-radius: 18px; background: #fff; box-shadow: 0 20px 70px #2532490d; }
.login-card .brand-mark { margin-bottom: 26px; }
.login-card h1 { margin-bottom: 10px; }
.login-card form { margin-top: 27px; }
label { display: block; }
.login-card label, .code-form label { font-size: 13px; font-weight: 550; margin-bottom: 8px; }
.login-card input, .code-form input, .code-form select { width: 100%; margin-bottom: 19px; }
.login-note { margin-top: 22px; font-size: 12px; color: #8b95a5; text-align: center; }
.form-error { color: #be3e33; font-size: 13px; line-height: 1.7; margin-bottom: 14px; overflow-wrap: anywhere; }
.form-error:empty { display: none; }
.admin-layout { display: flex; height: 100dvh; overflow: hidden; }
.sidebar { width: 216px; flex-shrink: 0; overflow: auto; color: #c3cbdb; background: #202a3d; padding: 30px 18px; display: flex; flex-direction: column; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 42px; }
.sidebar-brand .brand-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 21px; }
.sidebar-brand strong { display: block; color: #fff; font-size: 15px; }
.sidebar-brand small { display: block; margin-top: 5px; color: #8997b0; font-size: 11px; letter-spacing: 2px; }
.nav-label { color: #71819c; font-size: 11px; margin: 0 13px 14px; }
.sidebar nav { display: grid; gap: 7px; }
.nav-button { display: flex; gap: 13px; align-items: center; width: 100%; padding: 13px 14px; text-align: left; color: #b9c3d4; background: transparent; border-color: transparent; }
.nav-button span { font-size: 12px; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #5c6c86; border-radius: 4px; }
.nav-button:hover:not(:disabled) { background: #2b364b; border-color: transparent; }
.nav-button[aria-current="page"] { color: #fff; background: #e66855; }
.nav-button[aria-current="page"]:hover:not(:disabled) { background: #e66855; }
.nav-button[aria-current="page"] span { border-color: #ffffff80; }
.sidebar-note { margin: auto 10px 0; padding-top: 30px; font-size: 12px; line-height: 1.8; color: #a3b0c6; }
.sidebar-note small { display: block; padding-left: 13px; font-size: 11px; color: #72849f; }
.status-dot { display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: #85b59f; }
.workspace { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.topbar { height: 68px; flex-shrink: 0; padding: 0 34px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); background: #fff; color: #8c97a8; font-size: 12px; }
.topbar strong { color: #435167; font-weight: 550; margin-left: 6px; }
.account-tools { display: flex; align-items: center; gap: 12px; color: #435167; }
.admin-badge { background: #faf0ed; color: #c96c5b; border-radius: 4px; padding: 4px 8px; font-size: 11px; }
.text-button { background: none; border: 0; font-size: 12px; color: #778499; padding: 6px; }
.main-content { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 30px 34px 16px; }
.page-heading { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { margin-bottom: 8px; }
.page-heading .eyebrow { margin-bottom: 8px; font-size: 10px; }
.page-heading .muted { font-size: 12px; }
.heading-actions { display: flex; gap: 10px; flex-shrink: 0; }
.overview { flex-shrink: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 25px; }
.metric { padding: 20px 22px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.metric span { display: block; color: #8490a2; font-size: 12px; margin-bottom: 13px; }
.metric strong { font-size: 28px; line-height: 1.1; font-weight: 600; color: #34425b; }
.metric.accent strong { color: var(--accent); }
.table-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; border: 1px solid var(--border); border-radius: 11px; background: #fff; overflow: hidden; }
.table-toolbar { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 22px; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters input { width: 220px; padding: 8px 11px; font-size: 12px; }
.filters select { padding: 8px 10px; font-size: 12px; }
.search-field { display: flex; align-items: center; gap: 8px; }
.search-field span { color: #8993a4; font-size: 12px; }
.table-scroll { flex: 1; min-height: 0; overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
thead { position: sticky; top: 0; z-index: 1; background: #f7f9fc; }
th { font-size: 11px; font-weight: 550; color: #8590a1; padding: 13px 22px; white-space: nowrap; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
td { padding: 16px 22px; border-bottom: 1px solid #f0f2f6; color: #4a5870; vertical-align: top; }
tbody tr:hover { background: #fcfdff; }
td strong { display: block; font-weight: 600; color: #34425b; }
.cell-note { display: block; font-size: 10px; line-height: 1.5; color: #9ba5b5; margin-top: 5px; overflow-wrap: anywhere; }
.row-action { padding: 5px 10px; font-size: 11px; white-space: nowrap; }
.danger-text { color: #bf5b4d; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 5px; font-size: 10px; color: #6f7a8e; background: #f0f3f7; white-space: nowrap; }
.badge.good { color: #40846e; background: #edf7f2; }
.badge.warn { color: #b77839; background: #fff6e8; }
.badge.bad { color: #b86659; background: #fcefeb; }
.badge.role { background: #f0f0fc; color: #7b79a3; }
.page-message { flex-shrink: 0; padding: 0 22px; font-size: 12px; color: #5f8273; margin-bottom: 13px; }
.page-message:empty { display: none; }
.page-message.error { color: #bd5448; }
.empty-state { flex: 1; min-height: 0; display: grid; place-content: center; text-align: center; color: #708098; gap: 11px; }
.empty-state strong { font-size: 15px; font-weight: 550; }
.empty-state p { font-size: 12px; }
.pagination { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 22px; border-top: 1px solid var(--border); font-size: 11px; color: #909bab; background: #fff; }
.page-controls { display: flex; align-items: center; gap: 12px; }
.page-controls label { display: flex; align-items: center; gap: 7px; }
.page-controls select { font-size: 11px; padding: 6px 8px; }
.page-controls button { font-size: 11px; padding: 6px 10px; }
.workspace-note { flex-shrink: 0; text-align: center; color: #9aa4b3; font-size: 10px; margin-top: 17px; line-height: 1.7; }
.domain-details { min-width: 240px; max-width: 420px; }
.domain-details summary { cursor: pointer; color: #697994; white-space: nowrap; line-height: 1.8; }
.domain-item { border-left: 2px solid #e6ebf3; padding-left: 10px; margin: 13px 0; }
.domain-item .badge { margin-left: 8px; }
.domain-item p { font-size: 10px; line-height: 1.8; color: #8e99a9; margin-top: 4px; overflow-wrap: anywhere; }
dialog { width: min(470px, calc(100vw - 32px)); border: 0; border-radius: 14px; padding: 26px; color: #35415a; box-shadow: 0 24px 90px #16203633; }
dialog::backdrop { background: #1e293b60; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.dialog-heading h2 { font-size: 17px; }
.icon-button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; font-size: 22px; color: #8692a4; }
.dialog-description { line-height: 1.9; font-size: 13px; white-space: pre-line; margin-bottom: 18px; overflow-wrap: anywhere; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 25px; }
.danger-button { color: #fff; background: #cd5b4c; border-color: #cd5b4c; }
.danger-button:hover:not(:disabled) { background: #b94b3d; border-color: #b94b3d; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.code-result h3 { font-size: 17px; color: #3b8b70; margin-bottom: 13px; }
.code-result p { font-size: 12px; line-height: 1.9; }
.code-result output { display: block; margin: 20px 0; padding: 18px 14px; font-family: ui-monospace, monospace; font-size: 19px; letter-spacing: 1px; text-align: center; background: #f7f9fc; border: 1px dashed #cad5e5; border-radius: 7px; overflow-wrap: anywhere; user-select: all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 1050px) { .sidebar { width: 190px; padding-left: 12px; padding-right: 12px; } .topbar { padding: 0 22px; } .main-content { padding: 24px 22px 16px; } .metric { padding: 17px; } th, td { padding-left: 16px; padding-right: 16px; } .filters input { width: 170px; } }
@media (max-width: 740px) { .admin-layout { flex-direction: column; } .sidebar { width: auto; padding: 10px 12px; } .sidebar-brand, .nav-label, .sidebar-note { display: none; } .sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; } .nav-button { flex-direction: column; gap: 5px; padding: 8px 2px; font-size: 11px; } .topbar { height: auto; min-height: 48px; padding: 8px 14px; gap: 10px; flex-wrap: wrap; } .main-content { padding: 16px 14px 10px; } .overview { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; } .metric { padding: 8px 12px; } .metric span { font-size: 10px; margin-bottom: 5px; } .metric strong { font-size: 22px; } .page-heading, .table-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; } .page-heading { margin-bottom: 14px; } .page-heading .eyebrow { display: none; } .page-heading h1 { font-size: 21px; margin-bottom: 6px; } .page-heading .muted { font-size: 11px; line-height: 1.5; } .table-toolbar { padding: 12px 14px; } .filters { width: 100%; } .search-field { flex: 1; } .filters input { width: 100%; } .pagination { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 14px; } .page-controls { gap: 9px; } .workspace-note { margin-top: 10px; } .login-card { padding: 29px; } }
@media (max-height: 600px) and (min-width: 741px) { .topbar { height: 52px; } .main-content { padding-top: 16px; padding-bottom: 12px; } .page-heading { margin-bottom: 12px; } .page-heading .eyebrow { display: none; } .overview { margin-bottom: 12px; } .metric { padding: 10px 16px; } .metric span { margin-bottom: 6px; } .metric strong { font-size: 22px; } .table-toolbar { padding-top: 12px; padding-bottom: 12px; } .workspace-note { margin-top: 10px; } }
