:root {
  --side: #18181b;
  --side-text: #c5cdd8;
  --side-muted: #8b93a1;
  --active: #2463ee;
  --primary: #2463ee;
  --bg: #f2f4f7;
  --card: #ffffff;
  --line: #e6e8ee;
  --text: #1f2430;
  --header-h: 64px;
  --side-w: 240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}
.layout { min-height: 100vh; }
.side {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--side-w);
  background: var(--side);
  color: var(--side-text);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #fff;
  font-weight: 700;
  letter-spacing: .5px;
}
.brand-logo { height: 42px; width: auto; display: block; flex: none; }
.brand small { display: block; font-weight: 400; color: var(--side-muted); font-size: 12px; letter-spacing: 0; }
.logo-mark { height: 44px; width: auto; display: block; flex: none; }
.main-logo-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.logo-main { height: 108px; width: auto; display: block; }
.search {
  margin: 12px 12px 4px;
  background: #111317;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: #fff;
  padding: 8px 10px;
  width: calc(100% - 24px);
  outline: none;
}
.search:focus { border-color: var(--active); }
.nav { overflow: auto; padding: 8px 10px 24px; }
.group-title {
  margin: 14px 8px 6px;
  font-size: 12px;
  color: var(--side-muted);
}
.nav a {
  display: block;
  color: var(--side-text);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  margin: 2px 0;
  font-size: 14px;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: var(--active); color: #fff; font-weight: 700; }
.nav a.hide { display: none; }
.main { margin-left: var(--side-w); min-height: 100vh; }
.top {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  z-index: 10;
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.crumb { color: #6b7280; font-size: 13px; margin-left: auto; }
.biz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f7a3a;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.biz:hover { background: #0c6430; }
.top .biz { flex: none; margin-left: 12px; }
.crumb b { color: var(--text); font-weight: 700; }
.content { padding: 22px 28px 96px; max-width: 1080px; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.card, .page-title { scroll-margin-top: 72px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px 8px;
  margin: 0 0 14px;
}
.page-title {
  margin: 22px 0 10px;
  font-size: 18px;
  color: #fff;
  background: #1f2430;
  border-radius: 8px;
  padding: 8px 14px;
}
h3 {
  margin: 4px 0 10px;
  font-size: 17px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}
p { margin: 6px 0 10px; }
.shot {
  margin: 8px 0 14px;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.shot figcaption { color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.shot img { width: 100%; height: auto; display: block; border-radius: 8px; background: #fff; }
.open { color: #2463ee; font-weight: 700; }
.req { color: #d32f2f; font-weight: 700; }
.done { color: #0f7a3a; font-weight: 700; }
.warn { color: #ad1457; font-weight: 700; }
.hot { color: #e65100; font-weight: 800; background: #ffe0b2; border-radius: 4px; padding: 0 4px; }
.foot { color: #6b7280; font-size: 13px; margin-top: 18px; }
.end-nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px 18px;
  margin-top: 18px;
}
.end-nav .page-title { margin-top: 0; }
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.cat-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.cat-btn, .to-top, .dock button, .sub-links a {
  font-family: inherit;
}
.cat-btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.cat-btn:hover, .cat-btn.active { background: var(--primary); color: #fff; }
.sub-links { display: none; flex-wrap: wrap; gap: 6px; padding: 8px; background: #f7f8fa; }
.sub-links.show { display: flex; }
.sub-links a {
  color: var(--primary);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
}
.sub-links a:hover { border-color: var(--primary); }
.end-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.to-top {
  border: 0;
  background: #18181b;
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
}
.dock.show { display: flex; }
.dock button, .dock a {
  min-width: 112px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 6px 18px rgba(24, 24, 27, .18);
  text-align: center;
  text-decoration: none;
}
.dock .dock-biz { background: #0f7a3a; }
.dock .dock-top { background: #18181b; }
.picker {
  position: fixed;
  right: 22px;
  bottom: 170px;
  width: min(420px, calc(100vw - 44px));
  max-height: min(62vh, 520px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(24, 24, 27, .18);
  padding: 12px;
  z-index: 30;
  display: none;
}
.picker.show { display: block; }
.picker h3 { margin: 0 0 10px; border: 0; padding: 0; font-size: 15px; }
.mask { display: none; }
@media (max-width: 900px) {
  .side { transform: translateX(-105%); transition: transform .2s ease; }
  .side.open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-block; }
  .mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 15; }
  .mask.show { display: block; }
  .content { padding: 16px; }
  .logo-main { height: 72px; }
  .logo-mark { height: 36px; }
  .dock, .picker { right: 12px; }
  .picker { width: min(420px, calc(100vw - 24px)); }
}
