:root {
  --blue: #0070d2;
  --blue-dark: #005fb2;
  --blue-soft: #f2f8ff;
  --orange: #ff7d22;
  --ink: #333333;
  --muted: #666666;
  --faint: #999999;
  --line: #e5eaf0;
  --success: #13a66a;
  --surface: #ffffff;
  --background: #f7f9fc;
  --shadow: 0 18px 60px rgba(26, 35, 51, .10);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--background); }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(0,112,210,.22); outline-offset: 2px; }
[hidden] { display: none !important; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr); background: #fff; }
.brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 52px clamp(48px, 7vw, 112px); color: white; background: linear-gradient(145deg, #0065bb 0%, #0070d2 56%, #1387e5 100%); }
.brand-panel::before, .brand-panel::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.brand-panel::before { width: 650px; height: 650px; right: -330px; top: -240px; }
.brand-panel::after { width: 420px; height: 420px; left: -220px; bottom: -260px; }
.brand-logo { width: min(330px, 78%); height: auto; filter: brightness(0) invert(1); object-fit: contain; object-position: left; position: relative; z-index: 1; }
.brand-copy { max-width: 590px; margin: auto 0; position: relative; z-index: 1; }
.brand-copy .eyebrow { color: #bde2ff; }
.brand-copy h1 { margin: 0; max-width: 560px; font-size: clamp(42px, 5vw, 68px); line-height: 1.13; letter-spacing: -.045em; }
.brand-copy > p:last-child { max-width: 500px; margin: 28px 0 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.8; }
.trust-points { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.trust-points span { padding: 8px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; }
.login-panel { display: grid; place-items: center; padding: 42px; }
.login-card { width: min(430px, 100%); }
.mobile-brand { display: none; }
.login-card h2 { margin: 0; font-size: 34px; letter-spacing: -.025em; }
.login-card > .muted { margin: 10px 0 34px; }
label { display: block; margin-bottom: 9px; color: #414b59; font-size: 13px; font-weight: 700; }
input, select { width: 100%; min-height: 48px; border: 1px solid #d8dee7; border-radius: 10px; padding: 0 14px; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s; }
input:hover, select:hover { border-color: #aeb8c6; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,112,210,.08); outline: none; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.label-row label { margin: 0; }
.link-button { border: 0; padding: 3px; background: none; color: var(--blue); font-size: 13px; cursor: pointer; }
.password-field { position: relative; }
.password-field input { padding-right: 60px; }
.text-icon { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); border: 0; background: none; color: var(--blue); font-size: 12px; cursor: pointer; }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 10px; padding: 0 18px; border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.primary-button { width: 100%; margin-top: 24px; color: #fff; background: var(--blue); box-shadow: 0 8px 22px rgba(0,112,210,.2); }
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.primary-button.compact { width: auto; min-height: 42px; margin: 0; }
.secondary-button { color: var(--blue); background: #fff; border-color: #b9d7ef; }
.secondary-button:hover { background: var(--blue-soft); }
.first-login { width: 100%; margin-top: 20px; padding: 14px; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; border: 1px solid #dbeafa; border-radius: 12px; text-align: left; background: var(--blue-soft); cursor: pointer; }
.first-login strong, .first-login small { display: block; }
.first-login small { margin-top: 3px; color: var(--muted); }
.icon-badge { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--orange); font-weight: 800; }
.security-note { margin: 24px auto 0; max-width: 340px; text-align: center; color: var(--faint); font-size: 11px; line-height: 1.6; }
.topbar { height: 68px; position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.topbar-brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.topbar-brand img { width: 155px; height: 38px; object-fit: contain; }
.topbar-brand span { padding-left: 14px; border-left: 1px solid var(--line); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; font-size: 20px; cursor: pointer; }
.icon-button:hover { background: var(--blue-soft); }
.notification-button { position: relative; }
.notification-button span { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--orange); font-size: 9px; font-weight: 800; }
.user-chip { display: flex; gap: 10px; align-items: center; margin-left: 8px; border: 0; border-radius: 12px; padding: 6px 8px; background: transparent; cursor: pointer; text-align: left; }
.user-chip:hover { background: var(--blue-soft); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(140deg, var(--blue), #38a0ec); font-weight: 800; }
.user-text strong, .user-text small { display: block; }
.user-text strong { font-size: 13px; }.user-text small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.workspace-body { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 230px 1fr; }
.sidebar { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; padding: 22px 14px; border-right: 1px solid var(--line); background: white; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 9px; padding: 0 12px; background: none; color: #536071; text-align: left; cursor: pointer; }
.nav-item:hover { background: #f6f9fc; }.nav-item.active { color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.nav-item > span:first-child { width: 20px; text-align: center; font-size: 16px; }
.nav-count { min-width: 22px; margin-left: auto; padding: 2px 6px; border-radius: 8px; color: var(--blue); background: #dbeeff; font-size: 10px; text-align: center; }
.nav-count.orange { color: #b64e04; background: #fff0e5; }
.nav-divider { height: 1px; margin: 18px 10px; background: var(--line); }
.nav-label { margin: 0 12px 8px; color: #9ba5b2; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: #f7faf9; font-size: 11px; }
.sidebar-footer strong, .sidebar-footer small { display: block; }.sidebar-footer small { margin-top: 2px; color: var(--faint); font-size: 9px; }
.health-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(19,166,106,.1); }
.content { min-width: 0; padding: 36px clamp(28px, 4vw, 64px) 64px; }
.page { display: none; max-width: 1340px; margin: 0 auto; }.page.active { display: block; }
.welcome-row, .page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.welcome-row h1, .page-title h1 { margin: 0; font-size: 30px; letter-spacing: -.025em; }.welcome-row p:last-child, .page-title p:last-child { margin: 8px 0 0; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 34px; }
.stat-card { min-height: 106px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 5px 20px rgba(26,35,51,.035); }
.stat-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; font-weight: 800; }.stat-icon.blue { color: var(--blue); background: #e8f4ff; }.stat-icon.green { color: var(--success); background: #e8f8f1; }.stat-icon.orange { color: var(--orange); background: #fff1e7; }
.stat-card strong, .stat-card small { display: block; }.stat-card strong { font-size: 24px; }.stat-card small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.trend { align-self: end; color: var(--blue); font-size: 10px; }.trend.safe { color: var(--success); }.trend.warn { color: #c05a12; }
.section-heading, .panel-header { display: flex; justify-content: space-between; align-items: center; }
.section-heading h2, .panel-header h2 { margin: 0; font-size: 17px; }.section-heading p, .panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 16px; }
.app-card { min-height: 145px; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 13px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; text-align: left; cursor: pointer; transition: border .2s, transform .2s, box-shadow .2s; }
.app-card:hover:not(.locked) { border-color: #9ecbed; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,112,210,.09); }
.app-card.featured { border-top: 3px solid var(--blue); }
.app-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; color: white; font-weight: 800; }.app-icon.douyin { background: #1a2333; box-shadow: inset -5px -5px 0 rgba(255,125,34,.75); }.app-icon.media { background: linear-gradient(140deg, #0070d2, #40a8f4); }.app-icon.private { background: linear-gradient(140deg, #13a66a, #55c998); }.app-icon.business { background: linear-gradient(140deg, #805ad5, #ad8bea); }
.app-copy strong, .app-copy small, .app-meta { display: block; }.app-copy strong { margin-top: 2px; font-size: 14px; }.app-copy > small { min-height: 34px; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.6; }.app-meta { margin-top: 12px; color: var(--success); font-size: 10px; }
.status-dot { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--success); }.arrow { color: var(--blue); }.lock { align-self: center; padding: 4px 7px; border-radius: 7px; color: var(--faint); background: #f1f3f6; font-size: 9px; }.locked { cursor: default; opacity: .7; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 16px; margin-top: 28px; }
.panel { border: 1px solid var(--line); border-radius: 15px; padding: 21px; background: white; }
.task-list { margin: 13px -8px -8px; }.task-row { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 8px; border: 0; border-top: 1px solid #f0f2f5; background: none; text-align: left; cursor: pointer; }.task-row:hover { background: #fafcff; }
.task-check { width: 19px; height: 19px; border: 1.5px solid #bcc6d2; border-radius: 6px; }.task-check.done { display: grid; place-items: center; color: white; border-color: var(--success); background: var(--success); font-size: 10px; }.task-row strong, .task-row small { display: block; }.task-row strong { font-size: 12px; }.task-row small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.tag { padding: 4px 8px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 9px; }.tag.urgent { color: #c0540b; background: #fff0e5; }.tag.success { color: #088152; background: #e9f8f2; }
.device-card { display: flex; gap: 13px; padding: 17px 0; border-top: 1px solid #f0f2f5; }.device-card:first-of-type { margin-top: 13px; }.device-illustration { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: 23px; }.device-illustration.phone { color: #805ad5; background: #f4efff; }.device-card strong, .device-card small, .healthy { display: block; }.device-card strong { font-size: 11px; }.device-card small { margin: 5px 0 8px; color: var(--muted); font-size: 9px; }.healthy { color: var(--success); font-size: 9px; }.healthy i { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--success); }
.admin-tabs { display: flex; gap: 26px; margin-top: 30px; border-bottom: 1px solid var(--line); }.admin-tabs button { padding: 0 2px 13px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: none; cursor: pointer; }.admin-tabs button.active { color: var(--blue); border-color: var(--blue); font-weight: 700; }
.admin-panel { margin-top: 20px; padding: 0; overflow: hidden; }.toolbar { display: flex; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }.search-box { flex: 1; display: flex; align-items: center; gap: 8px; padding-left: 12px; border: 1px solid #d8dee7; border-radius: 9px; color: var(--faint); }.search-box input { min-height: 40px; border: 0; padding-left: 0; box-shadow: none; }.toolbar select { width: 150px; min-height: 42px; }
.organization-panel, .placeholder-panel { margin-top: 20px; }.org-tree { max-width: 680px; margin-top: 24px; }.org-node { min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.org-node + .org-node { margin-top: 10px; }.org-node strong, .org-node small { display: block; }.org-node small { margin-top: 4px; color: var(--muted); font-size: 10px; }.org-node button { border: 0; background: none; cursor: pointer; }.org-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 800; }.org-node.region .org-icon { background: #805ad5; }.org-node.store .org-icon { background: var(--orange); }.org-children, .org-grandchildren { position: relative; margin: 12px 0 0 34px; padding-left: 28px; }.org-children::before, .org-grandchildren::before { content: ""; position: absolute; top: -12px; bottom: 32px; left: 0; border-left: 1px solid #cdd8e5; }.org-children > .org-node::before, .org-grandchildren > .org-node::before { content: ""; position: absolute; width: 28px; margin-left: -42px; border-top: 1px solid #cdd8e5; }.placeholder-panel { min-height: 220px; display: grid; place-content: center; text-align: center; }.placeholder-panel p { color: var(--muted); }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; font-size: 11px; }th { padding: 12px 16px; color: var(--muted); background: #f8fafc; text-align: left; font-weight: 700; white-space: nowrap; }td { padding: 15px 16px; border-top: 1px solid var(--line); white-space: nowrap; }.person { display: flex; align-items: center; gap: 10px; }.person i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--blue); font-style: normal; font-weight: 700; }.person i.purple { background: #805ad5; }.person i.orange-bg { background: var(--orange); }.person strong, .person small { display: block; }.person small { margin-top: 3px; color: var(--faint); font-size: 9px; }.status-pill { padding: 4px 8px; border-radius: 999px; font-size: 9px; }.status-pill.active { color: #087b50; background: #e8f8f1; }.status-pill.pending { color: #a95112; background: #fff0e5; }.more { border: 0; background: none; cursor: pointer; }
.empty-page { min-height: 60vh; padding-top: 12vh; text-align: center; }.empty-page h1 { margin: 0; }.empty-page p { color: var(--muted); }
dialog { width: min(440px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 18px; box-shadow: var(--shadow); }dialog::backdrop { background: rgba(26,35,51,.48); backdrop-filter: blur(3px); }.dialog-card { position: relative; padding: 30px; }.dialog-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 9px; background: #f2f4f7; cursor: pointer; }.dialog-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--blue); background: var(--blue-soft); font-size: 21px; }.dialog-card h2 { margin: 18px 0 7px; }.dialog-card > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }.dialog-card label { margin-top: 15px; }.dialog-card small { display: block; margin-top: 14px; color: var(--faint); font-size: 10px; line-height: 1.6; text-align: center; }.sms-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.sms-button { min-height: 48px; white-space: nowrap; }.device-steps { display: flex; align-items: center; justify-content: center; margin-top: 25px; }.device-steps span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #cfd6df; border-radius: 50%; color: var(--faint); font-size: 11px; }.device-steps span.done { color: white; border-color: var(--blue); background: var(--blue); }.device-steps i { width: 58px; height: 1px; background: #dfe4ea; }.device-step-labels { display: flex; justify-content: space-between; margin: 8px 25px 0; color: var(--muted); font-size: 9px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 18px); padding: 11px 18px; border-radius: 10px; color: white; background: #1a2333; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-only { display: none; }
@media (max-width: 1100px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .status-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 86px; }
}
@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; background: linear-gradient(180deg, var(--blue-soft), #fff 32%); }
  .brand-panel { display: none; }.login-panel { min-height: 100vh; align-items: start; padding: 56px 22px; }.mobile-brand { display: block; margin-bottom: 50px; }.mobile-brand img { width: 210px; }
  .topbar { height: 62px; padding: 0 14px; }.topbar-brand img { width: 115px; }.topbar-brand span, .user-text { display: none; }.mobile-only { display: block; }
  .workspace-body { display: block; }.sidebar { position: fixed; z-index: 30; top: 62px; left: 0; width: 240px; height: calc(100vh - 62px); transform: translateX(-105%); transition: transform .22s; box-shadow: var(--shadow); }.sidebar.open { transform: translateX(0); }
  .content { padding: 25px 16px 50px; }.welcome-row, .page-title { align-items: flex-start; }.welcome-row h1, .page-title h1 { font-size: 25px; }.welcome-row .secondary-button { font-size: 0; width: 42px; min-width: 42px; padding: 0; }.welcome-row .secondary-button::after { content: "+"; font-size: 21px; }
  .status-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0 30px; }.stat-card { min-height: 112px; display: flex; flex-direction: column; align-items: flex-start; padding: 14px; }.stat-icon { width: 34px; height: 34px; }.stat-card strong { font-size: 19px; }.trend { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }.toolbar { flex-wrap: wrap; }.search-box { min-width: 100%; }.toolbar select { flex: 1; width: auto; }
}
@media (max-width: 540px) {
  .app-grid { grid-template-columns: 1fr; }.app-card { min-height: 125px; }.dashboard-grid { margin-top: 22px; }.device-panel { display: none; }.admin-tabs { gap: 20px; overflow-x: auto; }.admin-tabs button { flex: none; }.dialog-card { padding: 25px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
