:root {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: #172033;
  background: #eef3f7;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  width: 280px;
  overflow-y: auto;
  border-right: 1px solid #dbe4ec;
  background: #fff;
}

.brand {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid #e6edf3;
  background: #fff;
}

.brand strong {
  width: fit-content;
  font-size: 22px;
  color: transparent;
  background: linear-gradient(90deg, #007cf0, #00dfd8);
  background-clip: text;
}

.brand span {
  font-size: 13px;
  color: #6c7888;
}

.category-list {
  padding: 12px;
}

.category {
  margin-bottom: 14px;
}

.category h2 {
  margin: 0 8px 7px;
  font-size: 12px;
  color: #7a8796;
}

.screen-link {
  display: block;
  width: 100%;
  min-height: 38px;
  margin: 2px 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: #334155;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.screen-link:hover {
  background: #f0f7ff;
}

.screen-link.active {
  color: #006fe8;
  background: #eaf5ff;
  font-weight: 700;
}

.preview {
  grid-column: 2;
  min-width: 0;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid #dbe4ec;
  background: rgba(255, 255, 255, 0.96);
}

.toolbar > div:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.toolbar strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar span {
  font-size: 12px;
  color: #7b8794;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d7e1ea;
  border-radius: 6px;
  color: #253247;
  background: #fff;
  cursor: pointer;
}

#menu-button {
  display: none;
}

.device-stage {
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 126px);
  padding: 24px 24px 92px;
}

.phone {
  position: relative;
  width: min(430px, 100%);
  align-self: flex-start;
  overflow: hidden;
  border: 1px solid #dce5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(38, 64, 89, 0.12);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.hotspot-layer {
  position: absolute;
  inset: 0;
}

.hotspot {
  position: absolute;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.hotspot:hover,
.hotspot:focus-visible {
  border-color: #007cf0;
  background: rgba(0, 124, 240, 0.09);
  outline: 0;
}

.prototype-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 6px;
  color: #fff;
  background: #172033;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.2);
  font-size: 14px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  padding-top: 60px;
  background: #fff;
}

.close-menu {
  position: fixed;
  top: 12px;
  right: 14px;
  min-width: 68px;
  height: 38px;
  border: 1px solid #d6e0e8;
  border-radius: 6px;
  background: #fff;
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .preview {
    width: 100%;
  }

  #menu-button {
    display: grid;
  }

  .device-stage {
    padding: 12px 0 82px;
  }

  .phone {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .prototype-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
    text-align: center;
  }

}
