:root { color-scheme: light; --bg: #edf3f8; --panel: #ffffff; --line: #d9e2ea; --text: #14202b; --muted: #6e7d88; --blue: #347df5; --blue-soft: #e8f0ff; --sidebar: #f4f8fb; --shadow: 0 12px 30px rgba(50, 78, 102, .08); font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.site-shell { min-height: 100vh; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.site-sidebar { background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 28px 16px 18px; }
.brand-row { display: flex; align-items: center; gap: 12px; padding: 0 10px 34px; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: .2px; }
.brand-caption, .eyebrow { color: var(--blue); font-size: 11px; letter-spacing: 1.4px; font-weight: 700; }
.side-nav { flex: 1; }
.nav-group-title { font-size: 11px; color: var(--muted); padding: 0 12px 10px; }
.nav-item { width: 100%; border: 0; background: transparent; border-radius: 8px; display: flex; align-items: center; gap: 13px; padding: 13px 14px; color: #2d3b46; font-size: 15px; text-align: left; }
.nav-item:hover, .nav-item.active { background: #e1e8ef; color: #101b25; }
.nav-item.active { box-shadow: inset 4px 0 0 var(--blue); }
.nav-icon { width: 24px; text-align: center; color: var(--blue); font-size: 20px; }
.component-label { color: #111; font-size: 10px; text-align: center; line-height: 1.2; margin: 3px 0 8px; }
.sidebar-footer { border-top: 1px solid var(--line); padding: 18px 12px 0; color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sidebar-footer .component-label { width: 100%; text-align: left; margin-left: 14px; }
.status-dot { width: 8px; height: 8px; background: #29b36f; border-radius: 50%; }
.site-main { min-width: 0; }
.topbar { height: 72px; background: rgba(255,255,255,.86); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 38px; }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb span { padding: 0 8px; color: #a6b2bc; }
.breadcrumb strong { color: var(--text); }
.top-actions { display: flex; align-items: flex-start; gap: 10px; }
.icon-button, .avatar-button { border: 1px solid var(--line); background: var(--panel); color: #3b4c58; border-radius: 8px; width: 34px; height: 34px; }
.avatar-button { border-radius: 50%; background: var(--blue); color: white; font-weight: 700; border-color: var(--blue); }
.top-actions .component-label { margin-top: 38px; margin-left: -40px; width: 34px; position: absolute; }
.view { display: none; max-width: 1180px; padding: 42px 54px 70px; margin: auto; }
.view.active { display: block; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.page-heading h1 { margin: 6px 0 9px; font-size: 37px; letter-spacing: -.5px; }
.subheading { color: var(--muted); margin: 0; font-size: 14px; }
.primary-button, .outline-button, .danger-button { border-radius: 7px; padding: 11px 18px; border: 1px solid transparent; white-space: nowrap; }
.primary-button { background: var(--blue); color: white; box-shadow: 0 6px 14px rgba(52,125,245,.22); }
.outline-button { background: white; color: var(--blue); border-color: #b8ccef; }
.danger-button { background: #fff2f2; color: #cf4b52; border-color: #f0c9ca; }
.page-heading > .component-label { align-self: end; margin: 0 0 -17px -104px; }
.notice-strip { display: flex; align-items: center; gap: 12px; background: var(--blue-soft); border: 1px solid #cfe0ff; padding: 14px 16px; border-radius: 8px; margin-bottom: 30px; color: #315a9f; position: relative; }
.notice-strip strong, .notice-strip span { display: block; }
.notice-strip span { color: #6480ac; font-size: 12px; margin-top: 3px; }
.notice-mark { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: white !important; display: grid !important; place-items: center; }
.notice-strip .component-label { position: absolute; right: 14px; bottom: -17px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 10px; }
.section-heading h2, .plain-panel h2 { font-size: 16px; margin: 0; }
.section-heading span { color: var(--muted); font-size: 12px; }
.device-card { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 8px; min-height: 82px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 16px 20px; position: relative; }
.device-icon { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; color: white; font-size: 26px; }
.windows-icon { background: var(--blue); }
.android-icon { background: #54b96d; }
.device-main strong, .device-main small { display: block; }
.device-main small, .device-tags { color: var(--muted); font-size: 12px; margin-top: 5px; }
.device-tags { display: flex; gap: 7px; margin: 0; }
.tag { background: #f0f4f8; border-radius: 12px; padding: 4px 9px; white-space: nowrap; }
.tag.online { background: #e5f7ed; color: #23854e; }
.device-card > .component-label { position: absolute; right: 24px; bottom: -17px; }
.metric-grid, .settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric-card, .plain-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 22px; position: relative; }
.metric-card small, .metric-card span, .hint { color: var(--muted); font-size: 12px; display: block; }
.metric-card strong { font-size: 24px; display: block; margin: 18px 0 8px; }
.metric-card .component-label { position: absolute; bottom: 5px; right: 16px; }
.plain-panel { margin-bottom: 18px; }
.plain-panel p { color: var(--muted); line-height: 1.65; font-size: 13px; }
.plain-panel .primary-button { margin-top: 10px; }
.security-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 15px 0; position: relative; }
.security-row:last-child { border-bottom: 0; }
.security-row strong, .security-row span { display: block; }
.security-row span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.security-row .component-label { margin: 0 88px -17px 0; }
.settings-grid { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
label { display: block; color: #475663; font-size: 12px; margin-top: 15px; }
input, select { display: block; width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 11px; background: #f8fbfd; color: var(--text); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.switch-row input { display: none; }
.switch { width: 39px; height: 22px; background: #bcc6ce; border-radius: 12px; position: relative; }
.switch::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; background: white; border-radius: 50%; transition: transform .2s; }
.switch-row input:checked + .switch { background: var(--blue); }
.switch-row input:checked + .switch::after { transform: translateX(17px); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #17232d; color: white; border-radius: 7px; padding: 11px 15px; opacity: 0; pointer-events: none; transition: .2s; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.warning-dialog { width: min(430px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 12px; padding: 20px; color: var(--ink); box-shadow: 0 16px 44px #182b3b2e; }
.warning-dialog::backdrop { background: #15233066; backdrop-filter: blur(2px); }
.warning-dialog h2 { margin: 0 0 14px; font-size: 18px; }
.warning-copy { display: grid; gap: 8px; border: 1px solid #f1d1d3; border-radius: 8px; padding: 14px; background: #fff5f5; }
.warning-copy strong { color: #c23b45; font-size: 14px; }
.warning-copy p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.65; }
.warning-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.warning-actions button { cursor: pointer; }
@media (max-width: 900px) { .site-shell { grid-template-columns: 1fr; } .site-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; } .brand-row { padding-bottom: 15px; } .side-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; } .nav-group-title, .sidebar-footer, .side-nav .component-label { display: none; } .nav-item { justify-content: center; flex-direction: column; gap: 2px; font-size: 12px; padding: 8px; } .topbar { padding: 0 18px; } .view { padding: 28px 18px 50px; } .metric-grid, .settings-grid { grid-template-columns: 1fr; } .device-card { grid-template-columns: 42px minmax(0,1fr) auto; } .device-tags { grid-column: 2 / 3; } .device-card > .outline-button { grid-column: 3; grid-row: 1 / span 2; } }
