/* ============================================================
   知遇 · 基础层
   reset / 展陈 / 手机壳 / 导航 / 通用组件 / 弹层 / 响应式
   ============================================================ */

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 18%, rgba(176, 138, 79, 0.14), transparent 34%),
    radial-gradient(circle at 78% 82%, rgba(23, 76, 67, 0.35), transparent 42%),
    linear-gradient(150deg, #0c1411 0%, #101b17 55%, #0b1210 100%);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

input,
textarea {
  -webkit-appearance: none;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

button,
a,
input,
textarea,
select,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(23, 76, 67, 0.24);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.serif {
  font-family: var(--font-display);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--ink-2);
}

.tiny {
  font-size: 11px;
  line-height: 1.5;
}

.small {
  font-size: 12px;
  line-height: 1.6;
}

.center {
  text-align: center;
}

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

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

.col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.grow {
  flex: 1;
  min-width: 0;
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- 桌面展陈 ---------------- */

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 96px);
  padding: 32px 40px;
}

.showcase {
  width: 330px;
  flex: 0 0 auto;
  color: var(--night-text);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-seal {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(176, 138, 79, 0.55);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.12em;
}

.brand-latin {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--night-muted);
  margin-left: 2px;
}

.showcase h1 {
  margin: 30px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.showcase h1 em {
  font-style: normal;
  color: var(--gold);
}

.showcase-lead {
  font-size: 13px;
  line-height: 1.85;
  color: var(--night-muted);
}

.showcase-points {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-point {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.65;
  color: #c7d2cb;
}

.showcase-point .dot {
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.showcase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.showcase-link {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd6cf;
  font-size: 11px;
  transition: 0.18s ease;
}

.showcase-link:hover {
  border-color: rgba(176, 138, 79, 0.6);
  color: #f3ead8;
}

.showcase-link.active {
  background: rgba(176, 138, 79, 0.16);
  border-color: rgba(176, 138, 79, 0.6);
  color: #f3ead8;
}

.showcase-demo {
  margin-top: 26px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #6f8078;
}

.showcase-creator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(176, 138, 79, 0.35);
  padding-bottom: 3px;
}

/* ---------------- 手机壳 ---------------- */

.phone {
  position: relative;
  width: 390px;
  height: min(844px, calc(100dvh - 72px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 44px;
  background: var(--paper);
  box-shadow:
    0 0 0 10px #0a100e,
    0 0 0 11px rgba(255, 255, 255, 0.08),
    0 42px 110px rgba(0, 0, 0, 0.62);
  isolation: isolate;
}

.statusbar {
  flex: 0 0 auto;
  height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 45;
}

.statusbar .status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.statusbar .ic {
  width: 14px;
  height: 11px;
  stroke-width: 2;
}

.dynamic-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 23px;
  border-radius: 14px;
  background: #0b1211;
  z-index: 46;
}

.appbar {
  flex: 0 0 auto;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px var(--page-pad);
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  z-index: 40;
}

.appbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.appbar-seal {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pine);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
}

.appbar-word {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.appbar-title {
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appbar-sub {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: -2px;
}

.appbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.appbar-back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  margin-left: -8px;
}

.appbar-back:active {
  background: var(--paper-deep);
}

.appbar-chat-id {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.appbar-chat-id .portrait {
  --p-size: 32px;
}

.appbar-chat-name {
  min-width: 0;
}

.appbar-chat-name .name {
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appbar-chat-name .sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--ink-3);
  margin-top: 1px;
}

.appbar-chat-name .sub i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--jade);
}

/* ---------------- 屏幕与 Tab ---------------- */

.screens {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px var(--page-pad) 30px;
  background: var(--paper);
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.active {
  display: block;
  animation: screen-in 0.24s ease;
}

.screen.sub.active {
  animation: slide-in 0.22s ease;
}

.screen.chat-screen.active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  animation: none;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tabbar {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  height: calc(61px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 253, 248, 0.97);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 41;
}

.tabbar.hidden {
  display: none;
}

.tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tab .ic {
  width: 22px;
  height: 22px;
}

.tab.active {
  color: var(--pine);
}

.tab.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--gold);
}

.tab:active {
  background: rgba(236, 229, 215, 0.4);
}

/* ---------------- 品牌 / 肖像 ---------------- */

.portrait {
  position: relative;
  width: var(--p-size, 56px);
  height: var(--p-size, 56px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--pa, #8a5a44), var(--pb, #2a1b15));
  color: #f7efe2;
  flex: 0 0 auto;
  font-size: calc(var(--p-size, 56px) * 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.portrait .p-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portrait .p-initial {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.portrait.square {
  border-radius: calc(var(--p-size, 56px) * 0.24);
}

.portrait.mini .p-art {
  display: none;
}

.portrait.mini .p-initial {
  font-size: calc(var(--p-size, 30px) * 0.46);
}

.portrait.ring {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(176, 138, 79, 0.55);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.65;
  white-space: nowrap;
}

.badge .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.badge-official {
  background: var(--pine-soft);
  color: var(--pine);
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.badge-virtual {
  background: var(--info-soft);
  color: var(--info);
}

.badge-ai {
  background: var(--paper-deep);
  color: var(--ink-2);
}

.badge-success {
  background: var(--jade-soft);
  color: var(--jade-deep);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-muted {
  background: var(--paper-deep);
  color: var(--ink-3);
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    opacity 0.16s ease,
    transform 0.12s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn .ic {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--pine);
  color: #fdfaf2;
}

.btn-primary:active {
  background: var(--pine-deep);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost {
  color: var(--ink-2);
}

.btn-gold {
  background: var(--gold);
  color: #241a0d;
}

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

.btn-light {
  background: rgba(255, 253, 248, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f6efe2;
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
}

.btn-xs {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 11px;
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink-2);
  flex: 0 0 auto;
}

.icon-btn:active {
  background: var(--paper-deep);
}

.icon-btn .ic {
  width: 20px;
  height: 20px;
}

.icon-btn.sm {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.icon-btn.sm .ic {
  width: 17px;
  height: 17px;
}

.text-link {
  color: var(--pine);
  font-size: 12px;
  font-weight: 650;
  padding: 6px 0;
}

/* ---------------- 卡片 / 标签 / 表单 ---------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}

.chip.active {
  background: var(--pine);
  border-color: var(--pine);
  color: #fdfaf2;
}

.chip .ic {
  width: 14px;
  height: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--paper-deep);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
}

.tag-gold {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 2px 12px;
}

.section-head h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
}

.field-label .req {
  color: var(--clay);
}

.field-hint {
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-3);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.65;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(23, 76, 67, 0.12);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-3);
}

.input.error,
.textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(178, 59, 59, 0.1);
}

.field-error {
  font-size: 11px;
  color: var(--danger);
}

.switch {
  position: relative;
  width: 46px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background-color 0.18s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}

.switch.on {
  background: var(--pine);
}

.switch.on::after {
  transform: translateX(19px);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
  text-align: left;
}

.check-box {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: transparent;
}

.check.on .check-box,
.check-box.on {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.check-box .ic {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

/* ---------------- 弹层 / 对话框 / Toast ---------------- */

.scrim {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(11, 18, 16, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-height: 82%;
  overflow-y: auto;
  padding: 8px 16px calc(18px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(104%);
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.24, 1);
  scrollbar-width: none;
}

.sheet::-webkit-scrollbar {
  display: none;
}

.sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  margin: 3px auto 12px;
  border-radius: 2px;
  background: var(--line-strong);
}

.sheet-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

.sheet-sub {
  margin-top: 4px;
  margin-bottom: 14px;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-3);
}

.sheet-actions {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.sheet-action {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 560;
  text-align: left;
}

.sheet-action:last-child {
  border-bottom: 0;
}

.sheet-action:active {
  background: var(--surface-2);
}

.sheet-action .ic {
  width: 18px;
  height: 18px;
  color: var(--pine);
}

.sheet-action .sa-sub {
  margin-left: auto;
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-3);
}

.sheet-action.danger {
  color: var(--danger);
}

.sheet-action.danger .ic {
  color: var(--danger);
}

.sheet-cancel {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
}

.dialog-scrim {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 18, 16, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dialog-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.dialog {
  width: min(320px, 100%);
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s ease;
}

.dialog-scrim.open .dialog {
  transform: none;
}

.dialog h3 {
  font-size: 16px;
  font-weight: 700;
}

.dialog p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}

.dialog-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.dialog-actions .btn {
  flex: 1;
}

.toast {
  position: absolute;
  top: 62px;
  left: 50%;
  z-index: 90;
  max-width: calc(100% - 44px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(23, 76, 67, 0.96);
  color: #fdfaf2;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  box-shadow: 0 10px 30px rgba(16, 24, 21, 0.25);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: rgba(122, 38, 38, 0.97);
}

/* ---------------- 空态 / 骨架 ---------------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 46px 26px;
  text-align: center;
}

.empty-ic {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink-3);
}

.empty-ic .ic {
  width: 24px;
  height: 24px;
}

.empty h3 {
  font-size: 15px;
  font-weight: 680;
}

.empty p {
  max-width: 250px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-3);
}

.empty .btn {
  margin-top: 10px;
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--paper-deep) 25%,
    #f8f3e9 37%,
    var(--paper-deep) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
  .stage {
    gap: 40px;
  }

  .showcase {
    width: 290px;
  }
}

@media (max-width: 900px) {
  .stage {
    padding: 0;
    gap: 0;
    background: var(--paper);
  }

  .showcase {
    display: none;
  }

  .phone {
    width: 100%;
    max-width: 430px;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .statusbar {
    display: none;
  }

  .appbar {
    padding-top: calc(6px + var(--safe-top));
    min-height: calc(54px + var(--safe-top));
  }
}

@media (max-width: 480px) {
  body {
    background: var(--paper);
  }

  .stage {
    min-height: 100dvh;
  }

  .phone {
    max-width: none;
  }

  .toast {
    top: calc(58px + var(--safe-top));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* 平台主题注入保护：只保护手机壳内部，不覆盖桌面展陈 */
.phone,
.sheet,
.dialog {
  color: var(--ink) !important;
}

.phone {
  background-color: var(--paper) !important;
}

@media (max-width: 900px) {
  body {
    color: var(--ink) !important;
    background-color: var(--paper) !important;
  }
}
