/* ==========================================================================
   工作台 —— 控制台式布局（深色侧栏 + 白卡片栅格）。
   只学腾讯云控制台的结构与密度，配色仍用机构墨绿。
   ========================================================================== */
:root {
  --bg: #F2F4F2;
  --card: #fff;
  --line: #E3E6E1;
  --line-2: #EEF0EC;
  --ink: #171717;
  --ink-2: #4A5450;
  --ink-3: #8A938E;
  --acc: #1E3F35;
  --acc-2: #2C8A6E;
  --acc-s: #4E8D74;
  --side: #1B211E;
  --side-2: #232B27;
  --side-tx: #C0CBC4;
  --side-3: #7C8B82;
  --r: 2px;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

/* 顶栏 ------------------------------------------------------------------ */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand-mk {
  width: 20px; height: 20px;
  background: var(--acc);
  border-radius: 1px;
  position: relative;
}
.brand-mk::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
}
.brand-tx { display: flex; align-items: baseline; gap: 7px; }
.brand-tx b { font-family: var(--serif); font-size: 15px; letter-spacing: .06em; font-weight: 600; }
.brand-tx i { font-style: normal; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }
.top-sep { width: 1px; height: 18px; background: var(--line); flex: none; }
.top-nav { display: flex; gap: 2px; }
.top-nav a {
  padding: 5px 10px;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: var(--r);
}
.top-nav a:hover { background: #F1F4F1; color: var(--ink); }

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 300px;
  padding: 0 9px;
  height: 30px;
  background: #F4F6F4;
  border: 1px solid transparent;
  border-radius: var(--r);
}
.search:focus-within { background: #fff; border-color: var(--acc-2); }
.search svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; }
.search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  outline: none;
}
.search input::placeholder { color: #A9B0AC; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd {
  font: 11px/1 var(--mono);
  color: #A9B0AC;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 2px;
  padding: 2px 4px;
}
.top-r { display: flex; align-items: center; gap: 14px; flex: none; }
.top-ico {
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.top-ico.dot { position: relative; padding-left: 10px; }
.top-ico.dot::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--acc-2);
}
.who { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.who i {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--acc);
  color: #fff;
  font-style: normal;
  font-size: 11px;
}
.who b { font-weight: 500; }

/* 骨架 ------------------------------------------------------------------ */
.shell { display: flex; align-items: flex-start; }

/* 侧栏 */
.side {
  position: sticky;
  top: 52px;
  flex: none;
  width: 218px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  background: var(--side);
  color: var(--side-tx);
  padding: 10px 0 24px;
}
.side-t {
  padding: 14px 18px 7px;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--side-3);
}
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 18px;
  font-size: 13px;
  color: var(--side-tx);
  border-left: 2px solid transparent;
  transition: background .12s, color .12s;
}
.side-item:hover { background: rgba(255,255,255,.055); color: #E6EDE8; }
.side-item.on {
  background: rgba(255,255,255,.085);
  color: #fff;
  border-left-color: var(--acc-s);
}
.side-item svg {
  width: 15px; height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .82;
}
.side-item.on svg { opacity: 1; }
.side-item small { margin-left: auto; font-size: 10.5px; color: var(--side-3); letter-spacing: .04em; }
.side-foot {
  margin: 16px 18px 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  line-height: 1.9;
  color: var(--side-3);
}

/* 主区 */
.main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 20px 30px 40px;
  max-width: 1320px;
}
.crumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a:hover { color: var(--acc-2); }
.crumb span { color: #C6CCC7; }
.crumb b { font-weight: 500; color: var(--ink-2); }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.head h1 { font-family: var(--serif); font-size: 24px; letter-spacing: .06em; font-weight: 600; }
.head p { margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
.head-r { display: flex; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  font-size: 12.5px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r);
  color: var(--ink-2);
  transition: border-color .13s, background .13s, color .13s;
}
.btn:hover { border-color: #C2CAC3; color: var(--ink); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.primary:hover { background: #16302A; border-color: #16302A; color: #fff; }

/* 数字条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px 13px;
}
.stat span { display: block; font-size: 12px; color: var(--ink-3); }
.stat b {
  display: block;
  margin: 3px 0 1px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.stat i { font-style: normal; font-size: 11.5px; color: var(--ink-3); }

/* 区块 */
.block { margin-bottom: 16px; }
.blk-head { display: flex; align-items: center; gap: 10px; padding: 0 0 10px; }
.blk-head h2 { font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.blk-head span { font-size: 11.5px; color: var(--ink-3); }
.more { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.more:hover { color: var(--acc-2); }

/* 应用卡 */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 15px 16px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.app:hover {
  border-color: #CBD4CD;
  box-shadow: 0 6px 18px rgba(30,63,53,.07);
}
.app:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 1px; }
.app-ico {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: #F3F6F3;
  border: 1px solid #E7EBE6;
  color: var(--acc);
}
.app-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.app-tx { min-width: 0; flex: 1 1 auto; }
.app-tx b { display: block; font-size: 13.5px; font-weight: 600; }
.app-tx p { margin-top: 3px; font-size: 12px; color: var(--ink-3); line-height: 1.55; }
.app-tx em { display: none; }
.app::after {
  content: "›";
  align-self: center;
  flex: none;
  font-size: 15px;
  line-height: 1;
  color: var(--ink-3);
  opacity: .45;
  transition: transform .14s, opacity .14s, color .14s;
}
.app:hover::after { transform: translateX(2px); opacity: 1; color: var(--acc-2); }
.app .live {
  position: absolute;
  top: 13px; right: 13px;
  display: flex; align-items: center; gap: 4px;
  font-size: 10.5px;
  color: var(--acc-2);
  letter-spacing: .04em;
}
.app .live::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.app.off .live { color: var(--ink-3); }

.empty { padding: 26px 0; font-size: 12.5px; color: var(--ink-3); }

/* 两栏 */
.cols { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 16px; }
.notes { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.notes li { display: flex; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.notes li:last-child { border-bottom: 0; }
.notes b { flex: none; width: 74px; font-weight: 600; color: var(--ink-2); }
.notes span { color: var(--ink-3); line-height: 1.65; }
.notes a { color: var(--acc-2); border-bottom: 1px solid rgba(44,138,110,.3); }

.brands { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.brands li { border-bottom: 1px solid var(--line-2); }
.brands li:last-child { border-bottom: 0; }
.brands a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 12.5px; }
.brands a:hover { background: #FAFBFA; }
.brands i {
  width: 6px; height: 18px;
  flex: none;
  border-radius: 1px;
  background: var(--sc, var(--acc));
}
.brands b { font-weight: 500; }
.brands small { margin-left: auto; color: var(--ink-3); font-size: 11px; }

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
}

/* 窄屏 ------------------------------------------------------------------ */
@media (max-width: 1180px) {
  .apps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .side { width: 56px; padding-top: 6px; }
  .side-t, .side-foot { display: none; }
  .side-item { justify-content: center; padding: 0; height: 40px; gap: 0; }
  .side-item span, .side-item small { display: none; }
  .top-nav { display: none; }
  .search { width: 220px; }
}
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .main { padding: 16px; }
}
@media (max-width: 700px) {
  .apps, .stats { grid-template-columns: 1fr; }
  .top { gap: 10px; padding: 0 12px; }
  .brand-tx i, .top-ico, .who b { display: none; }
  .search { width: auto; flex: 1 1 0; min-width: 0; }
  .search kbd { display: none; }
  .side { width: 48px; }
  .side-item { height: 38px; }
  .main { padding: 14px 12px 32px; }
  .head-r { width: 100%; }
  .head-r .btn { flex: 1 1 0; justify-content: center; }
  .notes li { flex-direction: column; gap: 2px; }
  .notes b { width: auto; }
}
