:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #1f252d;
  --muted: #66717f;
  --line: #d8dee6;
  --blue: #1677ff;
  --blue-dark: #1264a3;
  --green: #1f7a56;
  --red: #b33b32;
  --amber: #9b5b06;
  --teal: #147d86;
  --ink: #121821;
  --shadow: 0 16px 42px rgba(22, 31, 43, 0.09);
  --header-height: 56px;
  --page-gap: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--blue-dark);
}

button,
input {
  font: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 18px;
  align-items: center;
  min-height: var(--header-height);
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 15px;
}

h4 {
  font-size: 13px;
}

.subhead {
  max-width: 860px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.header-crumb {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.header-crumb strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-crumb b {
  color: #9aa4b2;
}

.related-links {
  position: relative;
}

.related-links summary {
  display: grid;
  min-height: 32px;
  padding: 6px 12px;
  place-items: center;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid #bfd0df;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.related-links summary::marker {
  content: "";
}

.related-links div {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 150px;
  padding: 6px;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(22, 31, 43, 0.14);
}

.related-links:not([open]) div {
  display: none;
}

.related-links a {
  padding: 8px 10px;
  color: var(--blue-dark);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.related-links a:hover {
  background: #eef7ff;
}

.mockup-shell {
  display: grid;
  grid-template-columns: 280px minmax(620px, 1fr) 360px;
  gap: var(--page-gap);
  padding: var(--page-gap);
}

.panel,
.workspace,
.inspector {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.left-rail,
.inspector {
  position: sticky;
  top: calc(var(--header-height) + var(--page-gap));
  height: calc(100vh - var(--header-height) - (var(--page-gap) * 2));
  overflow: auto;
  scrollbar-gutter: auto;
}

.left-rail,
.inspector,
.store-home,
.category-page,
.cart-page,
.profile-page,
.login-page {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.left-rail:hover,
.inspector:hover,
.store-home:hover,
.category-page:hover,
.cart-page:hover,
.profile-page:hover,
.login-page:hover {
  scrollbar-color: rgba(110, 118, 130, 0.38) transparent;
}

.left-rail::-webkit-scrollbar,
.inspector::-webkit-scrollbar,
.store-home::-webkit-scrollbar,
.category-page::-webkit-scrollbar,
.cart-page::-webkit-scrollbar,
.profile-page::-webkit-scrollbar,
.login-page::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.left-rail::-webkit-scrollbar-track,
.inspector::-webkit-scrollbar-track,
.store-home::-webkit-scrollbar-track,
.category-page::-webkit-scrollbar-track,
.cart-page::-webkit-scrollbar-track,
.profile-page::-webkit-scrollbar-track,
.login-page::-webkit-scrollbar-track {
  background: transparent;
}

.left-rail::-webkit-scrollbar-thumb,
.inspector::-webkit-scrollbar-thumb,
.store-home::-webkit-scrollbar-thumb,
.category-page::-webkit-scrollbar-thumb,
.cart-page::-webkit-scrollbar-thumb,
.profile-page::-webkit-scrollbar-thumb,
.login-page::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.left-rail:hover::-webkit-scrollbar-thumb,
.inspector:hover::-webkit-scrollbar-thumb,
.store-home:hover::-webkit-scrollbar-thumb,
.category-page:hover::-webkit-scrollbar-thumb,
.cart-page:hover::-webkit-scrollbar-thumb,
.profile-page:hover::-webkit-scrollbar-thumb,
.login-page:hover::-webkit-scrollbar-thumb {
  background: rgba(110, 118, 130, 0.38);
}

.phone-frame .store-home,
.phone-frame .category-page,
.phone-frame .cart-page,
.phone-frame .profile-page,
.phone-frame .login-page {
  scrollbar-width: none;
}

.phone-frame .store-home::-webkit-scrollbar,
.phone-frame .category-page::-webkit-scrollbar,
.phone-frame .cart-page::-webkit-scrollbar,
.phone-frame .profile-page::-webkit-scrollbar,
.phone-frame .login-page::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.panel {
  padding: 16px;
}

.panel + .panel {
  margin-top: 14px;
}

.panel h2,
.workspace-head h2,
.inspector h2 {
  margin-bottom: 12px;
}

.scene-list,
.research-list,
.state-grid,
.callout-list {
  display: grid;
  gap: 8px;
}

.scene-button {
  position: relative;
  display: grid;
  width: 100%;
  gap: 4px;
  min-height: 66px;
  padding: 10px 12px 10px 40px;
  color: var(--text);
  text-align: left;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  cursor: pointer;
}

.scene-button::before {
  position: absolute;
  top: 13px;
  left: 12px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  content: attr(data-step);
  font-size: 11px;
  font-weight: 800;
}

.scene-button:hover,
.scene-button.active {
  border-color: var(--teal);
  box-shadow: inset 3px 0 0 var(--teal);
}

.scene-button span {
  font-weight: 800;
}

.scene-button small,
.research-item small,
.microcopy,
.field small,
.flow-note,
.badge-note {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.research-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--panel-soft);
  border: 1px solid #e0e6ee;
  border-radius: 8px;
}

.research-item strong {
  font-size: 13px;
}

.workspace {
  min-width: 0;
  padding: 16px;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.mockup-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  min-width: 0;
  min-height: 610px;
  padding: 18px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(145deg, rgba(22, 100, 163, 0.2), rgba(20, 125, 134, 0.24)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
}

.phone-frame {
  flex: 0 0 360px;
  width: 360px;
  height: 710px;
  padding: 12px;
  color: #18202b;
  background: #121821;
  border-radius: 34px;
  box-shadow: 0 24px 60px rgba(18, 24, 33, 0.22);
}

.phone-frame button {
  font: inherit;
  cursor: pointer;
}

.phone-frame {
  font-size: 13px;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  min-height: 622px;
  background: #f7f9fc;
  border-radius: 24px;
}

.miniapp-screen {
  position: relative;
  overflow: hidden;
  height: 686px;
  color: #111820;
  background: #f4f4f4;
  border-radius: 24px;
}

.miniapp-screen.is-dark {
  color: #fff;
  background: #050914;
}

.miniapp-status {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 800;
}

.miniapp-signal {
  font-size: 10px;
}

.miniapp-topbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  padding: 0 16px;
}

.miniapp-topbar.home-topbar {
  gap: 10px;
  background: rgba(10, 17, 32, 0.42);
}

.home-topbar-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.miniapp-nav-extra {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.miniapp-title-row {
  display: flex;
  gap: 6px;
  align-items: center;
  line-height: 1;
}

.miniapp-title-row h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 20px;
}

.miniapp-back,
.search-icon,
.hero-search {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.search-glyph {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-glyph::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
}

.miniapp-capsule,
.rating-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(152, 160, 170, 0.22);
  border-radius: 999px;
}

.is-dark .miniapp-capsule,
.is-dark .rating-pill {
  background: rgba(15, 22, 35, 0.62);
  border-color: rgba(255, 255, 255, 0.12);
}

.miniapp-capsule {
  gap: 7px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1;
}

.miniapp-capsule i {
  width: 1px;
  height: 14px;
  background: rgba(110, 118, 130, 0.24);
}

.miniapp-capsule b {
  width: 16px;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.rating-pill {
  margin-right: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.store-home,
.category-page,
.cart-page,
.profile-page,
.login-page {
  height: calc(100% - 70px);
  overflow: auto;
  padding-bottom: 76px;
}

.store-home {
  padding-bottom: 76px;
  background: #fff;
}

.hero-panel {
  position: relative;
  min-height: 408px;
  padding: 10px 16px 18px;
  background:
    radial-gradient(circle at 74% 50%, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(180deg, rgba(5, 10, 25, 0.38), rgba(3, 7, 15, 0.95)),
    linear-gradient(135deg, #142037, #060914);
}

.hero-panel::after {
  position: absolute;
  right: 0;
  bottom: 66px;
  left: 0;
  height: 72px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 18%, rgba(255, 255, 255, 0.12));
  content: "";
  opacity: 0.5;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
  line-height: 1;
}

.hero-tabs {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
}

.topbar-tabs {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-tabs span {
  opacity: 0.82;
}

.hero-tabs .active {
  position: relative;
  opacity: 1;
}

.hero-tabs .active::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: #fff;
  content: "";
}

.hero-cats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-bike {
  position: absolute;
  right: 24px;
  bottom: 122px;
  width: 236px;
  height: 166px;
}

.hero-bike .wheel {
  position: absolute;
  bottom: 0;
  width: 54px;
  height: 54px;
  border: 11px solid #06070a;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #343a43, 0 0 18px rgba(255, 255, 255, 0.18);
}

.hero-bike .wheel.left {
  left: 18px;
}

.hero-bike .wheel.right {
  right: 18px;
}

.hero-bike .body {
  position: absolute;
  right: 42px;
  bottom: 34px;
  width: 144px;
  height: 58px;
  background: linear-gradient(135deg, #cfd3d8, #3c424b 58%, #05070a);
  border-radius: 52px 46px 16px 20px;
  transform: skewX(-12deg);
}

.hero-bike .body::after {
  position: absolute;
  right: 10px;
  top: 23px;
  width: 22px;
  height: 8px;
  background: #ffd028;
  border-radius: 999px;
  box-shadow: 0 0 10px #ffd028;
  content: "";
}

.hero-bike .handle {
  position: absolute;
  right: 23px;
  bottom: 92px;
  width: 58px;
  height: 48px;
  border-top: 7px solid #10141b;
  border-right: 7px solid #10141b;
  border-radius: 0 18px 0 0;
  transform: rotate(-18deg);
}

.hero-copy {
  position: absolute;
  left: 16px;
  bottom: 78px;
  display: grid;
  gap: 2px;
  z-index: 1;
}

.hero-copy strong {
  font-size: 38px;
  line-height: 1;
}

.hero-copy span {
  font-size: 15px;
  font-weight: 900;
}

.hero-copy small {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 800;
}

.reserve-button {
  position: absolute;
  right: 16px;
  bottom: 82px;
  min-width: 96px;
  min-height: 34px;
  color: #fff;
  background: #ef1b1b;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots b,
.hero-dots i {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
}

.hero-dots b {
  width: 42px;
}

.store-section {
  padding: 18px 16px;
  color: #111820;
}

.section-title,
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title h3,
.card-head h3,
.guess-section h3,
.tools-card h3 {
  margin: 0;
  font-size: 17px;
}

.section-title button,
.card-head button {
  color: #111820;
  background: transparent;
  border: 0;
  font-weight: 800;
}

.promo-card {
  display: flex;
  justify-content: space-between;
  min-height: 126px;
  margin-top: 18px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, #92a0b9, #384157);
  border-radius: 14px;
}

.promo-card div:first-child {
  display: grid;
  gap: 8px;
  align-content: start;
}

.promo-card strong {
  font-size: 16px;
}

.promo-people {
  width: 92px;
  background:
    radial-gradient(circle at 30% 34%, #ffd9ca 0 11px, transparent 12px),
    radial-gradient(circle at 65% 30%, #f4c6aa 0 10px, transparent 11px),
    linear-gradient(90deg, transparent 0 20%, #f2f2f2 20% 44%, transparent 44% 52%, #f4a35f 52% 76%, transparent 76%);
}

.category-page {
  display: grid;
  grid-template-columns: 82px 1fr;
  padding-bottom: 68px;
  background: #fff;
}

.category-menu {
  display: grid;
  align-content: start;
  background: #f1f1f1;
}

.category-menu button {
  min-height: 52px;
  color: #777;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  font-weight: 800;
}

.category-menu .active {
  color: #d32228;
  background: #fff;
  border-left-color: #e60012;
}

.category-content {
  padding: 18px 10px;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 16px;
}

.category-tabs strong {
  color: #d32228;
}

.category-tabs b {
  margin-left: auto;
  font-size: 21px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 12px;
  margin-top: 20px;
}

.product-tile {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #111820;
  background: transparent;
  border: 0;
  font-weight: 800;
}

.product-bike {
  width: 56px;
  height: 40px;
  background:
    radial-gradient(circle at 18% 82%, #111 0 8px, transparent 9px),
    radial-gradient(circle at 82% 82%, #111 0 8px, transparent 9px),
    linear-gradient(135deg, #d3d7dd, #656b73);
  border-radius: 22px 20px 8px 8px;
}

.product-bike.muted {
  opacity: 0;
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  font-size: 15px;
  font-weight: 900;
}

.cart-page {
  background: #fff;
}

.login-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 32px;
  padding: 0 16px;
  color: #cc2731;
  background: #fff1f2;
  border: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.empty-cart {
  display: grid;
  gap: 14px;
  justify-items: center;
  min-height: 260px;
  padding: 58px 20px;
  background: #fff;
  border-radius: 18px;
}

.box-icon {
  width: 58px;
  height: 48px;
  background: linear-gradient(135deg, #b7b7ba 0 52%, #d7d7da 52%);
  clip-path: polygon(22% 0, 78% 0, 100% 35%, 100% 100%, 0 100%, 0 35%);
}

.empty-cart p {
  color: #8d8d8d;
  font-size: 15px;
}

.empty-cart button {
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 900;
}

.guess-section {
  padding: 18px 14px 80px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.skeleton-card {
  display: grid;
  gap: 10px;
}

.skeleton-card span {
  height: 138px;
  background: #f1f2f4;
  border-radius: 8px;
}

.skeleton-card b {
  height: 15px;
  background: #f1f2f4;
  border-radius: 999px;
}

.profile-page {
  padding: 14px 10px 80px;
  background: #f3f3f3;
}

.login-card,
.order-card,
.tools-card,
.member-card {
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 18px;
}

.login-card {
  display: grid;
  grid-template-columns: 58px 1fr 20px;
  gap: 14px;
  align-items: center;
  min-height: 94px;
  padding: 16px;
  text-align: left;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  background:
    radial-gradient(circle at 50% 31%, #f5f6f8 0 12px, transparent 13px),
    radial-gradient(circle at 50% 90%, #f5f6f8 0 36px, transparent 37px),
    #bfc4ce;
  border-radius: 50%;
}

.login-card strong {
  font-size: 19px;
}

.login-card b {
  font-size: 24px;
}

.order-card,
.tools-card,
.member-card {
  margin-top: 12px;
  padding: 16px 14px;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.order-status {
  display: grid;
  gap: 7px;
  min-height: 102px;
  padding: 12px 10px;
  background: #f7f7f7;
  border-radius: 14px;
}

.order-status i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: #ef0000;
  border-radius: 50%;
  font-style: normal;
}

.order-status strong {
  font-size: 15px;
}

.order-status span {
  color: #777;
  font-size: 12px;
}

.order-status.compact {
  min-height: 82px;
}

.tools-card {
  display: grid;
  gap: 4px;
}

.tools-card button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  padding: 0 2px;
  color: #333;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  font-weight: 800;
}

.logout-button {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  color: #d32228;
  background: #fff;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
}

.member-card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.member-card div {
  display: grid;
  gap: 3px;
}

.member-card strong {
  font-size: 17px;
}

.member-card span {
  color: #777;
  font-size: 13px;
}

.login-page {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 34px 20px 82px;
  background: #fff;
}

.login-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
}

.login-page h3 {
  margin: 0;
  font-size: 20px;
}

.login-page p {
  color: #777;
  font-size: 12px;
}

.agreement-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  color: #777;
  font-size: 12px;
}

.agreement-check {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  background: #fff;
  border: 1px solid #c9cdd3;
  border-radius: 50%;
}

.agreement-check.checked {
  background: #e60012;
  border-color: #e60012;
  box-shadow: inset 0 0 0 4px #fff;
}

.phone-login-button,
.quiet-button {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
}

.phone-login-button {
  color: #fff;
  background: #e60012;
  border: 0;
}

.phone-login-button.disabled {
  background: #c9cdd3;
}

.quiet-button {
  color: #777;
  background: transparent;
  border: 0;
}

.auth-underlay {
  filter: saturate(0.8);
}

.auth-platform-mask {
  position: absolute;
  inset: 70px 0 0;
  z-index: 6;
  background: rgba(0, 0, 0, 0.36);
}

.auth-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  display: grid;
  gap: 12px;
  padding: 10px 18px 16px;
  color: #1f252d;
  text-align: left;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.22);
}

.alipay-grabber {
  width: 34px;
  height: 4px;
  margin: 0 auto;
  background: #d8dce2;
  border-radius: 999px;
}

.alipay-auth-title {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding-top: 2px;
}

.alipay-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: #1677ff;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
}

.auth-sheet h3 {
  margin: 0;
  color: #111820;
  font-size: 15px;
  line-height: 20px;
}

.auth-sheet p {
  color: #6b7280;
  font-size: 12px;
  line-height: 18px;
}

.alipay-permission {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: 9px 10px;
  background: #f6f8fb;
  border: 1px solid #edf1f6;
  border-radius: 8px;
}

.alipay-permission span {
  color: #111820;
  font-size: 13px;
  font-weight: 800;
}

.alipay-permission strong {
  color: #1677ff;
  font-size: 13px;
  font-weight: 900;
}

.alipay-auth-note {
  margin-top: -2px;
}

.alipay-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 2px;
}

.alipay-auth-primary,
.alipay-auth-secondary {
  min-height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.alipay-auth-primary {
  color: #fff;
  background: #1677ff;
  border: 1px solid #1677ff;
}

.alipay-auth-secondary {
  color: #353b45;
  background: #fff;
  border: 1px solid #d9dfe8;
}

.fallback-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  background: var(--amber);
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
}

.manual-field {
  display: grid;
  gap: 6px;
  color: #777;
  font-size: 12px;
}

.manual-field input {
  min-height: 42px;
  padding: 8px 10px;
  background: #f6f7f9;
  border: 1px solid #e1e5eb;
  border-radius: 8px;
}

.verification-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
}

.verification-row input {
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  background: #f6f7f9;
  border: 1px solid #e1e5eb;
  border-radius: 8px;
}

.code-button {
  min-height: 42px;
  color: #d32228;
  background: #fff1f2;
  border: 1px solid #ffd4d8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.miniapp-tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 48px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #ddd;
}

.miniapp-tab {
  display: grid;
  grid-template-rows: 18px 13px;
  gap: 0;
  place-items: center;
  align-content: center;
  color: #111;
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 800;
}

.phone-frame .miniapp-tab {
  font-size: 10px;
}

.miniapp-tab-icon {
  font-size: 16px;
  line-height: 1;
}

.miniapp-tab.active {
  color: #d32228;
}

.mock-toast {
  position: absolute;
  right: 24px;
  bottom: 70px;
  left: 24px;
  z-index: 10;
  padding: 10px;
  color: #fff;
  text-align: center;
  background: rgba(17, 24, 32, 0.88);
  border-radius: 999px;
  font-size: 12px;
}

.mini-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  color: #18202b;
  font-size: 12px;
  font-weight: 800;
}

.capsule {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(127, 141, 158, 0.35);
  border-radius: 999px;
}

.dot {
  display: block;
  width: 4px;
  height: 4px;
  background: #1f252d;
  border-radius: 50%;
}

.mini-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid #e7ebf0;
}

.mini-nav strong {
  font-size: 15px;
}

.nav-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #e0e6ee;
  border-radius: 50%;
}

.screen-body {
  display: grid;
  gap: 14px;
  padding: 18px 16px 22px;
}

.brand-block {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.brand-mark,
.brand-logo {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: #1f252d;
  border-radius: 12px;
}

.brand-mark {
  color: #fff;
  background: #1f252d;
  font-weight: 900;
}

.brand-logo {
  object-fit: cover;
}

.brand-block h2 {
  margin: 0;
  font-size: 24px;
}

.product-card,
.notice-card,
.profile-card,
.form-card,
.result-card,
.sheet-card,
.toast-card {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
}

.product-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
}

.product-visual {
  min-height: 74px;
  background:
    linear-gradient(135deg, rgba(22, 100, 163, 0.1), rgba(31, 122, 86, 0.12)),
    #f2f6fa;
  border-radius: 8px;
}

.product-copy {
  display: grid;
  gap: 5px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.shortcut-item {
  display: grid;
  min-height: 54px;
  place-items: center;
  color: var(--blue-dark);
  background: #eef7ff;
  border: 1px solid #c9e1fb;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.product-copy strong,
.notice-card strong,
.profile-card strong,
.sheet-card strong,
.result-card strong {
  font-size: 14px;
}

.notice-card,
.profile-card,
.form-card,
.result-card,
.sheet-card,
.toast-card {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.primary-button,
.secondary-button,
.text-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
  cursor: default;
}

.primary-button {
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.secondary-button {
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid #bfd0df;
}

.text-button {
  min-height: 36px;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
}

.check {
  display: block;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: var(--blue);
  border-radius: 4px;
  box-shadow: inset 0 0 0 4px #fff;
}

.avatar-placeholder {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--muted);
  background: #eef2f6;
  border: 1px solid #dce3eb;
  border-radius: 50%;
  font-weight: 900;
}

.profile-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--blue-dark);
  border-radius: 50%;
  object-fit: cover;
}

.field {
  display: grid;
  gap: 5px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
}

.input {
  min-height: 40px;
  padding: 9px 10px;
  color: #1f252d;
  background: #f8fafc;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
}

.divider {
  height: 1px;
  background: #e5ebf2;
}

.bottom-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 12px;
  padding: 14px 16px 18px;
  background: #fff;
  border-top: 1px solid #dfe6ee;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -18px 38px rgba(22, 31, 43, 0.16);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto;
  background: #d9e0e8;
  border-radius: 999px;
}

.sheet-title {
  display: grid;
  gap: 6px;
  text-align: center;
}

.phone-mask {
  padding: 10px;
  color: var(--blue-dark);
  text-align: center;
  background: #eef7ff;
  border: 1px solid #c9e1fb;
  border-radius: 8px;
  font-weight: 900;
}

.loading-stack {
  display: grid;
  gap: 8px;
  padding: 18px 12px;
}

.skeleton {
  height: 14px;
  background: linear-gradient(90deg, #e9eef5, #f8fafc, #e9eef5);
  border-radius: 999px;
}

.skeleton.short {
  width: 62%;
}

.success-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
}

.warning-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  background: var(--amber);
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
}

.mini-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
}

.mini-tab {
  padding: 9px 6px;
  color: var(--muted);
  text-align: center;
  border-right: 1px solid #e3e8ef;
  font-size: 12px;
  font-weight: 800;
}

.mini-tab:last-child {
  border-right: 0;
}

.mini-tab.active {
  color: var(--blue-dark);
  background: #eef7ff;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 4px;
  padding: 8px 6px;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
}

.tabbar-item {
  display: grid;
  min-height: 34px;
  place-items: center;
  color: var(--muted);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.tabbar-item.active {
  color: var(--blue-dark);
  background: #eef7ff;
}

.tabbar-item.target {
  color: var(--green);
  background: #edf8f2;
  box-shadow: inset 0 0 0 1px #cbe8d9;
}

.flow-panel {
  display: grid;
  flex: 1 1 280px;
  gap: 12px;
  min-width: 0;
}

.flow-title {
  display: grid;
  gap: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e6ee;
}

.flow-steps {
  display: grid;
  gap: 8px;
}

.flow-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  background: var(--panel-soft);
  border: 1px solid #e0e6ee;
  border-radius: 8px;
}

.flow-step b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 50%;
  font-size: 12px;
}

.flow-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.flow-title,
.flow-steps,
.badge-row {
  min-width: 0;
}

.flow-copy strong {
  font-size: 13px;
}

.flow-copy code,
.api-chip {
  color: #81420a;
  background: #fff7e8;
  border: 1px solid #f0d4a5;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.flow-copy code {
  display: inline-block;
  padding: 1px 5px;
}

.api-chip {
  padding: 3px 6px;
}

.state-grid {
  grid-template-columns: repeat(2, 1fr);
}

.state-card {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e0e6ee;
  border-radius: 8px;
}

.state-card strong {
  font-size: 13px;
}

.callout {
  min-width: 0;
  padding: 10px;
  background: #f7fbff;
  border: 1px solid #cfe1f3;
  border-radius: 8px;
}

.callout.warn {
  background: #fff8ed;
  border-color: #efd2a3;
}

.callout strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.inspector {
  padding: 16px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.tab {
  min-height: 34px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 16px;
}

#designRoot,
#devRoot {
  display: grid;
  gap: 16px;
}

.inspector-section {
  display: grid;
  gap: 10px;
}

.inspector-section h3 {
  margin: 0;
  font-size: 13px;
}

.copy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.copy-table th,
.copy-table td {
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e0e6ee;
}

.copy-table th {
  color: var(--muted);
  font-size: 12px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: var(--blue-dark);
  background: #eef7ff;
  border: 1px solid #c9e1fb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.green {
  color: var(--green);
  background: #edf8f2;
  border-color: #cbe8d9;
}

.note-list,
.api-list {
  display: grid;
  gap: 8px;
}

.note-card,
.api-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #e0e6ee;
  border-radius: 8px;
}

.note-card strong,
.api-card strong {
  font-size: 13px;
}

.field-list {
  display: grid;
  overflow: hidden;
  border: 1px solid #e0e6ee;
  border-radius: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(78px, 0.52fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  background: #fff;
  border-bottom: 1px solid #e0e6ee;
}

.field-row:last-child {
  border-bottom: 0;
}

.field-row code {
  overflow-wrap: anywhere;
  color: #81420a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.field-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.badge.amber {
  color: var(--amber);
  background: #fff7e8;
  border-color: #f0d4a5;
}

.source-list {
  display: grid;
  gap: 8px;
}

.source-list a {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .app-header {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .header-crumb {
    order: 2;
  }

  .related-links {
    justify-self: start;
  }

  .mockup-shell {
    grid-template-columns: 1fr;
  }

  .left-rail,
  .inspector {
    position: static;
    height: auto;
  }

  .state-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    flex-basis: auto;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}
