/* 远程办案 ViewOnly — 现代政务演示视觉 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap');

:root {
  --ink: #0c1524;
  --ink-soft: #243247;
  --muted: #5b6b7f;
  --line: rgba(15, 36, 64, 0.1);
  --paper: #f4f7fb;
  --card: #ffffff;
  --navy: #0f2744;
  --navy-2: #16365c;
  --teal: #0f8f8a;
  --teal-bright: #19b3ab;
  --amber: #c9851a;
  --danger: #c0392b;
  --ok: #1f8a4c;
  --shadow: 0 18px 50px rgba(12, 28, 52, 0.12);
  --radius: 16px;
  --font: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --display: 'Outfit', 'Noto Sans SC', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: linear-gradient(135deg, var(--teal), #0a6e6a);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 143, 138, 0.28);
}
.btn--secondary {
  background: var(--navy);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.btn--danger {
  background: var(--danger);
  color: #fff;
}
.btn--amber {
  background: linear-gradient(135deg, #d9982a, #b56e0f);
  color: #fff;
}
.btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e8eef6;
  color: var(--ink-soft);
}
.badge--live {
  background: rgba(25, 179, 171, 0.15);
  color: #0a6e6a;
}
.badge--done {
  background: rgba(31, 138, 76, 0.14);
  color: var(--ok);
}
.badge--wait {
  background: rgba(201, 133, 26, 0.16);
  color: #8a5a0c;
}

.demo-banner {
  background: linear-gradient(90deg, #16365c, #0f8f8a);
  color: #fff;
  font-size: 0.8125rem;
  padding: 0.45rem 1rem;
  text-align: center;
  letter-spacing: 0.02em;
}
.demo-banner strong {
  font-weight: 700;
}

.end-switch {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.end-switch a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8125rem;
  opacity: 0.9;
}
.end-switch a.is-current,
.end-switch a:hover {
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

/* 三端切换条：默认收起，由悬浮圆钮展开（不依赖 JS 先跑，避免首屏闪现） */
.demo-banner:not(.is-switch-open),
.party-switch.demo-banner:not(.is-switch-open) {
  display: none !important;
}
body.demo-switch-collapsed .demo-banner,
body.demo-switch-collapsed .party-switch.demo-banner {
  display: none !important;
}
.demo-banner {
  position: relative;
}
.demo-banner.is-switch-open,
.party-switch.demo-banner.is-switch-open {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 1200;
  box-shadow: 0 8px 24px rgba(7, 21, 37, 0.28);
}
.demo-end-fab-close {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}
.demo-end-fab-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.demo-end-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(72px, calc(16px + env(safe-area-inset-bottom, 0px)));
  z-index: 1300;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: grab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #16365c, #0f8f8a);
  box-shadow:
    0 8px 22px rgba(15, 39, 68, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.22);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.demo-end-fab:hover {
  transform: scale(1.06);
  box-shadow:
    0 10px 26px rgba(15, 39, 68, 0.42),
    0 0 0 3px rgba(255, 255, 255, 0.3);
}
.demo-end-fab:active,
.demo-end-fab.is-dragging {
  cursor: grabbing;
  transform: scale(1.02);
}
.demo-end-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
}
.demo-end-fab__icon {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}
body.is-in-meeting .demo-end-fab {
  opacity: 1;
  pointer-events: auto;
}

/* —— Hub landing —— */
.hub {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(25, 179, 171, 0.35), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(201, 133, 26, 0.22), transparent 50%),
    linear-gradient(160deg, #071525 0%, #0f2744 45%, #0a3d3a 100%);
  color: #e8eef6;
  overflow: hidden;
  position: relative;
}
.hub::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
  animation: gridDrift 28s linear infinite;
}
@keyframes gridDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(48px);
  }
}
.hub-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}
.hub-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  animation: rise 0.8s var(--ease) both;
}
.hub-lead {
  max-width: 36rem;
  color: rgba(232, 238, 246, 0.78);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 2.5rem;
  animation: rise 0.8s 0.08s var(--ease) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (max-width: 900px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  min-height: 260px;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
  animation: rise 0.8s var(--ease) both;
}
.hub-card:nth-child(2) {
  animation-delay: 0.12s;
}
.hub-card:nth-child(3) {
  animation-delay: 0.2s;
}
.hub-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(25, 179, 171, 0.45);
}
.hub-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
}
.hub-card p {
  margin: 0;
  color: rgba(232, 238, 246, 0.72);
  line-height: 1.55;
  flex: 1;
}
.hub-card .tag {
  align-self: flex-start;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(25, 179, 171, 0.2);
  color: #9ef0ea;
}
.hub-foot {
  margin-top: 2.5rem;
  color: rgba(232, 238, 246, 0.55);
  font-size: 0.875rem;
  animation: rise 0.8s 0.28s var(--ease) both;
}
.hub-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.hub-features span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  color: rgba(232, 238, 246, 0.7);
}

/* —— App shells —— */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}
@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
  }
}
.sidebar {
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #dbe7f5;
  padding: 1.25rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sidebar__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.35rem 0.5rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar__brand small {
  display: block;
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.72rem;
  opacity: 0.65;
  margin-top: 0.25rem;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-list a {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  color: rgba(219, 231, 245, 0.78);
  font-size: 0.92rem;
}
.nav-list a:hover,
.nav-list a.is-active {
  background: rgba(25, 179, 171, 0.22);
  color: #fff;
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.content {
  padding: 1.25rem 1.4rem 2.5rem;
}
.view {
  display: none;
  animation: fadeIn 0.35s var(--ease);
}
.view.is-active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
}
.panel + .panel {
  margin-top: 1rem;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.panel__head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
@media (max-width: 960px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, #eef5f4);
  border: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--navy);
  margin-top: 0.2rem;
}
.stat span {
  color: var(--muted);
  font-size: 0.82rem;
}

.table-wrap {
  overflow: auto;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th,
table.data td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: none;
}
table.data tr:hover td {
  background: rgba(15, 143, 138, 0.04);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 500;
}
.tabs button.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
}

.field-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.6rem;
  align-items: start;
  margin-bottom: 0.75rem;
}
.field-row label {
  color: var(--muted);
  font-size: 0.875rem;
  padding-top: 0.55rem;
}
.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: #fff;
}
.field-row textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #eef3f8;
  font-size: 0.82rem;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.bar-row {
  display: grid;
  grid-template-columns: 64px 1fr 40px;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
}
.bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e6edf5;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transform-origin: left;
  animation: grow 0.9s var(--ease) both;
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

.empty-hint {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fafcfe;
}

/* Meeting room mock */
.room {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1rem;
}
@media (max-width: 980px) {
  .room {
    grid-template-columns: 1fr;
  }
}
.stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
  background:
    radial-gradient(circle at 30% 20%, rgba(25, 179, 171, 0.25), transparent 40%),
    linear-gradient(145deg, #13253f, #0b1a2e);
  color: #fff;
}
.stage__label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
}
.stage__main {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  opacity: 0.85;
}
.pip-row {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.pip {
  width: 110px;
  height: 78px;
  border-radius: 10px;
  background: linear-gradient(160deg, #2a466c, #1a2f4a);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.side-tools .tool-block + .tool-block {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.transcript {
  max-height: 180px;
  overflow: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}
.transcript div {
  margin-bottom: 0.45rem;
}
.transcript b {
  color: var(--teal);
}

/* Party mobile app — 真机排版，无模拟手机外框 */
.party-body {
  background: #f4f7fb;
}
.party-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f4f7fb;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.party-switch,
.party-page .party-switch.demo-banner {
  width: 100%;
  margin: 0;
  border-radius: 0;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.party-page .party-switch a {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
.phone,
.party-app {
  width: 100%;
  max-width: none;
  min-height: 0;
  flex: 1;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: none;
}
.phone__status {
  min-height: 36px;
  height: auto;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1rem;
}
.phone__body,
.party-app-body {
  flex: 1;
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.party-page .view.is-active {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  min-height: 0;
}
.phone__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.party-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: #f8fafc;
}
.party-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}
.party-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.party-actions .btn {
  width: 100%;
  text-align: center;
}
.sign-pad {
  border: 1px dashed #9eb0c4;
  border-radius: 12px;
  background: #fff;
  touch-action: none;
  width: 100%;
  height: 160px;
}
.face-ring {
  width: 180px;
  height: 180px;
  margin: 0.5rem auto;
  border-radius: 50%;
  border: 3px solid var(--teal-bright);
  box-shadow: 0 0 0 8px rgba(25, 179, 171, 0.15);
  display: grid;
  place-items: center;
  color: var(--muted);
  animation: pulse 2.2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  font-weight: 600;
}
.face-ring.is-scanning {
  border-color: var(--amber);
  color: var(--navy);
  animation: pulse 1.1s ease-in-out infinite;
}
.face-ring.is-scanning::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  animation: faceScan 1.1s linear infinite;
}
.face-ring.is-pass {
  border-color: var(--ok);
  color: var(--ok);
  animation: none;
  box-shadow: 0 0 0 8px rgba(31, 138, 76, 0.16);
}
@keyframes faceScan {
  from { top: 12%; }
  to { top: 86%; }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 8px rgba(25, 179, 171, 0.12);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(25, 179, 171, 0.08);
  }
}
.fp-preview {
  height: 140px;
  border-radius: 12px;
  background:
    repeating-radial-gradient(circle at 50% 50%, #1a1a1a 0 1px, transparent 1px 3px),
    #f0f0f0;
  filter: contrast(1.2);
  display: grid;
  place-items: center;
  color: #333;
  font-weight: 600;
}

/* Overlay / toast */
#demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 28, 0.45);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 1rem;
}
#demo-overlay.is-open {
  display: grid;
}
.demo-modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
  animation: rise 0.3s var(--ease);
}
.demo-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.demo-modal__body {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}
.demo-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
#demo-toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2rem));
}
.toast {
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.28s var(--ease);
  font-size: 0.9rem;
}
.toast.is-in {
  opacity: 1;
  transform: none;
}
.toast--ok {
  background: #176b3c;
}
.toast--warn {
  background: #8a5a0c;
}
.toast--err {
  background: var(--danger);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.case-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}
@media (max-width: 900px) {
  .case-hero {
    grid-template-columns: 1fr;
  }
}
.kv {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.kv div {
  display: flex;
  gap: 0.5rem;
}
.kv b {
  min-width: 5.5rem;
  color: var(--muted);
  font-weight: 500;
}

/* —— ViewOnly 流程进度 / 会议 V3 / 横屏签字 —— */
.flow-progress {
  padding: 0.55rem 0.85rem 0.35rem;
  background: linear-gradient(180deg, #e8eef6, #f4f7fb);
  border-bottom: 1px solid var(--line);
}
.flow-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 36, 64, 0.08);
  overflow: hidden;
  margin-bottom: 0.45rem;
}
.flow-progress__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transition: width 0.35s var(--ease);
}
.flow-progress__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.flow-progress__steps li {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 36, 64, 0.04);
}
.flow-progress__steps li.is-done {
  color: var(--ok);
  background: rgba(31, 138, 76, 0.1);
}
.flow-progress__steps li.is-current {
  color: #fff;
  background: var(--navy);
}

.vv-v3 {
  border-radius: 14px;
  overflow: hidden;
  background: #0a0e1a;
  color: #e8eefc;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.vv-v3__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: rgba(12, 16, 28, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}
.vv-v3__body {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 0.5rem;
  padding: 0.55rem;
}
@media (max-width: 520px) {
  .vv-v3__body {
    grid-template-columns: 1fr;
  }
}
.vv-v3__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.vv-v3__side {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.5rem;
  font-size: 0.78rem;
}

body.party-landscape .phone {
  width: 100%;
  max-width: none;
}
body.party-landscape .sign-landscape {
  transform: none;
}
.sign-pad--landscape {
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed rgba(15, 36, 64, 0.25);
  touch-action: none;
}

/* —— 紧急需求演示：进度条 / 横屏签字 / 会议 V3 / 分会树 —— */
.flow-progress {
  padding: 0.45rem 0.75rem 0.55rem;
  background: linear-gradient(180deg, #0f2744, #16365c);
  color: #d7e4f5;
}
.flow-progress__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}
.flow-progress__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #19b3ab, #5eead4);
  transition: width 0.35s var(--ease);
}
.flow-progress__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.2rem;
  font-size: 0.68rem;
}
.flow-progress__steps li {
  opacity: 0.55;
}
.flow-progress__steps li.is-done {
  opacity: 1;
  color: #5eead4;
}
.flow-progress__steps li.is-current {
  opacity: 1;
  font-weight: 600;
  color: #fff;
}

.vv-v3 {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0c1524;
  color: #e8eef8;
}
.vv-v3__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}
.vv-v3__body {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 0.5rem;
  padding: 0.5rem;
}
.vv-v3__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.vv-v3__side {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.5rem;
  font-size: 0.78rem;
}
@media (max-width: 420px) {
  .vv-v3__body {
    grid-template-columns: 1fr;
  }
}

body.party-landscape .phone {
  width: 100%;
  max-width: none;
}
body.party-landscape .sign-pad--landscape {
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed rgba(15, 36, 64, 0.25);
  touch-action: none;
}
.sign-landscape .phone__title {
  margin-top: 0.2rem;
}

.meet-tree {
  display: grid;
  gap: 0.75rem;
}
.meet-tree__node {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: #fff;
}
.meet-tree__node h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.meet-tree__mats {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.role-gate-off {
  opacity: 0.45;
  pointer-events: none;
}


/* —— urgent14: party progress / V3 room / landscape sign —— */
.flow-progress {
  padding: 0.55rem 0.85rem 0.65rem;
  background: linear-gradient(180deg, #0f2744 0%, #163556 100%);
  color: #d7e6f7;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.flow-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
  margin-bottom: 0.45rem;
}
.flow-progress__bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3db8ff, #7ef0c2);
  transition: width 0.35s ease;
}
.flow-progress__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.68rem;
}
.flow-progress__steps li {
  opacity: 0.55;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.flow-progress__steps li.is-done { opacity: 0.95; color: #9ef0c8; }
.flow-progress__steps li.is-current {
  opacity: 1;
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(125, 211, 252, 0.12);
}

.vv-v3 {
  border: 1px solid rgba(15, 39, 68, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #0b1c2e;
  color: #e8f1fb;
}
.vv-v3__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: #13293f;
  font-size: 0.86rem;
}
.vv-v3__body {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 0.55rem;
  padding: 0.55rem;
}
@media (max-width: 720px) {
  .vv-v3__body { grid-template-columns: 1fr; }
}
.vv-v3__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.vv-v3__side {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 0.5rem;
  min-height: 120px;
}

body.party-landscape .phone {
  width: 100%;
  max-width: none;
  transform: none;
}
body.party-landscape .phone__body {
  min-height: 0;
}
.sign-landscape {
  padding: 0.25rem 0;
}
.sign-pad--landscape {
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #f7fafc;
  border-radius: 12px;
  border: 1px dashed #94a3b8;
  touch-action: none;
}

.badge--branch { background: #1d4ed8; color: #fff; }

.phone.landscape-mode {
  width: 100%;
  max-width: none;
}
body.party-landscape .sign-pad,
.phone.landscape-mode .sign-pad {
  height: min(42vh, 220px);
}
.phone.landscape-mode .phone__body {
  min-height: 0;
  padding: 0.75rem 1rem 1rem;
}


/* V3 navbar chrome sync 2026-08-18 */
.vv-brand-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.vv-brand { font-weight:700; letter-spacing:.04em; color:#fff; }
.vv-brand span { color:#4A90D9; }
.vv-top-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; color:rgba(255,255,255,.7); font-size:.8rem; }
.vv-v3__top .meeting-badge {
  display:inline-flex; align-items:center; gap:8px;
  padding:3px 12px; border-radius:999px;
  background:rgba(74,144,217,.12); border:1px solid rgba(74,144,217,.25); font-size:12px;
}
.vv-v3__top .meeting-badge .label { color:rgba(255,255,255,.45); font-size:10px; }
.vv-v3__top .meeting-badge .code { color:#fff; font-weight:600; font-variant-numeric:tabular-nums; }


/* —— 2026-08-18 严格对标 参考/视频会议V3.html 会议壳 —— */
.room--v3, .view[data-view="room"] .vv-shell {
  --vv-bg: #070b14;
  --vv-panel: rgba(12, 16, 28, 0.78);
  --vv-border: rgba(255, 255, 255, 0.06);
  --vv-accent: #4a90d9;
  --vv-text: #e8eef7;
  --vv-muted: rgba(255, 255, 255, 0.45);
}
.vv-shell {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(900px 420px at 20% -10%, #152238 0%, #070b14 55%);
  color: var(--vv-text, #e8eef7);
  border: 1px solid rgba(255,255,255,0.06);
}
.vv-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(12, 16, 28, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vv-navbar-left, .vv-navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.vv-shell .vv-brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #4A90D9, #7C5CFC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vv-shell .vv-brand span {
  background: linear-gradient(135deg, #4A90D9, #7C5CFC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vv-shell .meeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(74,144,217,0.12);
  border: 1px solid rgba(74,144,217,0.25);
  font-size: 12px;
}
.vv-shell .meeting-badge .label { color: rgba(255,255,255,0.45); font-size: 10px; }
.vv-shell .meeting-badge .code { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.vv-timer {
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 13px;
}
.vv-meta { color: rgba(255,255,255,0.55); font-size: 12px; }
.vv-online { color: #48bb78 !important; display: inline-flex; align-items: center; gap: 6px; }
.vv-online i { font-style: normal; font-size: 10px; }
.vv-main {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 14px;
  padding: 14px 16px 16px;
  min-height: 0;
}
.vv-video-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; gap: 10px; }
.vv-video-stage {
  flex: 1;
  min-height: 200px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(8, 12, 22, 0.9);
  overflow: hidden;
  position: relative;
}
.vv-subtitle {
  background: rgba(12,16,28,0.78);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 12px;
  color: #e8eef7;
}
.vv-subtitle-head { display:flex; justify-content:space-between; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.vv-subtitle-badge { color: #9ec5f0; }
.vv-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(12,16,28,0.78);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 12px;
  color: #e8eef7;
}
.vv-sidebar h3 { margin: 0 0 8px; font-size: 14px; color: #fff; }
.vv-shell .vv-v3__toolbar { display:flex; flex-wrap:wrap; gap:0.35rem; }
.vv-shell .stage__label, .vv-shell .stage__main { color: #e8eef7; }
.vv-shell .pip { background: #243044; color: #cbd5e1; }
@media (max-width: 900px) {
  .vv-main { flex-direction: column; }
  .vv-sidebar { width: 100%; max-height: 180px; }
}
