/* ============ 基础变量 ============ */
:root {
  --primary: #7c5cff;
  --primary-strong: #6a48f0;
  --primary-soft: #f0ecff;
  --primary-text: #7c5cff;
  --screen-bg-top: #ece7f8;
  --screen-bg: #f6f5fb;
  --card: #ffffff;
  --border: #ececf3;
  --text: #26262f;
  --muted: #a2a2ad;
  --placeholder: #b9b9c2;
  --divider: #f0f0f5;
  --danger: #ff5c72;
  --radius-card: 16px;
  --radius-sheet: 22px;
  --sheet-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: #05060f;
  /* GitHub 风格：深藏青底 + 顶部微冷光 + 底部整条紫色光带 */
  background:
    radial-gradient(120% 55% at 50% 108%, rgba(124, 92, 255, 0.42) 0%, rgba(124, 92, 255, 0.12) 40%, transparent 66%),
    radial-gradient(48% 40% at 22% 8%, rgba(60, 82, 170, 0.26) 0%, transparent 60%),
    linear-gradient(180deg, #060812 0%, #080a17 44%, #0a0820 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* 细碎星点 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 46% 12%, rgba(200, 210, 255, 0.45), transparent),
    radial-gradient(1px 1px at 63% 34%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 82% 20%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 90% 52%, rgba(200, 210, 255, 0.35), transparent),
    radial-gradient(1px 1px at 18% 72%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 38% 86%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 72% 78%, rgba(200, 210, 255, 0.3), transparent);
  background-repeat: no-repeat;
  opacity: 0.8;
}

/* 底部整条紫色光带（铺满底部） */
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: -220px;
  height: 560px;
  background: radial-gradient(75% 100% at 50% 100%, rgba(124, 92, 255, 0.5) 0%, rgba(96, 84, 220, 0.2) 42%, transparent 72%);
  filter: blur(45px);
}

:root {
  --demo-topbar: 56px;
}

/* ============ Tab 顶栏（静态 Logo，固定不动） ============ */
.demo-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--demo-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 8, 18, 0.78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.demo-tab-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}
.demo-tab-brand > span {
  flex: none;
}
.demo-tab-brand img {
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
  flex: none;
}
.demo-tab-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.demo-tab-nav a {
  color: #b3adcf;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.18s ease;
}
.demo-tab-nav a:hover {
  color: #fff;
}
.demo-embedded .demo-topbar {
  display: none;
}

/* ============ 互动演示区 3D Logo（鼠标跟随视角） ============ */
.demo-logo-anchor {
  position: fixed;
  top: calc(var(--demo-topbar) + 14px);
  left: clamp(22px, 3.5vw, 52px);
  z-index: 4;
  width: 88px;
  height: 88px;
  perspective: 620px;
  perspective-origin: 50% 50%;
  pointer-events: none;
  contain: layout style paint;
}
.demo-embedded .demo-logo-anchor {
  top: 16px;
  left: clamp(18px, 3vw, 40px);
  width: 72px;
  height: 72px;
}
.demo-logo-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
}
.demo-logo-front {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transform: translateZ(12px);
}
@media (prefers-reduced-motion: reduce) {
  .demo-logo-3d {
    will-change: auto;
    transform: rotateX(14deg) rotateY(-20deg);
  }
}

/* ============ 顶部标识栏 ============ */

/* ============ 演示舞台布局（三栏） ============ */
.demo-stage {
  position: relative;
  z-index: 1;
  max-width: 1680px;
  margin: 0 auto;
  min-height: 100vh;
  padding: calc(48px + var(--demo-topbar)) clamp(28px, 4vw, 72px) 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.demo-embedded .demo-stage {
  padding-top: 48px;
}

.side-panel {
  flex: 0 1 350px;
  max-width: 380px;
  color: #eae7fb;
}
.role-panel {
  padding-right: 10px;
}
.intro-panel {
  text-align: left;
  /* 让介绍从右侧滑入，需要一个裁剪容器避免溢出到手机 */
  overflow: hidden;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-bottom: 12px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.3;
  background-image: linear-gradient(100deg, #ffffff 0%, #d9ccff 55%, #a688ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* 介绍内容：每次更新从右往左滑入 */
@keyframes introSlide {
  from { opacity: 0; transform: translateX(70px); }
  to { opacity: 1; transform: translateX(0); }
}
.intro-inner {
  animation: introSlide 0.5s cubic-bezier(0.22, 0.85, 0.25, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .intro-inner { animation: none; }
}

.panel-title,
.intro-title {
  font-size: 38px;
  line-height: 1.22;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  background: linear-gradient(100deg, #ffffff 0%, #d9ccff 55%, #a688ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.panel-sub,
.intro-text {
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 24px;
}

.demo-intro {
  flex: 1 1 360px;
  max-width: 480px;
  color: #eae7fb;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(140, 92, 255, 0.18);
  border: 1px solid rgba(160, 120, 255, 0.4);
  color: #d6ccff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.demo-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b69bff;
  box-shadow: 0 0 10px 2px rgba(182, 155, 255, 0.9);
}

.demo-intro h1 {
  font-size: 40px;
  line-height: 1.22;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  background: linear-gradient(100deg, #ffffff 0%, #d9ccff 55%, #a688ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-intro p {
  font-size: 16px;
  line-height: 1.85;
  color: #b9b2d8;
  margin: 0 0 30px;
}

.demo-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
}

.demo-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: #ddd8f2;
  padding: 13px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  transition: transform 0.2s, background 0.2s;
}
.demo-steps li:hover {
  transform: translateX(4px);
  background: rgba(140, 92, 255, 0.14);
}

.demo-steps li span {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9a7bff, #6a48f0);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -2px rgba(124, 92, 255, 0.7);
}

.demo-reset {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #8c5cff, #6a48f0);
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 14px 30px -10px rgba(124, 92, 255, 0.8);
}
.demo-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(124, 92, 255, 0.95);
}

/* ============ 手机壳 ============ */
.phone {
  position: relative;
  flex: none;
  width: 390px;
  height: 800px;
  background: #0f0f14;
  border-radius: 54px;
  padding: 12px;
  box-shadow: 0 50px 120px -30px rgba(120, 80, 240, 0.7),
    0 0 0 2px rgba(255, 255, 255, 0.08) inset,
    0 0 60px -10px rgba(150, 110, 255, 0.4);
}
.phone::before {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 80px;
  background: radial-gradient(circle at 50% 40%, rgba(150, 110, 255, 0.35), transparent 65%);
  z-index: -1;
  filter: blur(10px);
}

/* ============ 屏幕/内容入场动效 ============ */
@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes itemIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blockPop {
  0% { opacity: 0; transform: translateY(18px) scale(0.96); }
  60% { transform: translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.screen.enter {
  animation: screenIn 0.4s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.block-pop { animation: blockPop 0.45s cubic-bezier(0.22, 0.9, 0.3, 1) both; }

/* 从手机右侧「切入」动效 */
@keyframes cutInRight {
  0% { opacity: 0; transform: translateX(100%); }
  100% { opacity: 1; transform: translateX(0); }
}
.screen.cutin {
  animation: cutInRight 0.5s cubic-bezier(0.22, 0.85, 0.25, 1) both;
  background: linear-gradient(180deg, var(--screen-bg-top) 0%, var(--screen-bg) 26%);
}

/* ============ 身份选择开始界面 ============ */
.start-screen {
  background: radial-gradient(120% 80% at 50% 8%, #201a45 0%, #12102a 45%, #0a0819 100%);
}
.start-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 22px 26px;
  overflow-y: auto;
}
.start-body::-webkit-scrollbar { width: 0; }
.start-head {
  padding: 18px 0 26px;
}
.start-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(140, 92, 255, 0.18);
  border: 1px solid rgba(160, 120, 255, 0.4);
  color: #d6ccff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.start-title {
  margin: 16px 0 10px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(100deg, #ffffff, #cbb8ff 70%, #9a7bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.start-sub {
  margin: 0;
  font-size: 13.5px;
  color: #a49dc4;
}

.role-list {
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 8px 16px 4px;
}
.role-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 18px 20px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.55);
  transform-origin: left center;
  transform: rotateY(22deg);
  transition:
    transform 0.35s var(--sheet-ease),
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
  animation: roleFade 0.5s ease both;
}
.role-card-0 { animation-delay: 0.05s; }
.role-card-1 { animation-delay: 0.13s; }
.role-card-2 { animation-delay: 0.21s; }
.role-card-3 { animation-delay: 0.29s; }

.role-card:hover,
.role-card:focus-visible {
  outline: none;
  z-index: 5;
  transform: rotateY(0deg) translateZ(40px) scale(1.07);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 56px -18px rgba(0, 0, 0, 0.5);
}
.role-card:active {
  transform: rotateY(0deg) translateZ(40px) scale(1.02);
}

.role-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}
.role-icon svg {
  width: 20px;
  height: 20px;
}

.role-meta { flex: 1; min-width: 0; }
.role-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}
.role-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  line-height: 1.5;
}
.role-enter {
  flex: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: color 0.25s ease, transform 0.25s ease;
}
.role-card:hover .role-enter,
.role-card:focus-visible .role-enter,
.role-card.active .role-enter {
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(3px);
}

@keyframes roleFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.role-card.active {
  z-index: 4;
  transform: rotateY(0deg) translateZ(40px) scale(1.05);
  background: rgba(124, 109, 242, 0.12);
  border: 1.5px solid #7c6df2;
  box-shadow:
    0 0 0 1px rgba(124, 109, 242, 0.35),
    0 4px 16px rgba(124, 109, 242, 0.25),
    0 20px 48px -16px rgba(0, 0, 0, 0.45);
}
.role-card.active .role-icon {
  background: rgba(124, 109, 242, 0.18);
  border-color: rgba(124, 109, 242, 0.35);
  color: #fff;
}

/* 左右面板辅助元素 */
.panel-reset {
  margin-top: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d7d1f0;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.panel-reset:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.intro-steps-card {
  margin: 0 0 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.intro-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.intro-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.55;
  transition: background 0.2s ease;
}
.intro-steps li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.intro-steps li:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.03);
}
.intro-steps li::before,
.intro-steps li::after {
  content: none;
  display: none;
}
.intro-steps .step-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 109, 242, 0.2);
  border: 1px solid rgba(124, 109, 242, 0.35);
  box-shadow: none;
}
.intro-steps .step-text {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
}
.role-badge {
  background-image: linear-gradient(
    100deg,
    color-mix(in srgb, var(--role-color) 18%, #fff) 0%,
    color-mix(in srgb, var(--role-color) 55%, #d9ccff) 52%,
    var(--role-color) 100%
  );
}
.badge-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--role-color);
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--role-color) 75%, transparent);
  -webkit-text-fill-color: initial;
}
.intro-slogan {
  margin: 4px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.6);
}
.intro-empty {
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #9a93bd;
  font-size: 15px;
}

/* 未选身份：仅放大字号，不改变面板尺寸与布局 */
.intro-inner.intro-welcome .panel-badge {
  font-size: 22px;
}
.intro-inner.intro-welcome .intro-title {
  font-size: 48px;
}
.intro-inner.intro-welcome .intro-title-keep {
  white-space: nowrap;
}
.intro-inner.intro-welcome .intro-text {
  font-size: 20px;
}

/* ============ 手机启动屏 ============ */
.splash-screen {
  background: radial-gradient(120% 80% at 50% 20%, #f3effe 0%, #f6f5fb 60%);
}
.splash-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 30px 40px;
  text-align: center;
}
.splash-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #26262f;
}
.splash-tag {
  font-size: 13px;
  color: #8a8a95;
  margin-top: 10px;
}

/* 左侧与手机之间的引导箭头（fixed，不影响三栏布局） */
.demo-guide {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s cubic-bezier(0.22, 0.85, 0.25, 1),
    visibility 0.65s cubic-bezier(0.22, 0.85, 0.25, 1);
}
.demo-guide.is-visible {
  opacity: 1;
  visibility: visible;
}
.demo-guide.is-visible.is-cramped {
  opacity: 0;
  visibility: hidden;
}
/* 空隙窄时：「选择身份 / 开始体验」两行，箭头缩小 */
.demo-guide.is-compact {
  gap: 10px;
}
.demo-guide.is-compact .demo-guide-text {
  line-height: 1.5;
}
.demo-guide.is-compact .demo-guide-sep {
  display: block;
  height: 0;
  overflow: hidden;
}
.demo-guide.is-compact .demo-guide-arrow {
  width: 88px;
  height: 51px;
}
.demo-guide-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: 1.5px;
  white-space: nowrap;
  color: #e6deff;
  animation: guideTextFloat 3.2s ease-in-out infinite;
}

@keyframes guideTextFloat {
  0%, 100% {
    opacity: 0.82;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.demo-guide-arrow {
  width: 148px;
  height: 86px;
}
.demo-guide-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.demo-guide-arrow .guide-seg {
  stroke: #e0d4ff;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (prefers-reduced-motion: reduce) {
  .demo-guide-arrow .guide-seg,
  .demo-guide-text {
    animation: none !important;
    opacity: 0.9;
    transform: none;
  }
}

/* 角色主页提示 */
.home-hint {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--role-color, #7c5cff) 10%, #fff);
  border: 1px dashed color-mix(in srgb, var(--role-color, #7c5cff) 45%, transparent);
  color: color-mix(in srgb, var(--role-color, #7c5cff) 70%, #333);
  font-size: 12.5px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .screen.cutin, .role-card { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.enter, .screen.enter *, .block-pop { animation: none !important; }
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 30px;
  background: #0f0f14;
  border-radius: 0 0 18px 18px;
  z-index: 30;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--screen-bg-top) 0%, var(--screen-bg) 26%);
}

.phone-home-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.28);
  z-index: 40;
}

/* ============ 屏幕通用 ============ */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.status-bar {
  height: 62px;
  flex: none;
}

/* 微信胶囊 */
.wx-capsule {
  position: absolute;
  top: 70px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  height: 32px;
  padding: 0 4px;
  z-index: 20;
  backdrop-filter: blur(6px);
}
.wx-capsule i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 100%;
  color: #1a1a1a;
  font-style: normal;
  font-size: 15px;
}
.wx-capsule .wx-sep {
  width: 1px;
  height: 16px;
  background: rgba(0, 0, 0, 0.12);
}
.wx-capsule .wx-dots {
  letter-spacing: 1px;
  font-weight: 900;
}
.wx-capsule .wx-circle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.6px solid #1a1a1a;
  position: relative;
}
.wx-capsule .wx-circle::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #1a1a1a;
}

.nav-bar {
  position: relative;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}
.nav-bar .nav-title {
  font-size: 17px;
  font-weight: 600;
}
.nav-bar .nav-back {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  color: #26262f;
}

.screen-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 16px 24px;
  -webkit-overflow-scrolling: touch;
}
.screen-body::-webkit-scrollbar {
  width: 0;
}

/* ============ 首页 ============ */
.home-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f3effe 0%, #eef3ff 100%);
  border: 1px solid rgba(124, 92, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
  margin-top: 40px;
}
.home-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2b2350, #0e0b22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-avatar svg {
  width: 30px;
  height: 30px;
  opacity: 0.92;
}
.home-profile-info {
  flex: 1;
  min-width: 0;
}
.home-profile-info .name {
  font-size: 17px;
  font-weight: 700;
}
.home-profile-info .sub {
  font-size: 12.5px;
  color: #8a8a95;
  margin-top: 3px;
}
.home-role {
  flex: none;
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 14px -4px rgba(124, 92, 255, 0.5);
}
.home-role {
  cursor: pointer;
}
.home-role .role-main {
  background: linear-gradient(135deg, var(--role-color, var(--primary)),
    color-mix(in srgb, var(--role-color, var(--primary)) 68%, #000));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  display: flex;
  align-items: center;
}
.home-role .role-chevron {
  background: color-mix(in srgb, var(--role-color, var(--primary)) 68%, #000);
  color: #fff;
  padding: 0 7px;
  display: flex;
  align-items: center;
  font-size: 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.home-role {
  box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--role-color, var(--primary)) 60%, transparent);
  border-radius: 10px;
}

.home-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 14px;
  color: #55555f;
}
.home-notice .horn {
  color: #a2a2ad;
  display: inline-flex;
  align-items: center;
}
.home-notice .horn svg {
  width: 18px;
  height: 18px;
}

.home-section-title {
  font-size: 17px;
  font-weight: 800;
  margin: 26px 0 0;
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}
.home-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 3px;
  border-radius: 2px;
  background: var(--role-color, var(--primary));
}

.home-grid-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 12px 8px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 0;
}
.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding-bottom: 14px;
}
.grid-item {
  transition: transform 0.18s ease;
}
.grid-item:hover {
  transform: translateY(-3px);
}
.grid-item:hover .gi-icon {
  color: var(--role-color, var(--primary));
}
.grid-item .gi-icon {
  position: relative;
  width: 30px;
  height: 30px;
  color: #33333c;
  transition: color 0.18s ease, transform 0.18s ease;
}
.grid-item .gi-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f5455c;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 2px 6px -2px rgba(245, 69, 92, 0.7);
}
.grid-item:active .gi-icon {
  transform: scale(0.88);
}
.grid-item .gi-label {
  font-size: 13px;
  color: #33333c;
  font-weight: 500;
}
.grid-item.is-hot .gi-icon {
  color: var(--role-color, var(--primary));
}
.grid-item:active {
  opacity: 0.55;
}

.home-tabbar {
  flex: none;
  height: 64px;
  border-top: 1px solid var(--border);
  background: #fff;
  display: flex;
  padding-bottom: 6px;
}
.home-tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  color: #b0b0ba;
}
.home-tabbar .tab.active {
  color: var(--primary);
}
.home-tabbar .tab[data-act] {
  cursor: pointer;
}
.home-tabbar .tab svg {
  width: 24px;
  height: 24px;
}

/* ============ 表单 ============ */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 4px 16px;
  margin-top: 16px;
}
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 6px 0;
  border-bottom: 1px solid var(--divider);
  gap: 12px;
}
.form-row:last-child {
  border-bottom: none;
}
.form-row .fr-label {
  font-size: 15px;
  font-weight: 600;
  color: #33333c;
  flex: none;
}
.form-row .fr-value {
  flex: 1;
  text-align: right;
  font-size: 14.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.form-row.is-selectable {
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}
.form-row.is-selectable:active {
  background: var(--primary-soft);
}
.form-row .fr-value.placeholder {
  color: var(--placeholder);
}
.form-row .fr-value .chevron {
  color: #c4c4cd;
  font-size: 15px;
}
.form-row .fr-input {
  flex: 1;
  border: none;
  outline: none;
  text-align: right;
  font-size: 14.5px;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}
.form-row .fr-input::placeholder {
  color: var(--placeholder);
}
.fr-subnote {
  text-align: right;
  color: var(--primary);
  font-size: 12.5px;
  margin: -4px 0 8px;
  font-weight: 600;
}

.project-block {
  position: relative;
}
.project-block.extra {
  border: 1px solid var(--primary);
  box-shadow: 0 6px 22px -12px rgba(124, 92, 255, 0.5);
}
.block-remove {
  position: absolute;
  top: -10px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  border: none;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 4px 10px -3px rgba(255, 92, 114, 0.7);
}

.add-project {
  width: 100%;
  margin-top: 16px;
  border: 1.5px dashed rgba(124, 92, 255, 0.5);
  background: rgba(124, 92, 255, 0.04);
  color: var(--primary);
  border-radius: 14px;
  padding: 18px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.add-project:active {
  opacity: 0.6;
}

.form-note-title {
  font-size: 15px;
  font-weight: 700;
  margin: 22px 0 10px;
}
.form-note {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  resize: none;
  outline: none;
  background: #fff;
}
.form-note::placeholder {
  color: var(--placeholder);
}

.form-footer {
  flex: none;
  display: flex;
  gap: 14px;
  padding: 12px 16px 22px;
  background: linear-gradient(180deg, rgba(246, 245, 251, 0), var(--screen-bg) 40%);
}
.btn-outline {
  flex: 1;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: #fff;
  border-radius: 999px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-outline:active {
  background: var(--primary-soft);
}
.btn-outline.wide {
  flex: none;
  width: 100%;
  display: block;
}

/* ============ 底部弹窗 ============ */
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 50;
}
.sheet-mask.show {
  opacity: 1;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 74%;
  background: #fff;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  transform: translateY(100%);
  transition: transform 0.35s var(--sheet-ease);
  z-index: 51;
  display: flex;
  flex-direction: column;
}
.sheet.show {
  transform: translateY(0);
}
.sheet-header {
  position: relative;
  text-align: center;
  padding: 18px 16px 12px;
  flex: none;
}
.sheet-header .sheet-title {
  font-size: 17px;
  font-weight: 700;
}
.sheet-header .sheet-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  color: #33333c;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 12px;
  flex: none;
}
.sheet-search .search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  padding: 9px 16px;
}
.sheet-search .search-box svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex: none;
}
.sheet-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13.5px;
  font-family: inherit;
  background: transparent;
}
.sheet-search input::placeholder {
  color: var(--placeholder);
}
.sheet-search .search-btn {
  color: #33333c;
  font-size: 14px;
  flex: none;
}
.sheet-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 8px;
}
.sheet-list::-webkit-scrollbar {
  width: 0;
}

/* 列表项 - 客户/接待 */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
}
.radio {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.6px solid #d2d2db;
  position: relative;
}
.list-item.selected .radio,
.player-item.selected .radio {
  border-color: var(--primary);
  background: var(--primary);
}
.list-item.selected .radio::after,
.player-item.selected .radio::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.list-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b9a6ff, #8266f2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.list-avatar svg {
  width: 26px;
  height: 26px;
  opacity: 0.95;
}
.list-info {
  flex: 1;
  min-width: 0;
}
.list-info .li-name {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.list-info .li-uid {
  font-size: 12px;
  color: #a2a2ad;
  margin-top: 2px;
}
.list-detail {
  flex: none;
  color: var(--primary);
  font-size: 13.5px;
}
.item-highlight {
  background: var(--primary-soft);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 10px;
  border-bottom-color: transparent;
}

/* 项目列表 */
.project-cols {
  display: flex;
  padding: 6px 16px 10px;
  font-size: 14px;
  border-bottom: 1px solid var(--divider);
  flex: none;
}
.project-cols .c1 {
  width: 70px;
  color: var(--primary);
  font-weight: 600;
}
.project-cols .c2 {
  flex: 1;
  text-align: center;
  color: #33333c;
  font-weight: 600;
}
.project-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--divider);
}
.project-item .radio {
  width: 70px;
  padding-left: 2px;
  border: none;
  background: none;
}
.project-item .radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.6px solid #d2d2db;
  position: relative;
}
.project-item.selected .radio-dot {
  border-color: var(--primary);
  background: var(--primary);
}
.project-item.selected .radio-dot::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.project-item .p-name {
  flex: 1;
  text-align: center;
  font-size: 15px;
}
.project-item.selected {
  background: transparent;
  border-radius: 0;
}

/* 陪玩列表 */
.player-item {
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--divider);
}
.player-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.player-main {
  flex: 1;
  min-width: 0;
}
.player-main .pl-name {
  font-size: 15px;
  font-weight: 700;
}
.player-main .pl-uid {
  font-size: 12px;
  color: #a2a2ad;
  margin-top: 3px;
}
.player-main .pl-price {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}
.stepper {
  flex: none;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.player-item.selected .stepper {
  opacity: 1;
}
.units-stepper {
  opacity: 1;
}
.stepper button {
  width: 30px;
  height: 30px;
  border: none;
  background: #f5f5f8;
  color: #55555f;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.stepper button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.stepper button:active {
  transform: scale(0.85);
}
.stepper .step-num {
  width: 40px;
  text-align: center;
  font-size: 14px;
}
.player-markup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-left: 32px;
}
.player-markup .mk-label {
  font-size: 14px;
  color: #33333c;
}
.player-markup input {
  width: 120px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  outline: none;
  text-align: right;
  font-family: inherit;
}
.player-markup input::placeholder {
  color: var(--placeholder);
}
.player-item:not(.selected) .player-markup {
  opacity: 0.5;
  pointer-events: none;
}

.sheet-footer {
  flex: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.sheet-confirm {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  border-radius: 999px;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(124, 92, 255, 0.7);
}
.sheet-confirm:active {
  transform: translateY(1px);
}

/* ============ 中心弹窗 ============ */
.dialog-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 60;
}
.dialog-mask.show {
  opacity: 1;
  pointer-events: auto;
}
.dialog {
  width: 260px;
  background: #fff;
  border-radius: 16px;
  padding: 26px 20px 20px;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.25s var(--sheet-ease);
}
.dialog-mask.show .dialog {
  transform: scale(1);
}
.dialog .dialog-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.dialog-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  border-radius: 12px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* 二维码弹窗 */
.dialog.qr {
  width: 280px;
  padding-top: 22px;
}
.qr-img {
  width: 180px;
  height: 180px;
  margin: 6px auto 20px;
  display: block;
  border-radius: 8px;
}
.qr-actions {
  display: flex;
  gap: 12px;
}
.qr-actions button {
  flex: 1;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: #fff;
  border-radius: 999px;
  padding: 11px 0;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ============ 微信聊天 · 分享卡片 ============ */
.wx-chat-screen {
  background: #ededed !important;
  color: #111;
}
.wx-chat-status {
  background: #ededed;
}
.wx-chat-nav {
  position: relative;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px;
  background: #ededed;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.wx-chat-nav .nav-back {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: #111;
}
.wx-chat-nav .nav-title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}
.wx-chat-nav-more {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  letter-spacing: 1px;
  color: #111;
}
.wx-chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 12px 16px;
  background: #ededed;
}
.wx-chat-time {
  text-align: center;
  color: #b0b0b0;
  font-size: 12px;
  margin: 4px 0 14px;
}
.wx-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.wx-chat-row.is-self {
  justify-content: flex-end;
}
.wx-chat-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #6d5aef;
}
.wx-chat-avatar.is-self-avatar {
  background: #3d8bfd;
}
.wx-chat-avatar svg {
  display: block;
}
.wx-text-bubble {
  max-width: min(220px, calc(100% - 54px));
  padding: 10px 12px;
  background: #fff;
  border-radius: 6px;
  color: #111;
  font-size: 15px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.wx-text-bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #fff;
}
.wx-mp-card {
  width: min(220px, calc(100% - 54px));
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.wx-chat-row.is-self .wx-mp-card::before {
  content: "";
  position: absolute;
  right: -6px;
  left: auto;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #fff;
  border-right: 0;
}
.wx-mp-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 0;
  color: #888;
  font-size: 12px;
}
.wx-mp-brand-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(145deg, #8b78ff, #6d5aef);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.wx-mp-card-title {
  padding: 8px 12px 6px;
  font-size: 16px;
  font-weight: 600;
  color: #191919;
  line-height: 1.35;
}
.wx-mp-card-cover {
  margin: 0 12px;
  height: 120px;
  border-radius: 2px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wx-mp-cover-logo {
  width: 56px;
  height: 56px;
  opacity: 0.9;
}
.wx-mp-card-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px 10px;
  border-top: 1px solid #f0f0f0;
  color: #888;
  font-size: 12px;
}
.wx-mp-mini-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 40%, #5eb9ff 0 28%, transparent 29%),
    radial-gradient(circle at 65% 60%, #3aa3f5 0 30%, transparent 31%),
    #e8f4ff;
  box-shadow: inset 0 0 0 1px rgba(58, 163, 245, 0.35);
}
.wx-chat-inputbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #f7f7f7;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #666;
  font-size: 18px;
}
.wx-chat-input {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e5e5e5;
}
.wx-chat-voice,
.wx-chat-emoji,
.wx-chat-plus {
  flex: none;
  width: 28px;
  text-align: center;
  line-height: 1;
}

/* Toast */
.toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  z-index: 80;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  max-width: 80%;
  text-align: center;
}
.toast.show {
  opacity: 1;
}

@media (max-width: 900px) {
  .demo-stage {
    padding: 40px 20px;
    gap: 40px;
  }
  .phone {
    transform: scale(0.92);
  }
}
/* 手机竖屏：三栏变单列后，fixed 的 3D Logo 会压在标题上、引导箭头会压在身份卡上；
   手机壳固定 390px + scale 不缩布局盒，会把页面撑宽 */
@media (max-width: 640px) {
  .demo-stage {
    padding: calc(var(--demo-topbar) + 84px) 16px 32px;
    gap: 32px;
    /* 手机壳 ::before 光晕 inset:-40px 会超出视口 */
    overflow-x: clip;
  }
  .demo-embedded .demo-stage {
    padding-top: 84px;
  }
  .demo-logo-anchor,
  .demo-embedded .demo-logo-anchor {
    position: absolute;
    left: 16px;
    width: 60px;
    height: 60px;
  }
  .demo-guide {
    display: none !important;
  }
  .phone {
    width: min(390px, 100%);
    transform: none;
  }
}

/* ============ 接待端：通用按钮 / 区块标题 ============ */
.btn-primary {
  flex: 1;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #9a7bff, #6a48f0);
  border-radius: 999px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(106, 72, 240, 0.8);
}
.btn-primary:active {
  transform: translateY(1px);
  opacity: 0.94;
}
.btn-primary.wide {
  width: 100%;
}
.single-footer {
  flex: none;
  padding: 12px 16px 22px;
  background: linear-gradient(180deg, rgba(246, 245, 251, 0), var(--screen-bg) 40%);
}
.sec-title {
  font-size: 15px;
  font-weight: 700;
  color: #26262f;
  margin: 22px 2px 10px;
}
.amount-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  background: #fff;
}
.amount-input::placeholder {
  color: var(--placeholder);
}

/* ============ 客户管理：菜单 ============ */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.menu-item:active {
  transform: scale(0.99);
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.4);
}
.menu-item .mi-icon {
  flex: none;
  width: 26px;
  height: 26px;
  color: #26262f;
}
.menu-item .mi-icon svg {
  width: 100%;
  height: 100%;
}
.menu-item .mi-label {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #26262f;
}
.menu-item .mi-chevron {
  color: #c4c4cd;
  font-size: 20px;
}

/* ============ 客户列表 ============ */
.cust-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 4px;
}
.cust-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
}
.cust-search svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex: none;
}
.cust-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
}
.cust-search input::placeholder {
  color: var(--placeholder);
}
.cust-filter,
.rec-filter {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #6b6b78;
  font-size: 11px;
  cursor: pointer;
}
.cust-filter svg,
.rec-filter svg {
  width: 20px;
  height: 20px;
}
.cust-chips {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 8px 16px 4px;
}
.chip {
  padding: 6px 16px;
  border-radius: 999px;
  background: #efeef4;
  color: #6b6b78;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.cust-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}
.cc-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
}
.cc-avatar {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #2b2350, #0e0b22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-avatar svg {
  width: 30px;
  height: 30px;
}
.cc-headinfo {
  flex: 1;
  min-width: 0;
}
.cc-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f28;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cc-name .hot {
  font-size: 15px;
}
.cc-sub {
  font-size: 12.5px;
  color: #a2a2ad;
  margin-top: 3px;
}
.cc-edit {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #33333c;
  font-size: 13.5px;
  cursor: pointer;
}
.cc-edit svg {
  width: 16px;
  height: 16px;
}
.cc-rows {
  padding-top: 6px;
}
.cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f7fb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 14px;
}
.cc-row span {
  color: #6b6b78;
}
.cc-row b {
  font-weight: 600;
  color: #33333c;
}
.cc-row b.accent,
.accent {
  color: var(--primary);
  font-weight: 700;
}
.cc-trade {
  margin-top: 12px;
  text-align: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
}

/* ============ 编辑客户信息 ============ */
.edit-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 12px auto 4px;
  background: radial-gradient(circle at 50% 35%, #2b2350, #0e0b22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}
.edit-avatar svg {
  width: 52px;
  height: 52px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 16px;
  margin-top: 16px;
}
.info-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #26262f;
  padding: 14px 0 8px;
  border-bottom: 1px solid var(--divider);
}
.info-card-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
  gap: 12px;
}
.info-row:last-child {
  border-bottom: none;
}
.ir-label {
  font-size: 15px;
  color: #33333c;
  flex: none;
}
.ir-val {
  flex: 1;
  text-align: right;
  font-size: 14.5px;
  color: var(--text);
}
.ir-val.placeholder {
  color: var(--placeholder);
  cursor: pointer;
}
.ir-input {
  flex: 1;
  border: none;
  outline: none;
  text-align: right;
  font-size: 14.5px;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}
.ir-input::placeholder {
  color: var(--placeholder);
}
.wx-group-add {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--border);
  background: #fff;
  color: #6b6b78;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  max-width: 90px;
  line-height: 1.3;
  text-align: left;
}
.wx-group-add svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.ir-amount {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ir-amount-input {
  width: 60px;
  border: none;
  outline: none;
  text-align: right;
  font-size: 14.5px;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}
.ir-clear {
  display: inline-flex;
  color: #c8c8d0;
}
.ir-clear svg {
  width: 16px;
  height: 16px;
}
.ir-amount em {
  font-style: normal;
  color: #6b6b78;
  font-size: 14px;
}

/* ============ 客户充值 ============ */
.recharge-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.recharge-opt {
  width: calc(50% - 6px);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.recharge-opt.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 10px 24px -14px rgba(124, 92, 255, 0.7);
}
.ro-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.ro-cap {
  font-size: 12.5px;
  color: #8a8a95;
  white-space: nowrap;
}
.ro-amount {
  font-size: 14px;
  color: #26262f;
}
.ro-amount b {
  font-size: 20px;
  font-weight: 800;
}
.ro-note {
  font-size: 12.5px;
  color: #6b6b78;
  margin-top: 8px;
}
.ro-unlimited {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
}

/* ============ 客户退款 ============ */
.radio-card {
  padding: 4px 16px;
}
.radio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
}
.radio-row:last-child {
  border-bottom: none;
}
.rr-label {
  font-size: 15px;
  color: #4a4a55;
}
.rr-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.6px solid #d0d0d8;
  flex: none;
  position: relative;
  transition: border-color 0.15s ease;
}
.rr-radio.on {
  border-color: var(--primary);
}
.rr-radio.on::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}
.fab-service {
  position: absolute;
  right: 18px;
  bottom: 96px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #9a7bff, #6a48f0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 12px 24px -8px rgba(106, 72, 240, 0.7);
}
.fab-service svg {
  width: 24px;
  height: 24px;
}

/* ============ 接待记录 ============ */
.rec-tabs {
  flex: none;
  display: flex;
  gap: 4px;
  padding: 4px 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.rec-tabs::-webkit-scrollbar {
  height: 0;
}
.rec-tab {
  flex: none;
  position: relative;
  padding: 10px 12px;
  font-size: 14.5px;
  color: #6b6b78;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.rec-tab.active {
  color: var(--primary);
  font-weight: 700;
}
.rec-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
}
.rec-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 6px;
}
.rec-person {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13.5px;
  color: #4a4a55;
  cursor: pointer;
}
.rec-person svg {
  width: 16px;
  height: 16px;
}
.rec-person .rt-caret {
  font-style: normal;
  color: #a2a2ad;
  font-size: 11px;
}
.rec-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  min-width: 0;
}
.rec-search svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
  flex: none;
}
.rec-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
}
.rec-search input::placeholder {
  color: var(--placeholder);
}
.rec-subchips {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 6px 16px 2px;
}
.rec-body {
  padding-top: 6px;
}
.order-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.order-with-radio {
  display: flex;
  align-items: center;
  gap: 12px;
}
.order-with-radio .order-card {
  flex: 1;
  min-width: 0;
}
.oc-radio {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.6px solid #d0d0d8;
}
.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 18px -14px rgba(0, 0, 0, 0.35);
}
.oc-top {
  background: #f6f6fb;
  border-radius: 12px;
  padding: 12px;
  margin: -2px -2px 12px;
}
.oc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.oc-no {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #26262f;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oc-bar {
  flex: none;
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: var(--primary);
}
.oc-status {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 8px;
  padding: 4px 10px;
}
.oc-cust {
  margin-top: 10px;
  font-size: 14px;
  color: #33333c;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.oc-cust-name {
  font-weight: 700;
  color: #1f1f28;
}
.oc-cust-uid {
  color: #a2a2ad;
  font-size: 12.5px;
}
.oc-cust-none {
  color: #b3b3bc;
  border: 1px dashed #d8d8e0;
  border-radius: 6px;
  padding: 1px 10px;
  font-size: 13px;
}
.oc-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 12px;
}
.oc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #33333c;
}
.oc-item span:last-child {
  color: #6b6b78;
}
.oc-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}
.oc-total-row span {
  color: #33333c;
  font-weight: 600;
}
.oc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}
.oc-modify {
  border: 1px solid var(--border);
  background: #f7f7fb;
  color: #4a4a55;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
}
.oc-modify:active {
  background: #ecebf3;
}
/* 订单卡操作按钮 */
.oc-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.oc-btn:active {
  transform: scale(0.96);
}
.oc-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #8f77f5, #6c4df0);
  box-shadow: 0 6px 14px -7px rgba(108, 77, 240, 0.8);
}
.oc-btn.ghost {
  color: #55555f;
  background: #f1f0f6;
}
.oc-btn.ghost:active {
  background: #e6e4f0;
}
/* 订单折扣内联标注 */
.oc-disc {
  font-style: normal;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--primary);
  margin-left: 6px;
}
/* 项目名 */
.oc-item .oc-iname {
  color: #33333c;
}
.oc-item-sub {
  margin-top: -4px;
}
.oc-item-sub .oc-itag {
  color: #e8912a;
  font-size: 13px;
}
/* 已退款：原路退回行 */
.oc-refund {
  background: #f4f4f8;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #4a4a55;
  margin-bottom: 12px;
}
/* 待确认角标 */
.rec-tab {
  position: relative;
}
.rec-badge {
  position: absolute;
  top: 2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f5455c;
  color: #fff;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.rec-more {
  text-align: center;
  color: #b3b3bc;
  font-size: 12.5px;
  padding: 18px 0 6px;
}

/* ============ 空状态 ============ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 0;
  gap: 14px;
}
.empty-state svg {
  width: 120px;
  height: 100px;
}
.empty-text {
  color: #b3b3bc;
  font-size: 14px;
}

/* ============ 排行榜 ============ */
.rank-tabs {
  flex: none;
  display: flex;
  gap: 12px;
  padding: 14px 16px 4px;
}
.rank-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #6b6b78;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.18s ease;
}
.rank-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #8f77f5, #6c4df0);
  border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(108, 77, 240, 0.7);
}
/* 存单列表：下划线式分栏 */
.rank-tabs.plain {
  gap: 0;
  padding: 8px 0 0;
}
.rank-tabs.plain .rank-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #6b6b78;
  position: relative;
  padding: 12px 0;
}
.rank-tabs.plain .rank-tab.active {
  color: var(--primary);
  font-weight: 700;
}
.rank-tabs.plain .rank-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
}
.rank-chips {
  flex: none;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 14px 16px 2px;
}
.rank-chip {
  font-size: 14px;
  color: #4a4a55;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.15s ease;
}
.rank-chip.active {
  color: var(--primary);
  font-weight: 700;
}
.rank-range {
  flex: none;
  text-align: center;
  color: #d9a441;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0 4px;
}

/* ============ 存单：搜索行 ============ */
.dep-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 6px;
}

/* 存单：待付款卡片 */
.dep-card .dep-no {
  color: #a2a2ad;
  font-size: 13.5px;
  font-weight: 600;
}
.dep-card .dep-owner {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f28;
  margin: 8px 0 6px;
}
.dep-titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 12px;
}
.dep-title {
  font-size: 14.5px;
  color: #33333c;
}
.dep-tag {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 8px;
  padding: 4px 10px;
}
.dep-card .oc-item {
  margin-bottom: 8px;
}
.dep-card .oc-total-row {
  margin-bottom: 4px;
}
.dep-expire {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #2fae87;
  background: #eafaf3;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
}
.dep-modify {
  width: 100%;
  border: none;
  background: #f1eefb;
  color: #4a4a55;
  border-radius: 12px;
  padding: 12px 0;
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.dep-modify:active {
  background: #e5e0f6;
}

/* 存单：所有存单统计 */
.dep-stats {
  display: flex;
  gap: 12px;
  padding: 6px 0 4px;
}
.dep-stat {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 6px 18px -14px rgba(0, 0, 0, 0.35);
}
.dep-stat b {
  display: block;
  font-size: 22px;
  color: #1f1f28;
}
.dep-stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #9a9aa5;
}

/* 存单：所有存单卡片 */
.dep-acct {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 18px -14px rgba(0, 0, 0, 0.35);
  margin-bottom: 14px;
}
.da-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
}
.da-avatar {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ececf3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b7b7c2;
  overflow: hidden;
}
.da-avatar svg {
  width: 46px;
  height: 46px;
}
.da-uid {
  flex: 1;
  font-size: 14px;
  color: #6b6b78;
  min-width: 0;
}
.da-remain {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.da-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
  color: #6b6b78;
}
.da-player b {
  color: #33333c;
  font-weight: 600;
}
.da-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  gap: 8px;
}
.da-stats > div {
  flex: 1;
  text-align: center;
}
.da-stats b {
  display: block;
  font-size: 15px;
  color: #1f1f28;
}
.da-stats span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #9a9aa5;
}

/* 充值记录选择项右侧余额 */
.record-item .rec-balance {
  flex: none;
  font-size: 13px;
  color: #9a9aa5;
}
.record-item .rec-balance b {
  color: var(--primary);
  font-weight: 700;
}

/* ============ 客户退款记录 ============ */
.refrec {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px -14px rgba(0, 0, 0, 0.35);
}
.refrec + .refrec {
  margin-top: 12px;
}
.refrec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 12px;
}
.refrec-who {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.refrec-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f1f28;
}
.refrec-uid {
  font-size: 12.5px;
  color: #a2a2ad;
}
.refrec-status {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #2fae87;
  background: #eafaf3;
  border-radius: 8px;
  padding: 4px 10px;
}
.refrec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #6b6b78;
  padding: 5px 0;
}
.refrec-row span:first-child {
  color: #9a9aa5;
}

/* ============ 我的 ============ */
.mine-profile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #efeafe 0%, #eaf0ff 100%);
  border: 1px solid rgba(124, 92, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  margin-top: 40px;
}
.mine-profile::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -30px;
  width: 200px;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.35-9.5-8.5C1 9 3 5.5 6.5 5.5c2 0 3.2 1.2 3.5 2 .3-.8 1.5-2 3.5-2C17 5.5 19 9 21.5 12.5 19 16.65 12 21 12 21z' fill='rgba(124,92,255,0.07)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 120px 120px;
  transform: rotate(-8deg);
  pointer-events: none;
}
.mine-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
}
.mine-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2b2350, #0e0b22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mine-avatar svg {
  width: 30px;
  height: 30px;
  opacity: 0.92;
}
.mine-headinfo {
  min-width: 0;
}
.mine-headinfo .name {
  font-size: 18px;
  font-weight: 700;
  color: #1f1f28;
}
.mine-headinfo .sub {
  font-size: 13px;
  color: #8a8a95;
  margin-top: 4px;
}
.mine-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 2px;
  border-top: 1px solid rgba(124, 92, 255, 0.14);
}
.mine-line + .mine-line {
  padding-top: 14px;
}
.ml-label {
  font-size: 14px;
  color: #55555f;
}
.mine-chip {
  display: inline-flex;
  align-items: stretch;
  border: none;
  padding: 0;
  background: linear-gradient(135deg, #8f77f5, #6c4df0);
  color: #fff;
  border-radius: 9px;
  overflow: hidden;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px -6px rgba(108, 77, 240, 0.7);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.mine-chip:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px -5px rgba(108, 77, 240, 0.7);
}
.mine-chip span {
  padding: 8px 12px;
}
.mine-chip i {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-style: normal;
  font-size: 11px;
}
.mc-swap svg {
  width: 15px;
  height: 15px;
}
.mine-menu {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 16px;
  padding: 0 16px;
  box-shadow: 0 10px 26px -20px rgba(0, 0, 0, 0.5);
}
.mine-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: background 0.12s ease;
  margin: 0 -2px;
  border-radius: 8px;
}
.mine-item:last-child {
  border-bottom: none;
}
.mine-item:active {
  background: #f8f6ff;
}
.mine-ic {
  flex: none;
  width: 26px;
  height: 26px;
  color: #3a3a44;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mine-ic svg {
  width: 24px;
  height: 24px;
}
.mine-label {
  flex: 1;
  font-size: 16px;
  color: #2b2b33;
  font-weight: 500;
  min-width: 0;
}
.mine-arrow {
  flex: none;
  color: #c4c4cd;
  font-size: 18px;
}
.mine-extra {
  flex: none;
  font-size: 15px;
  font-weight: 700;
  color: #2c2c35;
  margin-right: 4px;
}
.player-grid-card {
  grid-template-columns: repeat(4, 1fr);
}

/* 存单下单：底部支付栏 */
.dep-pay-footer {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--divider);
  background: #fff;
}
.dpf-left {
  flex: none;
  line-height: 1.3;
}
.dpf-left span {
  display: block;
  font-size: 12px;
  color: #9a9aa5;
}
.dpf-left b {
  font-size: 15px;
  color: #1f1f28;
}
.dpf-btn {
  flex: 1;
  border-radius: 999px;
  padding: 13px 0;
}

/* ============ 管理端：审核管理 ============ */
.audit-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 16px 4px;
}
.audit-tab {
  position: relative;
  text-align: center;
  padding: 11px 4px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #4a4a55;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.audit-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #8f77f5, #6c4df0);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(108, 77, 240, 0.28);
}
.audit-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.45);
}
.audit-onekey {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 8px 16px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.audit-onekey svg {
  width: 18px;
  height: 18px;
}
.apply-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.apply-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(31, 31, 40, 0.05);
}
.apply-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.apply-row .k {
  color: #2c2c35;
  font-weight: 600;
  font-size: 15px;
}
.apply-row .v {
  color: #9a9aa5;
  font-size: 14px;
  text-align: right;
  max-width: 62%;
}
.apply-row .v.accent {
  color: var(--primary);
  font-weight: 600;
}
.apply-ava {
  display: inline-block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #ece9f9;
  color: #b7aee6;
}
.apply-ava svg {
  width: 100%;
  height: 100%;
}
.apply-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}
.apply-actions button {
  flex: 1;
  border-radius: 999px;
  padding: 12px 0;
  font-size: 15px;
}

/* ============ 管理端：成员管理 ============ */
.member-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 14px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #2c2c35;
  cursor: pointer;
}
.member-group .mg-arrow {
  color: #c0c0cb;
  font-size: 20px;
  line-height: 1;
}
.member-count {
  margin: 0 2px 12px;
  font-size: 13.5px;
  color: #8a8a95;
}
.member-count b {
  color: var(--primary);
  font-weight: 700;
}
.member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(31, 31, 40, 0.04);
}
.mc-ava {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #ece9f9;
  color: #b7aee6;
}
.mc-ava svg {
  width: 100%;
  height: 100%;
}
.mc-info {
  flex: 1;
  min-width: 0;
}
.mc-name {
  font-size: 15.5px;
  font-weight: 600;
  color: #1f1f28;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mc-name .hot {
  font-size: 14px;
}
.mc-role {
  margin-top: 3px;
  font-size: 12.5px;
  color: #9a9aa5;
}
.mc-btn {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ============ 管理端：权限管理弹窗 ============ */
.perm-body {
  padding: 4px 20px 8px;
  overflow-y: auto;
}
.perm-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #f3f0ff, #f7f6ff);
  border-radius: 16px;
}
.pm-avatar {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #e2ddf6;
  color: #b7aee6;
}
.pm-avatar svg {
  width: 100%;
  height: 100%;
}
.pm-name {
  font-size: 18px;
  font-weight: 700;
  color: #1f1f28;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pm-name .hot {
  font-size: 16px;
}
.pm-edit {
  display: inline-flex;
  width: 15px;
  height: 15px;
  color: #9a90d8;
}
.pm-edit svg {
  width: 100%;
  height: 100%;
}
.pm-cur {
  margin-top: 6px;
  font-size: 13.5px;
  color: #8a8a95;
}
.perm-cfg-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 20px 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #1f1f28;
}
.perm-cfg-title svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}
.perm-cfg-sub {
  margin-bottom: 12px;
  font-size: 13px;
  color: #a0a0ab;
}
.perm-roles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.perm-role {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 12px;
  background: #f5f5f8;
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 600;
  color: #55555f;
  cursor: pointer;
  transition: all 0.15s ease;
}
.perm-role .pr-radio {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  border: 2px solid #c8c8d0;
  position: relative;
}
.perm-role.on {
  background: #f3f0ff;
  border-color: var(--primary);
  color: var(--primary);
}
.perm-role.on .pr-radio {
  border-color: var(--primary);
  background: var(--primary);
}
.perm-role.on .pr-radio::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.perm-footer {
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.perm-footer .btn-primary.wide {
  width: 100%;
  border-radius: 12px;
  padding: 14px 0;
  font-size: 16px;
}
.perm-ban {
  width: 100%;
  border-radius: 12px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  border: 1.5px solid #ff6b6b;
  color: #ff5b5b;
  cursor: pointer;
}
.perm-ban.unban {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============ 管理端：项目管理 ============ */
.screen.has-footer {
  padding-bottom: 0;
}
.screen.has-footer .screen-body {
  padding-bottom: 12px;
}
.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 8px 16px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.seg-tabs.two .seg-tab {
  text-align: center;
  padding: 12px 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #4a4a55;
  cursor: pointer;
  transition: all 0.18s ease;
}
.seg-tabs.two .seg-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #8f77f5, #6c4df0);
}
.proj-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
}
.proj-sort-label {
  font-size: 15px;
  font-weight: 700;
  color: #2c2c35;
}
.sort-pill {
  border: none;
  background: #ececf3;
  color: #6a6a75;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.sort-pill.on {
  background: #f0ecff;
  color: var(--primary);
}
.ppc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(31, 31, 40, 0.05);
  cursor: pointer;
}
.ppc-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ppc-name {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: #1f1f28;
}
.ppc-rate {
  font-size: 14px;
  font-weight: 600;
  color: #8a8a95;
}
.ppc-chevron {
  color: #c0c0cb;
  font-size: 18px;
}
.ppc-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
  font-size: 13.5px;
  color: #8a8a95;
}
.ppc-price b {
  color: #4a4a55;
  font-weight: 600;
}
.ppc-actions {
  display: flex;
  gap: 12px;
}
.ppc-btn {
  flex: 1;
  border-radius: 999px;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ppc-btn.outline {
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
}
.ppc-btn.ghost {
  border: 1.5px solid #e2e2ea;
  background: #f7f7fa;
  color: #6a6a75;
}
.ppc-footer {
  flex: none;
  display: flex;
  gap: 14px;
  padding: 12px 16px 22px;
  background: linear-gradient(180deg, rgba(246, 245, 251, 0), var(--screen-bg) 40%);
}
.ppc-footer.single {
  display: block;
}
.ppp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.ppp-ava {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ppp-ava svg {
  width: 100%;
  height: 100%;
}
.ppp-name {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #1f1f28;
}
.ppp-btn {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.proj-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #2c2c35;
  margin: 8px 0 10px;
}
.proj-section-title:first-child {
  margin-top: 4px;
}
.fr-value.muted {
  color: #b9b9c2;
}
.proj-radio-row {
  align-items: flex-start;
}
.proj-radios {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.proj-radios.wide {
  width: 100%;
  justify-content: flex-start;
}
.proj-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6a6a75;
  cursor: pointer;
}
.proj-radio .pr-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d2d2db;
  position: relative;
}
.proj-radio.on {
  color: var(--primary);
  font-weight: 600;
}
.proj-radio.on .pr-dot {
  border-color: var(--primary);
  background: var(--primary);
}
.proj-radio.on .pr-dot::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.proj-group-card {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 16px;
}
.proj-tag.muted-tag {
  color: #c0c0cb;
  border-style: dashed;
}
  padding: 8px 18px;
  border: 1px solid #e2e2ea;
  border-radius: 10px;
  font-size: 14px;
  color: #6a6a75;
}
.proj-edit-sub {
  font-size: 15px;
  font-weight: 700;
  color: #2c2c35;
  margin: 4px 0 14px;
  line-height: 1.5;
}
.pp-proj-list {
  position: relative;
  padding-left: 14px;
}
.pp-proj-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e8e8f0;
}
.pp-proj-card {
  position: relative;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
}
.pp-proj-card:active .pp-proj-body {
  opacity: 0.72;
}
.pp-proj-dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 18px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #fff;
}
.pp-proj-body {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.pp-proj-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f1f28;
  margin-bottom: 10px;
}
.pp-proj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.pp-proj-row span {
  color: #8a8a95;
}
.pp-proj-row b {
  color: #4a4a55;
  font-weight: 600;
}

/* ============ 管理端：罚款项目 ============ */
.fine-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(31, 31, 40, 0.05);
}
.fine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}
.fine-row .k {
  color: #2c2c35;
  font-weight: 600;
}
.fine-row .v {
  color: #9a9aa5;
  text-align: right;
}
.fine-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.fine-btn {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.fine-btn.del {
  background: #f3f3f6;
  color: #4a4a55;
}
.fine-btn.edit {
  background: #f0ecff;
  color: #4a4a55;
}
.dialog.fine-form {
  width: 300px;
  padding: 22px 20px 18px;
  text-align: left;
}
.fine-form-body {
  margin-bottom: 18px;
}
.fine-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}
.fine-form-row:last-child {
  border-bottom: none;
}
.fine-form-row .k {
  flex: none;
  font-size: 15px;
  font-weight: 600;
  color: #2c2c35;
}
.fine-form-row input {
  flex: 1;
  border: none;
  outline: none;
  text-align: right;
  font-size: 14.5px;
  color: var(--text);
  font-family: inherit;
  background: transparent;
}
.fine-form-row input::placeholder {
  color: var(--placeholder);
}
.fine-form-actions {
  display: flex;
  gap: 14px;
}
.fine-cancel,
.fine-save {
  flex: 1;
  border-radius: 999px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.fine-cancel {
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
}
.fine-save {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}
.dialog.fine-delete {
  width: 300px;
  padding: 24px 20px 20px;
}
.fine-delete-msg {
  font-size: 15px;
  color: #4a4a55;
  line-height: 1.6;
  margin-bottom: 22px;
}
.fine-delete-actions {
  display: flex;
  gap: 14px;
}
.fine-del-cancel,
.fine-del-ok {
  flex: 1;
  border-radius: 999px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.fine-del-cancel {
  border: none;
  background: #f3f3f6;
  color: #4a4a55;
}
.fine-del-ok {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}

/* ============ 管理端：储值活动 ============ */
.rcg-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f28;
  margin: 18px 0 12px;
}
.rcg-section-title:first-child {
  margin-top: 4px;
}
.rcg-voucher-tabs {
  display: flex;
  gap: 0;
  background: #f0f0f4;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 14px;
}
.rcg-vtab {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #8a8a95;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.rcg-vtab.on {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 4px 12px rgba(130, 102, 242, 0.28);
}
.rcg-stats-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 18px;
  margin-bottom: 8px;
  box-shadow: 0 6px 18px rgba(31, 31, 40, 0.05);
}
.rcg-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--divider);
}
.rcg-stat-row:last-child {
  border-bottom: none;
}
.rcg-stat-row .k {
  color: #2c2c35;
  font-weight: 600;
}
.rcg-stat-row .v {
  color: #9a9aa5;
  text-align: right;
}
.rcg-form-card {
  margin-bottom: 14px;
}
.rcg-form-card .form-row:last-of-type {
  border-bottom: none;
}
.rcg-hint {
  font-size: 12px;
  color: var(--primary);
  padding: 0 18px 10px;
  margin-top: -4px;
}
.rcg-add-btn {
  margin-bottom: 8px;
}
.rcg-activity-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(31, 31, 40, 0.05);
}
.rcg-activity-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rcg-expand {
  width: 28px;
  height: 28px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #9a9aa5;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 2px;
}
.rcg-expand.open {
  transform: rotate(180deg);
}
.rcg-activity-main {
  flex: 1;
  min-width: 0;
}
.rcg-activity-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f28;
  margin-bottom: 4px;
}
.rcg-activity-sub {
  font-size: 13px;
  color: #9a9aa5;
  line-height: 1.4;
}
.fine-btn.small {
  flex: none;
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 999px;
}
.rcg-activity-detail {
  position: relative;
  margin-top: 14px;
  padding: 16px 16px 12px;
  background: #fafafa;
  border: 1px solid #ececf0;
  border-radius: 12px;
}
.rcg-coupon-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: #f0ecff;
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.rcg-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #8a8a95;
}
.rcg-detail-row b {
  color: #4a4a55;
  font-weight: 600;
}

/* 优惠券管理 */
.coupon-screen .screen-body {
  padding-bottom: 90px;
}
.coupon-card {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #fff9ed 0%, #fff4dc 100%);
  border: 1px solid #f5e6c8;
  border-radius: 14px;
  padding: 16px 14px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.coupon-card:active {
  opacity: 0.92;
}
.coupon-card.selected {
  border-color: #e8c878;
  box-shadow: 0 6px 18px rgba(232, 168, 56, 0.18);
}
.coupon-left {
  flex: none;
  width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #e87828;
  line-height: 1;
}
.coupon-left span {
  font-size: 16px;
  margin-right: 2px;
  margin-top: 6px;
}
.coupon-mid {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border-left: 2px dashed #e8c878;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.coupon-name {
  font-size: 15px;
  font-weight: 700;
  color: #e87828;
}
.coupon-desc,
.coupon-valid {
  font-size: 12px;
  color: #9a9aa5;
  line-height: 1.4;
}
.coupon-radio {
  flex: none;
  width: 22px;
  height: 22px;
  align-self: center;
  border-radius: 50%;
  border: 2px solid #c8c8d2;
  background: #fff;
  position: relative;
  transition: border-color 0.2s;
}
.coupon-radio.on {
  border-color: #1f1f28;
}
.coupon-radio.on::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1f1f28;
  transform: translate(-50%, -50%);
}
.coupon-footer-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--divider);
  box-shadow: 0 -4px 16px rgba(31, 31, 40, 0.06);
}
.coupon-foot-btn {
  flex: 1;
  border-radius: 999px;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.coupon-foot-btn.outline {
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
}
.coupon-foot-btn.primary {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}

/* 开关 */
.toggle-switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #e0e0e8;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex: none;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31, 31, 40, 0.12);
  transition: transform 0.2s;
}
.toggle-switch.on {
  background: var(--primary);
}
.toggle-switch.on::after {
  transform: translateX(20px);
}

/* ============ 顾客端：首页 ============ */
.cust-home .screen-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 0;
}
.cust-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f3effe 0%, #eef3ff 100%);
  border: 1px solid rgba(124, 92, 255, 0.1);
  border-radius: 18px;
  padding: 14px 14px 14px 16px;
  margin-top: 40px;
  flex: none;
}
.cust-profile-info {
  flex: 1;
  min-width: 0;
}
.cust-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cust-name-row .name {
  font-size: 17px;
  font-weight: 700;
  color: #1f1f28;
}
.cust-profile-info .sub {
  font-size: 12.5px;
  color: #8a8a95;
  margin-top: 3px;
}
.cust-wallet-btn {
  flex: none;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: #f0ecff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.cust-wallet-btn svg {
  width: 18px;
  height: 18px;
}
.cust-wallet-btn:active {
  opacity: 0.7;
}
.cust-home .home-notice {
  flex: none;
  margin-top: 14px;
}
.cust-shop-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.cust-game-tabs {
  flex: none;
  display: flex;
  gap: 28px;
  padding: 14px 18px 0;
  border-bottom: 1px solid #f0f0f4;
}
.cust-game-tab {
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #9a9aa5;
  padding: 0 0 12px;
  cursor: pointer;
  position: relative;
}
.cust-game-tab.on {
  color: var(--primary);
}
.cust-game-tab.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}
.cust-shop-main {
  flex: 1;
  display: flex;
  min-height: 0;
}
.cust-cate-side {
  flex: none;
  width: 86px;
  background: #f5f5f8;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.cust-cate-item {
  border: none;
  background: transparent;
  padding: 18px 8px;
  font-size: 13px;
  color: #8a8a95;
  text-align: center;
  cursor: pointer;
  position: relative;
  line-height: 1.35;
}
.cust-cate-item.on {
  background: #fff;
  color: #2c2c35;
  font-weight: 700;
}
.cust-cate-item.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 2px 2px 0;
  background: var(--primary);
}
.cust-item-list {
  flex: 1;
  overflow-y: auto;
  background: #fff;
}
.cust-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #f3f3f6;
  cursor: pointer;
}
.cust-item-row:active {
  background: #fafafa;
}
.cust-item-thumb {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}
.cust-item-info {
  flex: 1;
  min-width: 0;
}
.cust-item-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f1f28;
  margin-bottom: 10px;
}
.cust-item-price {
  font-size: 15px;
  font-weight: 800;
  color: #e87828;
}
.cust-empty {
  padding: 24px 0;
}

/* 顾客端：我的 */
.cust-mine .screen-body {
  padding-bottom: 8px;
}
.cust-mine-profile {
  margin-top: 48px;
}
.cust-red-packet {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}
.cust-rp-line {
  width: 2px;
  height: 14px;
  background: linear-gradient(180deg, #b8a6ff, #8266f2);
  border-radius: 2px;
}
.cust-rp-body {
  width: 34px;
  height: 38px;
  border-radius: 8px 8px 12px 12px;
  background: linear-gradient(135deg, #9b7fff, #6c4df0);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(108, 77, 240, 0.35);
}
.cust-balance-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px 18px;
  margin-top: 14px;
  box-shadow: 0 8px 22px rgba(31, 31, 40, 0.06);
}
.cust-balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cust-balance-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #2c2c35;
}
.cust-balance-title svg {
  width: 20px;
  height: 20px;
  color: #6a6a75;
}
.cust-deduct-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e8e2ff;
  background: #faf8ff;
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.cust-deduct-btn svg {
  width: 14px;
  height: 14px;
}
.cust-deduct-btn i {
  font-style: normal;
  font-size: 11px;
  opacity: 0.7;
}
.cust-balance-amt {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}
.cust-balance-last {
  font-size: 13px;
  color: #9a9aa5;
  margin-bottom: 16px;
}
.cust-balance-btns {
  display: flex;
  gap: 14px;
}
.cust-bal-btn {
  flex: 1;
  border-radius: 999px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.cust-bal-btn.outline {
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
}
.cust-bal-btn.primary {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 6px 16px rgba(108, 77, 240, 0.28);
}

/* 陪玩端：罚款记录 */
.pl-fine-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 16px 0;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: #55555f;
  cursor: pointer;
}
.pl-fine-date i {
  font-style: normal;
  font-size: 11px;
  color: #9a9aa5;
}
.pl-fine-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(31, 31, 40, 0.05);
}
.pl-fine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pl-fine-reason {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f28;
}
.pl-fine-status {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.pl-fine-status.pending {
  color: #e87828;
  background: #fff4e8;
}
.pl-fine-status.paid {
  color: #3d9a6e;
  background: #e8f8ef;
}
.pl-fine-status.cancelled {
  color: #9a9aa5;
  background: #f3f3f6;
}
.pl-fine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: #8a8a95;
  margin-bottom: 8px;
}
.pl-fine-row b {
  color: #e87828;
  font-weight: 700;
}
.pl-fine-time {
  font-size: 13px;
  color: #b0b0ba;
}

/* 陪玩端：个人项目 */
.pl-own-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.pl-own-btn {
  flex: 1;
  border-radius: 999px;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.pl-own-btn.primary {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
}
.pl-own-btn.ghost {
  border: none;
  background: #f3f3f6;
  color: #4a4a55;
}
.pl-own-item {
  margin-bottom: 18px;
}
.pl-own-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f1f28;
  margin-bottom: 10px;
}
.pl-own-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 16px;
  box-shadow: 0 6px 18px rgba(31, 31, 40, 0.05);
}
.pl-own-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 15px;
}
.pl-own-row:last-child {
  border-bottom: none;
}
.pl-own-row span {
  color: #8a8a95;
}
.pl-own-row b {
  color: #2c2c35;
  font-weight: 600;
}

/* 陪玩端：排行榜 */
.pl-rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}
.pl-rank-type {
  font-size: 15px;
  font-weight: 700;
  color: #9a9aa5;
  padding-bottom: 8px;
  position: relative;
}
.pl-rank-type.on {
  color: var(--primary);
}
.pl-rank-type.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.pl-rank-year {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #2c2c35;
  cursor: pointer;
  font-family: inherit;
}
.pl-rank-year i {
  font-style: normal;
  margin-left: 4px;
  color: #9a9aa5;
  font-size: 11px;
}
.pl-rank-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(31, 31, 40, 0.05);
}
.pl-rank-range {
  font-size: 15px;
  font-weight: 700;
  color: #1f1f28;
  margin-bottom: 12px;
}
.pl-rank-tops {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.pl-rank-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f6ff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #8a8a95;
}
.pl-rank-top b {
  color: var(--primary);
  font-weight: 800;
}
.pl-rank-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.pl-rank-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.pl-rank-stat .k {
  color: #8a8a95;
}
.pl-rank-stat .v {
  color: #2c2c35;
  font-weight: 700;
}
.pl-rank-stat .v.accent {
  color: var(--primary);
}
