﻿:root {
      --bg: #060916;
      --panel: rgba(9, 15, 34, 0.88);
      --panel-border: rgba(96, 152, 255, 0.22);
      --text: #eef2ff;
      --muted: rgba(238, 242, 255, 0.72);
      --accent: #63d8ff;
      --accent-2: #a970ff;
      --good: #57e4c1;
      --warn: #ffcd73;
      --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
    }
    * {
      box-sizing: border-box;
    }
    html,
    body {
      margin: 0;
      min-height: 100%;
      background:
        radial-gradient(circle at top, rgba(78, 89, 255, 0.22), transparent 26%),
        linear-gradient(180deg, #090d1c 0%, #03050d 100%);
      color: var(--text);
      font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    }
    body {
      min-height: 100vh;
      padding: 16px;
    }
    .app {
      width: min(1480px, 100%);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 340px 1fr;
      gap: 18px;
      align-items: start;
    }
    .panel {
      background: var(--panel);
      border: 1px solid var(--panel-border);
      border-radius: 28px;
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }
    .sidebar {
      padding: 22px;
      position: sticky;
      top: 16px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .eyebrow {
      font-size: 12px;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: #97d8ff;
    }
    .title {
      margin: 6px 0 0;
      font-size: 30px;
      line-height: 1.14;
      font-weight: 800;
    }
    .desc,
    .screen-subtitle,
    .status-line,
    .toast {
      font-size: 14px;
      line-height: 1.7;
      color: var(--muted);
    }
    .desc {
      margin: 0;
    }
    .thumbs {
      display: grid;
      gap: 10px;
    }
    .thumbButton {
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.03);
      border-radius: 22px;
      padding: 10px;
      display: grid;
      grid-template-columns: 84px 1fr;
      gap: 12px;
      text-align: left;
      color: var(--text);
      cursor: pointer;
      transition: transform .18s ease, border-color .18s ease, background .18s ease;
    }
    .thumbButton:hover,
    .thumbButton.active {
      transform: translateY(-1px);
      border-color: rgba(99, 216, 255, 0.44);
      background: rgba(99, 216, 255, 0.08);
    }
    .thumbPreview {
      width: 84px;
      height: 148px;
      border-radius: 16px;
      background-size: cover;
      background-position: center;
      border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .thumbMeta strong {
      display: block;
      font-size: 15px;
      margin-bottom: 4px;
    }
    .thumbMeta span {
      display: block;
      font-size: 12px;
      color: var(--muted);
      line-height: 1.55;
    }
    .statusCard {
      border-radius: 22px;
      padding: 16px 18px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .statusTitle {
      font-size: 15px;
      font-weight: 700;
    }
    .workspace {
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      min-height: calc(100vh - 32px);
    }
    .toolbar {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: center;
    }
    .screenTitle {
      margin: 0;
      font-size: 22px;
    }
    .toolbarActions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    .toolbarButton {
      min-width: 108px;
      height: 42px;
      padding: 0 18px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(255, 255, 255, 0.05);
      color: var(--text);
      cursor: pointer;
      transition: all .18s ease;
    }
    .toolbarButton:hover {
      border-color: rgba(99, 216, 255, 0.42);
      background: rgba(99, 216, 255, 0.12);
    }
    .artboardWrap {
      flex: 1;
      display: grid;
      place-items: center;
      padding: 8px 0 4px;
    }
    .artboardShell {
      position: relative;
      width: min(52.6vh, 46vw, 530px);
      min-width: 300px;
      aspect-ratio: 941 / 1672;
      border-radius: 30px;
      overflow: hidden;
      box-shadow: 0 30px 100px rgba(0, 0, 0, 0.52);
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: #040711;
    }
    .artboard {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center top;
    }
    .hotspotLayer {
      position: absolute;
      inset: 0;
    }
    .hotspot {
      position: absolute;
      border: 0;
      background: transparent;
      cursor: pointer;
      border-radius: 999px;
      outline: none;
    }
    .hotspot::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      border: 1px solid transparent;
      transition: all .18s ease;
    }
    .hotspot:hover::before,
    .hotspot:focus-visible::before {
      border-color: rgba(99, 216, 255, 0.76);
      box-shadow: 0 0 18px rgba(99, 216, 255, 0.45);
      background: rgba(99, 216, 255, 0.06);
    }
    .hotspot.pulse::before {
      border-color: rgba(99, 216, 255, 0.48);
      box-shadow: 0 0 20px rgba(99, 216, 255, 0.34);
      animation: pulse 1.8s infinite ease-in-out;
    }
    .hotspot.square {
      border-radius: 18px;
    }
    .toast {
      position: absolute;
      left: 50%;
      bottom: 7.5%;
      transform: translateX(-50%);
      width: 82%;
      padding: 14px 16px;
      border-radius: 20px;
      background: rgba(7, 12, 27, 0.86);
      border: 1px solid rgba(99, 216, 255, 0.26);
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
      color: #edf6ff;
      opacity: 0;
      pointer-events: none;
      transition: opacity .22s ease, transform .22s ease;
    }
    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(-6px);
    }
    .toast.good {
      border-color: rgba(87, 228, 193, 0.34);
      color: #dffff5;
    }
    .toast.warn {
      border-color: rgba(255, 205, 115, 0.36);
      color: #fff2d6;
    }
    .legend {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .legendTag {
      padding: 8px 12px;
      border-radius: 999px;
      font-size: 12px;
      color: var(--muted);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }
    @keyframes pulse {
      0%,
      100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.03);
      }
    }
    @media (max-width: 1120px) {
      .app {
        grid-template-columns: 1fr;
      }
      .sidebar {
        position: static;
      }
      .workspace {
        min-height: auto;
      }
      .artboardShell {
        width: min(76vw, 530px);
      }
    }