:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #f5f7fb; color: #1f2937; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
[v-cloak] { display: none !important; }
#app { min-height: 100vh; }
.shell { min-height: 100vh; }
.topbar { height: 64px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; gap: 12px; align-items: center; margin: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: #2563eb; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.brand h1 { font-size: 18px; margin: 0; }
.brand p { color: #64748b; margin: 4px 0 0; font-size: 13px; }
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.sidebar { background: #fff; border-right: 1px solid #e5e7eb; padding: 18px 12px; }
.sidebar .el-menu { border-right: 0; }
.sidebar .el-menu-item a { display: flex; align-items: center; width: 100%; height: 100%; color: inherit; text-decoration: none; }
.content { padding: 26px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h2 { margin: 0; font-size: 24px; }
.page-head p { margin: 6px 0 0; color: #64748b; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card .label { color: #64748b; font-size: 13px; }
.stat-card .number { font-size: 28px; font-weight: 700; margin-top: 8px; color: #111827; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar .search { width: min(320px, 100%); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; color: #374151; font-size: 14px; }
.data-table th, .data-table td { padding: 13px 14px; border: 1px solid #ebeef5; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.data-table th { color: #606266; background: #f5f7fa; font-weight: 600; }
.data-table tbody tr:hover { background: #f8fafc; }
.address-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; white-space: nowrap; }
.address-label { width: 42px; flex: 0 0 42px; color: #64748b; font-size: 12px; }
.proxy-table { min-width: 1120px; }
.proxy-table th:first-child, .proxy-table td:first-child { text-align: center; }
.proxy-table .address-line { justify-content: flex-start; gap: 6px; }
.proxy-table .address-line code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proxy-table .address-line .el-button { flex: 0 0 auto; padding: 4px; }
.proxy-table td:last-child .actions { flex-wrap: nowrap; white-space: nowrap; }
.proxy-group-dropdown .proxy-group-trigger { max-width: 100%; padding: 4px 0; color: #334155; font-size: 14px; }
.proxy-group-dropdown .proxy-group-trigger .el-icon { margin-left: 4px; color: #94a3b8; }
.pool-summary { display: flex; flex-wrap: wrap; gap: 24px; color: #64748b; font-size: 13px; }
.pool-summary strong { color: #111827; font-size: 18px; margin-right: 5px; }
.muted { color: #64748b; font-size: 12px; }
.server-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: #94a3b8; }
.server-dot.default { background: #22c55e; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; }
.bt-overview > div { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.bt-overview span { color: #64748b; font-size: 13px; }
.bt-overview strong { font-size: 27px; line-height: 1.1; }
.bt-card { border-radius: 8px; }
.bt-head-actions { margin: 0; }
.bt-filters { margin-bottom: 8px; }
.bt-sync-hint { margin: 0 0 18px; line-height: 1.6; }
.bt-notice { margin-bottom: 18px; }
.bt-sites-table { min-width: 1050px; }
.bt-panels-table { min-width: 900px; }
.bt-rule-line { display: flex; align-items: baseline; gap: 8px; margin: 5px 0; font-size: 13px; }
.bt-rule-line span { min-width: 0; overflow-wrap: anywhere; }
.bt-path { display: inline-block; flex-shrink: 0; max-width: 80px; background: #eff6ff; color: #2563eb; padding: 2px 6px; border-radius: 4px; }
.bt-remark { margin: 7px 0; line-height: 1.5; }
.bt-actions { column-gap: 10px; row-gap: 5px; }
.bt-actions .el-button + .el-button, .bt-head-actions .el-button + .el-button, .bt-filters .el-button + .el-button { margin-left: 0; }
.bt-table-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; color: #64748b; font-size: 12px; }
.bt-field { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.bt-field .muted { line-height: 1.6; }
.bt-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 12px; }
.bt-section-head h3 { margin: 0; font-size: 16px; }
@media (max-width: 900px) { .bt-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .bt-page .page-head { flex-wrap: wrap; } }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f5f7fb; }
.login-box { width: min(420px, 100%); }
.login-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 24px; }
.login-box .brand-mark { border-radius: 6px; }
.login-box .brand { margin-bottom: 28px; }
.login-form { display: grid; gap: 16px; }
.login-field { display: grid; gap: 7px; }
.login-field label { color: #475569; font-size: 13px; font-weight: 600; }
.login-field input { width: 100%; border: 1px solid #d1d5db; border-radius: 6px; padding: 11px 12px; font-size: 14px; outline: none; }
.login-field input:focus { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.12); }
.login-error { margin: 0; color: #dc2626; font-size: 13px; }
.login-submit { border: 0; border-radius: 6px; padding: 11px 14px; background: #2563eb; color: #fff; font-size: 14px; cursor: pointer; }
.login-submit:hover { background: #1d4ed8; }
.login-submit:disabled { opacity: .65; cursor: wait; }
.settings-section { margin-top: 18px; }
.settings-section h3 { margin: 0 0 6px; font-size: 16px; }
.settings-section p { color: #64748b; font-size: 13px; line-height: 1.6; }
.common-ip-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.common-ip-header p { margin: 0; }
.proxy-local-ip-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.proxy-local-ip-row .el-input { flex: 1; min-width: 0; }
.proxy-local-ip-row .el-button { flex: 0 0 auto; }
.key-row { display: flex; gap: 8px; align-items: center; max-width: 700px; }
.key-row .el-input { flex: 1; min-width: 0; }
.file-input-hidden { display: none; }
.backup-toolbar { margin: 0; justify-content: flex-end; }
.backup-warning { margin-bottom: 14px; border-radius: 6px; }
.backup-warning .el-alert__content { line-height: 1.55; }
.backup-card { border-radius: 6px; }
.backup-table-wrap { width: 100%; overflow-x: auto; }
.backup-table { min-width: 1050px; }
.backup-file-cell { display: grid; justify-items: start; gap: 7px; min-width: 0; }
.backup-file-name { color: #1f2937; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; }
.backup-file-kind { flex: 0 0 auto; }
.backup-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; white-space: nowrap; }
.backup-actions .el-button { margin-left: 0; }
.backup-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ebeef5; color: #64748b; font-size: 12px; }
.docs-block { margin-top: 20px; }
.docs-block h3 { margin: 0 0 10px; font-size: 16px; }
.docs-block pre { overflow-x: auto; padding: 14px; border: 1px solid #e5e7eb; border-radius: 4px; background: #f8fafc; color: #1f2937; font: 13px/1.6 Consolas, "SFMono-Regular", monospace; white-space: pre; }
.docs-block code { overflow-wrap: anywhere; }
.docs-facts { margin: 12px 0 16px; border-top: 1px solid #e5e7eb; }
.docs-facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.docs-facts dt { color: #64748b; }
.docs-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mcp-tool { margin-top: 8px; border: 1px solid #e5e7eb; border-radius: 4px; background: #fff; }
.mcp-tool summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; cursor: pointer; list-style-position: inside; }
.mcp-tool summary code { min-width: 190px; color: #1d4ed8; }
.mcp-tool summary span { flex: 1; }
.mcp-tool > div { padding: 0 16px 12px 32px; }
.mcp-tool p { margin: 8px 0; line-height: 1.65; }
.docs-api-table { min-width: 820px; }
.docs-api-table td:first-child { width: 130px; }
.public-content { max-width: 1240px; margin: 0 auto; padding: 32px; }
.share-url-block { margin-top: 16px; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 6px; background: #f8fafc; }
.share-url-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; }
.share-url-heading strong { color: #334155; font-size: 14px; }
.share-url-heading span { color: #64748b; font-size: 12px; }
.share-url-actions { display: flex; align-items: center; gap: 8px; }
.share-url-actions .el-input { flex: 1; min-width: 0; }
.skill-share-panel { margin: 20px 0; padding: 16px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.skill-share-panel .share-url-heading:not(:first-child) { margin-top: 16px; }
.skill-toolbar { margin: 0; justify-content: flex-end; }
.skill-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.skill-info-card { min-width: 0; border-radius: 6px; }
.skill-info-label { color: #64748b; font-size: 13px; margin-bottom: 8px; }
.skill-endpoint { display: block; color: #1d4ed8; font: 14px/1.5 Consolas, "SFMono-Regular", monospace; overflow-wrap: anywhere; }
.skill-tool-count { color: #111827; font-size: 28px; font-weight: 700; line-height: 1.2; }
.skill-tool-count span { color: #64748b; font-size: 14px; font-weight: 400; }
.skill-info-card .muted { margin: 10px 0 0; line-height: 1.6; }
.skill-preview-card { border-radius: 6px; }
.skill-preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.skill-preview-head h3 { margin: 0; font-size: 16px; }
.skill-preview-head p { margin: 6px 0 0; color: #64748b; font-size: 13px; }
.skill-preview { max-height: 680px; margin: 0; overflow: auto; padding: 18px; border: 1px solid #e5e7eb; border-radius: 4px; background: #f8fafc; color: #1f2937; font: 13px/1.65 Consolas, "SFMono-Regular", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 620px) { .docs-facts div { grid-template-columns: 1fr; gap: 4px; } .mcp-tool summary { flex-wrap: wrap; gap: 6px 10px; } .mcp-tool summary code { min-width: 0; } .mcp-tool summary span { flex-basis: 70%; } .mcp-tool > div { padding-left: 16px; } }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } .sidebar { min-width: 0; border-right: 0; border-bottom: 1px solid #e5e7eb; padding: 6px 12px; } .sidebar .el-menu { display: flex; width: 100%; min-width: 0; overflow-x: auto; } .sidebar .el-menu-item { flex: 0 0 auto; } .content { padding: 18px 14px; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .topbar { padding: 0 14px; } .topbar .el-button span { display: none; } .page-head { align-items: flex-start; flex-direction: column; } .page-head .el-button { width: 100%; } .stats { gap: 10px; } .stat-card .number { font-size: 23px; } .content { padding-top: 14px; } .data-table { min-width: 760px; } }
@media (max-width: 620px) { .key-row { align-items: stretch; flex-direction: column; } .key-row .el-button { width: 100%; margin-left: 0; } .login-box { padding: 20px; } }
@media (max-width: 620px) { .backup-toolbar { width: 100%; } .backup-summary { align-items: flex-start; flex-direction: column; gap: 5px; } }
@media (max-width: 620px) { .common-ip-header { align-items: stretch; flex-direction: column; } .common-ip-header .el-button { width: 100%; } }
@media (max-width: 620px) { .skill-toolbar { align-items: stretch; width: 100%; } .skill-toolbar .el-button { flex: 1 1 auto; } .skill-info-grid { grid-template-columns: 1fr; gap: 10px; } .skill-preview-head { align-items: flex-start; flex-direction: column; gap: 8px; } }
@media (max-width: 620px) { .public-content { padding: 18px 14px; } .share-url-actions { align-items: stretch; flex-direction: column; } .share-url-actions .el-button { width: 100%; margin-left: 0; } }
