:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #f59e0b;
  --accent-soft: #fffbeb;
  --success: #10b981;
  --success-soft: #ecfdf5;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, #e0ecff 0%, #f1f5f9 45%, #e2e8f0 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Desktop Workspace Layout */
.workspace {
  display: grid;
  grid-template-columns: 280px 394px 320px;
  gap: 24px;
  align-items: start;
  max-width: 1120px;
  width: 100%;
}

.side-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  max-height: 828px;
  overflow-y: auto;
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.panel-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.panel-brand h1 {
  font-size: 15px;
  font-weight: 700;
}

.panel-brand p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.panel-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 14px 0 8px;
}

.persona-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.persona-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.persona-btn strong {
  display: block;
  font-size: 12px;
  color: var(--text);
}

.persona-btn span {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.persona-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.persona-btn.active strong {
  color: var(--primary-dark);
}

.sitemap-group {
  margin-bottom: 10px;
}

.sitemap-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  margin-bottom: 4px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.sitemap-btn:hover {
  background: #f1f5f9;
  color: var(--text);
}

.sitemap-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.sitemap-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 99px;
  background: #f1f5f9;
  color: var(--text-muted);
}

.sitemap-btn.active .sitemap-badge {
  background: rgba(37, 99, 235, 0.14);
  color: var(--primary);
}

/* Right PRD Inspector Panel */
.spec-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.spec-card h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-card p, .spec-card li {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.spec-card ul {
  padding-left: 16px;
}

.spec-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.spec-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e0ecff;
  color: #1d4ed8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.spec-tag.warn {
  background: #fef3c7;
  color: #b45309;
}

/* Phone Mockup Frame */
.phone-frame {
  width: 394px;
  height: 828px;
  background: #0f172a;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* WeChat Status Bar & Nav Bar */
.wx-statusbar {
  height: 40px;
  padding: 12px 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  flex-shrink: 0;
  position: relative;
}

.wx-statusbar.blue-header {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

.wx-notch {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #0f172a;
  border-radius: 14px;
}

.wx-navbar {
  height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  flex-shrink: 0;
  position: relative;
}

.wx-navbar.blue-header {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-bottom-color: transparent;
}

.wx-nav-left {
  width: 84px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wx-back-btn {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.wx-back-btn:hover {
  background: rgba(148, 163, 184, 0.16);
}

.wx-nav-title {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-capsule {
  width: 84px;
  height: 28px;
  border-radius: 99px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  color: #0f172a;
  font-size: 12px;
}

.wx-navbar.blue-header .wx-capsule {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.18);
  color: #fff;
}

.wx-capsule-div {
  width: 1px;
  height: 14px;
  background: currentColor;
  opacity: 0.25;
}

/* Main Scrollable Body */
.app-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 18px;
  scroll-behavior: smooth;
}

.app-body::-webkit-scrollbar {
  width: 3px;
}

.app-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 99px;
}

/* Bottom WeChat TabBar */
.wx-tabbar {
  height: 62px;
  padding-bottom: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex-shrink: 0;
}

.wx-tabbar.hidden {
  display: none;
}

.tab-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
}

.tab-item .tab-icon {
  font-size: 19px;
  line-height: 1;
}

.tab-item.active {
  color: var(--primary);
  font-weight: 700;
}

/* Reusable Mobile UI Components */
.page-pad {
  padding: 12px 14px;
}

.search-bar {
  background: var(--surface);
  border-radius: 99px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 12px;
  color: var(--text);
  background: transparent;
}

.hero-banner {
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -36px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.hero-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 8px;
}

.hero-banner h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-banner p {
  font-size: 11px;
  opacity: 0.9;
  line-height: 1.45;
  max-width: 240px;
}

.hero-dots {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}

.hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
}

.hero-dots span.active {
  width: 18px;
  background: #fff;
}

/* 8-Grid Home Entries */
.king-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 6px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 8px;
  box-shadow: var(--shadow);
  margin-top: 12px;
}

.king-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.king-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}

.king-item span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

/* Auth Warning Strip */
.auth-strip {
  margin-top: 12px;
  background: linear-gradient(90deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.auth-strip p {
  font-size: 11px;
  color: #92400e;
  line-height: 1.4;
}

.auth-strip-btn {
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Section Headers */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 2px 10px;
}

.sec-head h3 {
  font-size: 15px;
  font-weight: 800;
}

.sec-more {
  font-size: 11px;
  color: var(--primary);
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 13px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.65);
}

.card.clickable {
  cursor: pointer;
  transition: transform 0.12s;
}

.card.clickable:active {
  transform: scale(0.985);
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.card-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.45;
}

.price-text {
  font-size: 15px;
  font-weight: 800;
  color: #ea580c;
  white-space: nowrap;
}

.points-text {
  font-size: 13px;
  font-weight: 800;
  color: #d97706;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--text-secondary);
}

.tag.blue { background: var(--primary-soft); color: var(--primary); }
.tag.green { background: var(--success-soft); color: #059669; }
.tag.amber { background: var(--accent-soft); color: #b45309; }
.tag.purple { background: var(--purple-soft); color: var(--purple); }
.tag.red { background: var(--danger-soft); color: #dc2626; }

/* Filter Pills */
.pill-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

.pill-bar::-webkit-scrollbar { display: none; }

.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Segmented Tabs */
.seg-tabs {
  display: flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.seg-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.seg-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Condition Gate Box */
.cond-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0;
}

.cond-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.cond-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 5px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.cond-item:last-child { border-bottom: none; }
.cond-pass { color: #059669; font-weight: 700; }
.cond-fail { color: #dc2626; font-weight: 700; }

/* Buttons */
.btn-primary {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-outline {
  width: 100%;
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-sm {
  border: none;
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.btn-sm.soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

/* Progress Bar */
.progress-track {
  width: 100%;
  height: 7px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2563eb, #10b981);
}

/* Certificate Preview */
.cert-canvas {
  background: linear-gradient(135deg, #fffdf5 0%, #fef3c7 100%);
  border: 4px double #b45309;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
  margin: 10px 0;
}

.cert-canvas h4 {
  font-size: 16px;
  color: #92400e;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.cert-canvas .cert-body {
  font-size: 11px;
  color: #78350f;
  line-height: 1.7;
}

.cert-seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(220, 38, 38, 0.75);
  color: rgba(220, 38, 38, 0.8);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  bottom: 12px;
  transform: rotate(-16deg);
}

/* Chat UI */
.chat-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.msg-row.me {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-bubble {
  max-width: 74%;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
  background: var(--surface);
  border: 1px solid var(--border);
}

.msg-row.me .msg-bubble {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.chat-input-bar {
  padding: 8px 10px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input-bar input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 12px;
  outline: none;
}

/* Profile Header */
.mine-header {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  padding: 14px 16px 26px;
}

.mine-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mine-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.mine-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 8px;
  margin: -16px 14px 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.mine-stats strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}

.mine-stats span {
  font-size: 10px;
  color: var(--text-muted);
}

.menu-group-card {
  background: var(--surface);
  border-radius: var(--radius);
  margin: 0 14px 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

.menu-group-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.menu-row:last-child { border-bottom: none; }

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

.menu-row-left .m-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.menu-row-left strong {
  display: block;
  font-size: 13px;
}

.menu-row-left small {
  font-size: 10px;
  color: var(--text-muted);
}

/* Mall Grid */
.mall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mall-card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}

.mall-thumb {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.mall-body {
  padding: 9px;
}

/* Modal & Toast inside Phone */
.phone-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 40;
}

.phone-modal-mask.open {
  display: flex;
}

.phone-modal {
  width: 100%;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 16px;
  max-height: 78%;
  overflow-y: auto;
}

.phone-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 12px;
  padding: 9px 16px;
  border-radius: 10px;
  z-index: 60;
  display: none;
  text-align: center;
  max-width: 260px;
}

.phone-toast.show {
  display: block;
}

/* Form Elements */
.form-field {
  margin-bottom: 10px;
}

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  background: #fff;
}

/* Verify Code Box */
.verify-box {
  background: #f8fafc;
  border: 2px dashed #2563eb;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  margin: 10px 0;
}

.verify-code {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: 394px;
    justify-content: center;
  }
  .side-panel {
    display: none;
  }
}

/* 手机直接打开：去掉仿真机身，全屏显示小程序界面 */
@media (max-width: 600px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }
  body {
    display: block;
    padding: 0;
    background: var(--bg);
  }
  .workspace {
    display: block;
    max-width: none;
  }
  .phone-frame {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
  }
  .phone-screen {
    border-radius: 0;
  }
  /* 真机自带状态栏：隐藏模拟的时间/信号/刘海，只保留安全区高度（沿用页面头部底色） */
  .wx-statusbar {
    height: env(safe-area-inset-top, 0px);
    padding: 0;
  }
  .wx-statusbar > * {
    display: none;
  }
  .wx-tabbar {
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
}
