/* ========== 合伙人个人中心（对齐小程序 user_center） ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  background: #e4e9f0;
  -webkit-font-smoothing: antialiased;
}

.page-root,
.partner-center {
  margin: 0;
  padding: 0 0 calc(16px + env(safe-area-inset-bottom));
  width: 100%;
  min-height: 100%;
  background: #e4e9f0;
}

.top-nav {
  background: linear-gradient(155deg, #0a0f1a 0%, #0f172a 45%, #1e3a5f 100%);
  padding: 0 24px 36px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
}

.top-nav-inner {
  padding-top: calc(14px + env(safe-area-inset-top));
}

.nav-k {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: rgba(56, 189, 248, 0.72);
  margin-bottom: 8px;
}

.nav-title {
  color: #f8fafc;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
}

.nav-sub {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.9);
  letter-spacing: 0.08em;
}

.user-card {
  margin: -22px 14px 16px;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.12);
  object-fit: cover;
  flex-shrink: 0;
}

.user-info {
  margin-left: 15px;
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 5px;
  letter-spacing: 0.04em;
}

.user-id {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 4px;
}

.user-phone {
  font-size: 13px;
  color: #94a3b8;
}

.balance-card {
  margin: 0 14px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 14px;
  padding: 20px 16px 20px 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.balance-left {
  flex: 1;
  min-width: 0;
}

.balance-text {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.06em;
}

.balance-num {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 5px;
  letter-spacing: 0.04em;
}

.balance-btn {
  flex-shrink: 0;
  margin-left: auto;
  padding: 10px 18px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.menu-card {
  margin: 0 14px 28px;
  background: #ffffff;
  border-radius:  14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  padding: 14px 10px 18px;
}

.menu-grid {
  display: flex;
  flex-wrap: wrap;
}

.menu-cell {
  width: 25%;
  padding: 10px 4px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.menu-cell-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(145deg, #eff6ff, #f8fafc);
  border: 1px solid rgba(191, 219, 254, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
}

.menu-cell-text {
  font-size: 12px;
  color: #334155;
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
  padding: 0 2px;
}

/* ========== 邀约落地页（高端大气） ========== */
.invite-page {
  position: relative;
  min-height: 100vh;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  background: #060b14;
  color: #e2e8f0;
  overflow-x: hidden;
}

.invite-aurora {
  position: absolute;
  inset: -20% -40% auto -40%;
  height: 70vh;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(37, 99, 235, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(56, 189, 248, 0.2), transparent 50%),
    radial-gradient(ellipse 40% 35% at 12% 35%, rgba(99, 102, 241, 0.25), transparent 45%);
  pointer-events: none;
}

.invite-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.invite-hero {
  position: relative;
  z-index: 1;
  padding: calc(28px + env(safe-area-inset-top)) 28px 32px;
  max-width: 480px;
  margin: 0 auto;
}

.invite-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: rgba(56, 189, 248, 0.75);
  margin: 0 0 20px;
}

.invite-title {
  margin: 0;
  font-size: clamp(26px, 7.2vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.invite-title-accent {
  display: inline-block;
  background: linear-gradient(120deg, #60a5fa 0%, #a78bfa 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.invite-lead {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(148, 163, 184, 0.95);
  font-weight: 400;
}

.invite-em {
  color: #f1f5f9;
  font-weight: 600;
}

.invite-chips {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invite-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(8px);
}

.invite-cta-row {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.invite-btn-primary {
  display: block;
  text-align: center;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #3b82f6 100%);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.invite-btn-primary:active {
  transform: scale(0.99);
}

.invite-btn-ghost {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.85);
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.invite-panel {
  position: relative;
  z-index: 1;
  padding: 8px 20px 40px;
  max-width: 480px;
  margin: 0 auto;
}

.invite-panel-inner {
  padding: 24px 22px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(15, 23, 42, 0.35) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.invite-panel-h {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.06em;
}

.invite-panel-p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.92);
}
