:root {
  --bg: #1a1d24;
  --panel: #242830;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #2b85ff;
  --phone-w: 390px;
  --radius: 36px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, #2a3344, var(--bg));
  color: var(--text);
  display: flex;
  min-height: 100%;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  width: 100%;
  min-height: 100%;
}

.sidebar {
  background: var(--panel);
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 20px 14px;
  overflow: auto;
  max-height: 100vh;
  position: sticky;
  top: 0;
}
.sidebar h1 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.sidebar .hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.toolbar button {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(43,133,255,.15);
  color: #8cb8ff;
  font-size: 12px;
}
.toolbar button:hover { background: rgba(43,133,255,.28); }
.toolbar button.active {
  background: var(--accent);
  color: #fff;
}

.group { margin-bottom: 16px; }
.group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0 8px 8px;
}
.nav-list { list-style: none; }
.nav-list li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #c9ced6;
}
.nav-list li a:hover { background: rgba(255,255,255,.06); }
.nav-list li a.active {
  background: rgba(43,133,255,.2);
  color: #fff;
}
.nav-list .tag {
  float: right;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px 40px;
  gap: 16px;
  min-width: 0;
}

.stage-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 420px);
}
.stage-bar .title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-bar .meta { font-size: 12px; color: var(--muted); }
.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 12px;
}

.phone {
  width: var(--phone-w);
  max-width: 100%;
  background: #000;
  border-radius: var(--radius);
  padding: 10px;
  box-shadow:
    0 0 0 2px #3a3f4a,
    0 20px 60px rgba(0,0,0,.45);
}
.phone-inner {
  position: relative;
  background: #f5f6f8;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  height: min(78vh, 780px);
  display: flex;
  flex-direction: column;
}
.screen-scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  background: #fff;
}
.screen-scroll::-webkit-scrollbar { width: 0; height: 0; }

.shot {
  position: relative;
  display: block;
  width: 100%;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  user-select: none;
  -webkit-user-drag: none;
}

/* HTML 锐利页铺满滚动区 */
.shot .ui-page,
.shot .stub {
  min-height: 100%;
}

/* 截图自带底栏时裁掉底部，避免与固定 Tab 重复 */
.shot.clip-tab {
  overflow: hidden;
}
.shot.clip-tab img {
  margin-bottom: -8.5%;
}

.hotspot {
  position: absolute;
  z-index: 2;
  border-radius: 6px;
  cursor: pointer;
}
.hotspot:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
body.show-hotspots .hotspot {
  background: rgba(43,133,255,.22);
  box-shadow: inset 0 0 0 1px rgba(43,133,255,.7);
}
body.show-hotspots .hotspot:hover {
  background: rgba(43,133,255,.38);
}

.stub {
  padding: 20px 16px 100px;
  min-height: 100%;
  background: #f5f6f8;
}
.stub .nav {
  display: flex;
  align-items: center;
  height: 44px;
  margin-bottom: 12px;
}
.stub .nav .back { width: 40px; font-size: 22px; color: #333; }
.stub .nav h2 { flex: 1; text-align: center; font-size: 17px; color: #111; font-weight: 600; }
.stub .card {
  background: #fff;
  border-radius: 12px;
  padding: 4px 0;
  margin-bottom: 12px;
}
.stub .row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #222;
  font-size: 15px;
}
.stub .row:last-child { border-bottom: 0; }
.stub .row .arrow { margin-left: auto; color: #ccc; }
.stub .avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #2b85ff, #69b1ff);
  margin-right: 12px;
}
.stub .user {
  display: flex;
  align-items: center;
  padding: 20px 16px;
  background: linear-gradient(180deg, #2b85ff, #4a9bff);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
}
.stub .user .name { font-size: 18px; font-weight: 700; }
.stub .user .sub { font-size: 12px; opacity: .85; margin-top: 4px; }

.fixed-tabs {
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid #eee;
  z-index: 5;
  grid-template-columns: repeat(5, 1fr);
}
.fixed-tabs.on { display: grid; }
.fixed-tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: #888;
}
.fixed-tabs a.active { color: var(--accent); font-weight: 600; }
.fixed-tabs .ico { font-size: 18px; line-height: 1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 99;
}
.toast.show { opacity: 1; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .phone { width: min(100%, 390px); }
  .phone-inner { height: min(72vh, 720px); }
}
