﻿:root {
  --bg: #fff7fa;
  --panel: #ffffff;
  --text: #3c2831;
  --muted: #b28b9a;
  --line: #ffe2ea;
  --primary: #ff7f8a;
  --green: #8edee5;
  --orange: #ffd58d;
  --rose: #ff9fb1;
  --violet: #cdbbff;
  --shadow: 0 12px 30px rgba(255, 127, 138, .10);
  --soft-rose: #fff0f4;
  --soft-sage: #eefdff;
  --soft-gold: #fff7df;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 127, 138, .14), rgba(255, 241, 246, .72) 46%, rgba(142, 222, 229, .16)),
    linear-gradient(90deg, rgba(255, 127, 138, .045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 127, 138, .035) 1px, transparent 1px),
    #fff7fa;
  background-size: auto, 28px 28px, 28px 28px, auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

button,
.primary,
.ghost,
.danger,
.soft,
a.primary {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

button:active,
.primary:active,
.ghost:active,
.danger:active,
.soft:active,
a.primary:active {
  transform: translateY(1px) scale(.985);
}

button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.ui-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.phone {
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255,253,251,.78), rgba(251,246,244,.96) 260px),
    var(--bg);
  box-shadow: 0 24px 80px rgba(255, 127, 138, .16), 0 0 0 1px rgba(255, 127, 138, .07);
  position: relative;
  padding-bottom: 82px;
  overflow-x: hidden;
}

.phone-progress {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 60;
  width: 0;
  max-width: min(100vw, 430px);
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff7f8a, #ffd58d, #8edee5);
  box-shadow: 0 0 18px rgba(255, 127, 138, .36);
  opacity: 0;
  transition: width .28s ease, opacity .18s ease;
}

.phone-progress.active {
  opacity: 1;
}

.page {
  padding: 14px 14px 18px;
  animation: pageIn .28s ease both;
}

.topbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  flex: 1;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(255, 127, 138, .05);
}

.icon-btn:hover,
.resource:hover,
.tool:hover,
.card-row:hover,
.activity-row:hover,
.plain-card:hover,
.detail-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 127, 138, .12);
}

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

.brand-title {
  font-size: 23px;
  font-weight: 800;
}

.brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.city-pill {
  min-width: 72px;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow);
  border: 0;
}

.search {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.search input,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.search input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(255, 127, 138, .55);
  box-shadow: 0 0 0 3px rgba(255, 127, 138, .13);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.search button,
.primary,
.ghost,
.danger,
.soft {
  min-height: 42px;
  border-radius: 8px;
  border: 0;
  padding: 0 14px;
  font-weight: 700;
  white-space: nowrap;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, #ff7f8a, #8edee5);
  box-shadow: 0 8px 18px rgba(255, 127, 138, .20);
}

.ghost {
  color: var(--primary);
  background: var(--soft-rose);
}

.soft {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
}

.danger {
  color: #fff;
  background: #d94f4f;
}

.hero {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.hero-rich {
  position: relative;
  overflow: hidden;
  padding: 0;
  transform: translateZ(0);
}

.hero img {
  display: block;
  width: 100%;
  aspect-ratio: 720 / 520;
  object-fit: cover;
  border-radius: 8px;
  background: #eef3ff;
}

.hero-rich img {
  border-radius: 8px;
}

.hero-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(23, 32, 51, .72);
  backdrop-filter: blur(10px);
}

.hero-caption span,
.hero-caption strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-caption span {
  font-size: 12px;
  opacity: .82;
}

.hero-caption strong {
  font-size: 15px;
  line-height: 1.35;
}

.resource-grid,
.tool-grid,
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.resource-grid {
  grid-template-columns: repeat(5, 1fr);
  margin: 14px 0;
}

.tool-grid {
  margin-top: 10px;
}

.tool,
.resource {
  min-height: 68px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 8px 4px;
  display: grid;
  place-items: center;
  gap: 4px;
  box-shadow: 0 1px 0 rgba(255, 127, 138, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.resource i,
.tool i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.resource i .ui-icon,
.tool i .ui-icon {
  width: 17px;
  height: 17px;
}

.resource span,
.tool span {
  font-size: 12px;
  line-height: 1.15;
}

.section {
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
}

.section-head button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
}

.list {
  display: grid;
  gap: 10px;
}

.card-row,
.activity-row,
.plain-card,
.profile-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 0 rgba(255, 127, 138, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  flex: none;
}

img.avatar {
  display: block;
  object-fit: cover;
  background: #eef3ff;
}

.avatar.large {
  width: 58px;
  height: 58px;
}

.title {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title .ui-icon {
  width: 17px;
  height: 17px;
  margin-right: 5px;
  vertical-align: -3px;
}

.meta,
.desc,
.small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.line-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.line-meta .ui-icon {
  width: 13px;
  height: 13px;
  color: #8290a8;
}

.desc {
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desc.full {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.pre {
  white-space: pre-wrap;
}

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

.tag {
  color: #41506a;
  background: #f0f3f9;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1;
}

.activity-row {
  overflow: hidden;
  padding: 0;
}

.activity-row img,
.cover {
  width: 100%;
  display: block;
  aspect-ratio: 30 / 13;
  object-fit: cover;
  background: #eaf1ff;
}

.visual-tile {
  width: 74px;
  min-width: 74px;
  height: 68px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.visual-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28px;
  background: rgba(0, 0, 0, .12);
}

.visual-tile .ui-icon {
  width: 24px;
  height: 24px;
  z-index: 1;
}

.visual-tile span {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 1;
  font-weight: 800;
  opacity: .85;
}

.activity-body {
  padding: 12px;
}

.split {
  display: flex;
  gap: 8px;
}

.split > * {
  flex: 1;
}

.split > .visual-tile,
.split > .mini-cover {
  flex: 0 0 auto;
}

.business-card {
  color: #fff;
  border-radius: 8px;
  padding: 16px;
  min-height: 160px;
  background: linear-gradient(135deg, #ff7f8a, #8edee5);
  position: relative;
  overflow: hidden;
}

.business-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: 18px;
  width: 160px;
  height: 42px;
  border-radius: 8px;
  transform: rotate(24deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
}

.business-card .avatar {
  position: absolute;
  right: 16px;
  top: 16px;
  background: rgba(0, 0, 0, .18);
}

.business-card img.avatar {
  object-fit: cover;
}

.business-card h2 {
  margin: 10px 0 6px;
  font-size: 22px;
}

.business-card p {
  margin: 4px 0;
  font-size: 13px;
  opacity: .92;
}

.contact-mask {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .16);
  font-weight: 800;
}

.detail-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}

.detail-section h3 {
  margin: 0 0 9px;
  font-size: 15px;
}

.kv {
  display: grid;
  gap: 8px;
}

.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f2e8e6;
  padding-bottom: 8px;
}

.kv div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fixed-actions {
  position: sticky;
  bottom: 82px;
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.fixed-actions button,
.fixed-actions a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  line-height: 42px;
}

.nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100vw, 430px);
  transform: translateX(-50%);
  height: 66px;
  padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 251, .96);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 -12px 28px rgba(255, 127, 138, .09);
}

.nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  gap: 2px;
}

.nav .active {
  color: var(--primary);
  background: var(--soft-rose);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 127, 138, .10);
}

.nav .ui-icon {
  width: 20px;
  height: 20px;
}

.form {
  display: grid;
  gap: 10px;
}

.field label {
  display: block;
  margin: 0 0 6px;
  color: #7d5f6b;
  font-size: 12px;
  font-weight: 700;
}

.auth-panel {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.auth-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.auth-page {
  min-height: calc(100vh - 82px);
  display: grid;
  align-content: center;
}

.auth-panel.refined {
  padding: 18px;
  border: 1px solid rgba(255, 127, 138, .14);
  box-shadow: 0 18px 46px rgba(255, 127, 138, .13);
  animation: liftIn .36s ease both;
}

.auth-hero {
  min-height: 128px;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 127, 138, .78), rgba(142, 222, 229, .78)),
    url("/assets/login-visual.svg") center/cover no-repeat;
}

.auth-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  opacity: .82;
}

.auth-copy,
.auth-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-hero .auth-copy {
  color: rgba(255, 255, 255, .86);
}

.wechat-button {
  width: 100%;
  min-height: 46px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #8edee5;
  font-weight: 800;
}

.wechat-button .ui-icon {
  width: 20px;
  height: 20px;
}

.oauth-login-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.oauth-login-button {
  min-height: 38px;
  border: 1px solid rgba(226, 109, 136, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: #51343c;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(115, 72, 86, .08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.oauth-login-button:hover {
  transform: translateY(-1px);
  border-color: rgba(226, 109, 136, .46);
  box-shadow: 0 12px 24px rgba(115, 72, 86, .12);
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7ecee;
}

.login-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-tabs button.active {
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(255, 127, 138, .09);
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
  align-items: end;
}

.notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff8ed;
  border: 1px solid #ffe1bd;
}

.notice-card > .ui-icon {
  color: #f28b45;
}

.card-row.compact {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.mini-cover {
  width: 92px;
  height: 68px;
  aspect-ratio: auto;
  border-radius: 8px;
}

.full-button {
  width: 100%;
  margin-top: 12px;
}

.stats {
  margin-top: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.mine-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 18px;
}

.mine-stats .stat {
  padding: 9px 5px;
}

.mine-stats .stat strong {
  font-size: 16px;
}

.point-notice {
  justify-content: flex-start;
}

.invite-code {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f7ecee;
}

.invite-code span,
.invite-link {
  color: var(--muted);
  font-size: 12px;
}

.invite-code strong {
  color: var(--primary);
}

.invite-link {
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px dashed rgba(255, 127, 138, .35);
  border-radius: 8px;
  background: #ffffff;
  word-break: break-all;
}

.empty,
.loading,
.error {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  width: min(calc(100vw - 34px), 396px);
  padding: 10px 12px;
  background: rgba(60, 40, 49, .92);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.toast.show {
  opacity: 1;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  pointer-events: none;
  transform: scale(0);
  animation: ripple .52s ease-out forwards;
}

.ghost .ripple,
.soft .ripple,
.tag .ripple,
.icon-btn .ripple {
  background: rgba(255, 127, 138, .18);
}

.skeleton-line,
.skeleton-hero,
.skeleton-grid i,
.skeleton-list article {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ffeef3;
}

.skeleton-line::after,
.skeleton-hero::after,
.skeleton-grid i::after,
.skeleton-list article::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
  animation: shimmer 1.35s infinite;
}

.skeleton-line {
  height: 20px;
  margin-top: 10px;
}

.skeleton-line.wide {
  width: 62%;
}

.skeleton-line.short {
  width: 42%;
  height: 13px;
}

.skeleton-hero {
  height: 230px;
  margin: 16px 0;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-bottom: 16px;
}

.skeleton-grid i {
  height: 68px;
}

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

.skeleton-list article {
  height: 82px;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ripple {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

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

.badge {
  display: inline-block;
  min-width: 48px;
  text-align: center;
  border-radius: 6px;
  padding: 4px 7px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
}

.badge.pending {
  background: var(--orange);
}

.badge.rejected {
  background: #d94f4f;
}

.row-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.row-actions.wrap {
  flex-wrap: wrap;
}

.row-actions button {
  flex: 1 1 92px;
}

.manage-activity .activity-kv {
  margin-top: 10px;
}

@media (max-width: 360px) {
  .resource-grid,
  .tool-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .card-row .ghost {
    grid-column: 1 / -1;
  }
}

.home-screen {
  padding-top: 0;
}

.resource-hero {
  margin: 0 -14px 14px;
  padding: 24px 16px 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 127, 138, .94), rgba(255, 213, 141, .78) 52%, rgba(142, 222, 229, .84)),
    url("/assets/hero-network.svg") center/cover no-repeat;
}

.resource-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.city-switch,
.hero-search,
.community-search {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.city-switch {
  gap: 5px;
  padding: 0 4px;
  color: #fff;
  background: transparent;
  font-weight: 800;
}

.hero-search {
  gap: 7px;
  padding: 0 12px;
  background: rgba(255, 253, 251, .95);
  color: #9c8791;
}

.hero-search input,
.community-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.profile-banner {
  position: relative;
  min-height: 200px;
  border-radius: 8px;
  padding: 20px 20px 16px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 127, 138, .90), rgba(142, 222, 229, .88)),
    var(--banner-image, url("/assets/hero-network.svg")) center/cover no-repeat;
  box-shadow: 0 18px 38px rgba(255, 127, 138, .22);
}

.profile-banner.sage-card {
  background:
    linear-gradient(135deg, rgba(142, 222, 229, .90), rgba(205, 187, 255, .82)),
    var(--banner-image, url("/assets/hero-network.svg")) center/cover no-repeat;
}

.profile-banner.clean-card {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 253, 251, .94), rgba(255, 241, 246, .88)),
    var(--banner-image, url("/assets/hero-network.svg")) center/cover no-repeat;
}

.profile-banner::before {
  content: "";
  position: absolute;
  inset: 44% 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, .22);
}

.profile-lines {
  width: min(70%, 260px);
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}

.profile-lines h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.profile-lines p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.profile-banner .profile-avatar {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .18);
}

.profile-card-tools {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: flex;
  gap: 18px;
  opacity: .88;
}

.guest-banner {
  position: relative;
  min-height: 200px;
  border-radius: 8px;
  padding: 22px 18px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 127, 138, .88), rgba(255, 213, 141, .78) 54%, rgba(142, 222, 229, .78)),
    var(--banner-image, url("/assets/hero-network.svg")) center/cover no-repeat;
  box-shadow: 0 18px 38px rgba(255, 127, 138, .22);
  isolation: isolate;
}

.guest-banner.sage-card {
  background:
    linear-gradient(135deg, rgba(142, 222, 229, .88), rgba(205, 187, 255, .78)),
    var(--banner-image, url("/assets/hero-network.svg")) center/cover no-repeat;
}

.guest-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.20), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.16), transparent 28%);
}

.guest-copy {
  position: relative;
  z-index: 1;
  width: min(68%, 250px);
  display: grid;
  gap: 6px;
}

.guest-logo {
  width: fit-content;
  padding: 1px 6px;
  border-radius: 6px;
  color: #ff6f80;
  background: rgba(255, 253, 251, .78);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
  transform: skew(-8deg);
}

.guest-subtitle {
  color: #ff6f80;
  font-size: 16px;
  font-weight: 900;
}

.guest-copy h2 {
  margin: 20px 0 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(255, 127, 138, .34);
}

.guest-copy h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 0 0 3px rgba(255, 127, 138, .22);
}

.guest-bullets {
  display: grid;
  gap: 5px;
}

.guest-bullets p {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(255, 127, 138, .34);
}

.guest-bullets p::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 0 0 3px rgba(255, 127, 138, .22);
}

.guest-cta {
  position: absolute;
  right: 24px;
  top: 84px;
  width: 102px;
  height: 102px;
  border: 0;
  border-radius: 50%;
  padding: 0 22px;
  white-space: normal;
  color: #fff;
  background: #ff7f8a;
  box-shadow: 0 16px 30px rgba(255, 127, 138, .26);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

.guest-banner.clean-card {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255,253,251,.94), rgba(255, 241, 246, .86)),
    var(--banner-image, url("/assets/hero-network.svg")) center/cover no-repeat;
}

.guest-banner.clean-card .guest-copy h2,
.guest-banner.clean-card .guest-bullets p {
  color: #ff6f80;
  text-shadow: none;
}

.hot-strip {
  min-height: 38px;
  margin-bottom: 14px;
  padding: 9px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 127, 138, .05);
}

.hot-strip strong {
  color: var(--primary);
  white-space: nowrap;
}

.hot-strip span {
  min-width: 0;
  color: #7d5f6b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-grid.modern {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.people-list {
  display: grid;
}

.person-line {
  min-height: 74px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid #f2e8e6;
}

.person-line:last-child {
  border-bottom: 0;
}

.person-line .avatar {
  width: 48px;
  height: 48px;
}

.person-line .title span {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  color: #ff6f80;
  background: #fff0f4;
  font-size: 12px;
}

.person-line p {
  margin: 5px 0 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-screen {
  padding-top: 28px;
}

.community-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 14px;
  padding-left: 4px;
}

.community-tabs button {
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  min-height: 30px;
}

.community-tabs .active {
  color: var(--primary);
  box-shadow: inset 0 -3px 0 var(--primary);
}

.community-search {
  gap: 8px;
  padding: 0 8px 0 12px;
  background: #fff0f4;
}

.community-search button {
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.pill-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 2px 4px;
  scrollbar-width: none;
}

.pill-scroll .tag {
  min-width: 75px;
  text-align: center;
  border-radius: 18px;
  font-size: 14px;
}

.community-list {
  margin-top: 10px;
  display: grid;
}

.community-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #f2e8e6;
  padding: 12px 0;
}

.community-row h3 {
  margin: 0 0 5px;
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-row p {
  margin: 0;
  color: #7d5f6b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-mosaic {
  width: 56px;
  height: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  overflow: hidden;
  border-radius: 8px;
  background: #ffeef3;
}

.avatar.mini,
.avatar-mosaic span {
  width: 27px;
  height: 27px;
  border-radius: 4px;
  font-size: 11px;
}

.float-create {
  position: fixed;
  right: calc((100vw - min(100vw, 430px)) / 2 + 16px);
  bottom: 112px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #ff7f8a;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 18px 34px rgba(255, 127, 138, .28);
}

.group-detail-screen {
  padding: 0 0 92px;
  background: #fff7fa;
}

.group-hero {
  min-height: 224px;
  padding: 16px 14px 0;
  background-size: cover;
  background-position: center;
}

.group-hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-hero-bar .icon-btn {
  color: var(--text);
  background: rgba(255, 253, 251, .88);
  backdrop-filter: blur(10px);
}

.group-window-actions {
  width: 104px;
  height: 32px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 253, 251, .62);
  backdrop-filter: blur(10px);
}

.group-window-actions span {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
}

.group-window-actions span:first-child {
  width: 5px;
  height: 5px;
  box-shadow: 8px 0 0 #fff, 16px 0 0 #fff;
}

.group-summary-card {
  margin-top: 18px;
  min-height: 112px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 116px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 34px rgba(28, 48, 90, .18);
}

.avatar-mosaic.large {
  width: 72px;
  height: 72px;
  border-radius: 6px;
}

.avatar-mosaic.large .avatar,
.avatar-mosaic.large span {
  width: 35px;
  height: 35px;
}

.group-summary-main h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #142039;
}

.group-summary-main p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #66728a;
  font-size: 16px;
}

.group-join {
  min-height: 54px;
  border-radius: 28px;
  font-size: 17px;
  box-shadow: 0 12px 24px rgba(77, 103, 255, .32);
}

.group-members-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  overflow-x: auto;
  border-bottom: 1px solid #eef1f6;
}

.group-members-strip button {
  border: 0;
  background: transparent;
  color: #69748a;
  min-width: 50px;
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: 12px;
}

.group-members-strip .more-members {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 9px;
  color: #fff;
  background: #5575ff;
  font-size: 12px;
  line-height: 1.1;
}

.group-intro-line {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #fff;
  color: #222a3a;
  font-weight: 700;
  font-size: 17px;
}

.group-intro-line span {
  color: #111827;
  font-size: 24px;
}

.group-compose {
  margin-top: 10px;
  padding: 14px 18px;
  background: #fff;
}

.group-compose textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid #e3e7ef;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  outline: none;
}

.group-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.group-compose-actions span {
  color: #5575ff;
  font-size: 13px;
}

.group-feed {
  margin-top: 10px;
  background: #fff;
}

.group-feed h3 {
  margin: 0;
  padding: 18px 18px 8px;
  font-size: 18px;
}

.group-post {
  padding: 16px 18px;
  border-top: 1px solid #eef1f6;
}

.group-post-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.group-post-head strong {
  color: #162039;
  font-size: 16px;
}

.group-post-head p,
.group-post-head time {
  margin: 3px 0 0;
  color: #8a94a8;
  font-size: 13px;
}

.group-post-content {
  margin: 10px 0;
  color: #1d273a;
  line-height: 1.65;
  white-space: pre-wrap;
}

.group-post-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.group-post-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.group-post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  color: #6b7280;
  font-size: 13px;
}

.group-post-actions span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.group-float {
  gap: 4px;
  flex-direction: column;
}

.group-float .ui-icon {
  width: 22px;
  height: 22px;
}

.city-current {
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.city-grid button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}

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

.mine-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.mine-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #ff6f80;
  background: #fff0f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
}

.edit-profile-page {
  background: #ffffff;
}

.profile-form {
  display: grid;
  gap: 18px;
  padding-bottom: 78px;
}

.profile-section h3 {
  margin: 0 0 10px;
  padding-left: 7px;
  border-left: 3px solid #526bff;
  font-size: 17px;
}

.profile-field {
  min-height: 48px;
  margin-bottom: 8px;
  border: 1px solid #d9dde6;
  border-radius: 6px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 74px auto minmax(0, 1fr) 24px;
  gap: 8px;
  align-items: center;
  background: #fff;
}

.profile-field span {
  font-weight: 800;
}

.profile-field b {
  color: #f02d3a;
}

.profile-field input {
  grid-column: 2 / 4;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}

.profile-field .avatar {
  grid-column: 2;
}

.profile-field .avatar + input {
  grid-column: 3 / 4;
}

.profile-field i {
  color: #b28b9a;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.sticky-actions {
  position: sticky;
  bottom: 82px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 10px 14px 0;
  background: linear-gradient(180deg, transparent, #fff 28%);
}

.popup-mask {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, .42);
  animation: fadeIn .18s ease both;
}

.popup-card {
  position: relative;
  width: min(360px, 100%);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(60, 40, 49, .24);
  animation: liftIn .24s ease both;
}

.popup-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: #f7ecee;
}

.popup-image.fallback {
  display: grid;
  place-items: center;
  color: var(--primary);
}

.popup-close {
  position: absolute;
  right: 10px;
  top: 10px;
}

.popup-card h2,
.popup-card p {
  margin-left: 16px;
  margin-right: 16px;
}

.popup-card h2 {
  margin-top: 16px;
  font-size: 20px;
}

.popup-card p {
  color: var(--muted);
  line-height: 1.65;
}

.popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 16px;
}

.is-hidden {
  display: none !important;
}

.signup-card {
  padding-bottom: 16px;
}

.signup-card .form {
  padding: 0 16px 16px;
}

.signup-relation-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 6px 16px 16px;
  padding: 12px 14px;
  border: 1px solid rgba(221, 88, 119, 0.2);
  border-radius: 12px;
  background: #fff5f7;
  color: #5f3540;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}

.signup-relation-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #dc5878;
}

.signup-qr {
  width: min(220px, calc(100% - 48px));
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 24px auto 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff7fa;
}

.upload-field {
  display: grid;
  gap: 8px;
}

.upload-box {
  position: relative;
  min-height: 112px;
  border: 1px dashed #d9b8c1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff8f5;
  display: grid;
  place-items: center;
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.upload-preview.placeholder {
  background: linear-gradient(135deg, #eef4ff, #f8fbff);
}

.schedule-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.setting-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  padding: 10px;
  border-radius: 8px;
  background: #f7f9fc;
}

.activity-info-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.activity-info-panel h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.activity-kv div {
  align-items: flex-start;
}

.activity-kv span {
  color: var(--muted);
  font-size: 12px;
}

.activity-kv strong {
  max-width: 62%;
  text-align: right;
  font-size: 13px;
  line-height: 1.45;
}

.activity-info-cta {
  width: 100%;
  margin-top: 12px;
}

.group-brief-card {
  margin-top: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.group-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #f7ecee;
}

.group-brief-card strong {
  display: block;
  margin-bottom: 4px;
}

.group-brief-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

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

/* Pastel mini-app theme inspired by the provided reference. */
:root {
  --bg: #fff7fa;
  --panel: #ffffff;
  --text: #3c2831;
  --muted: #b28b9a;
  --line: #ffe2ea;
  --primary: #ff7f8a;
  --green: #8edee5;
  --orange: #ffd58d;
  --rose: #ff9fb1;
  --violet: #cdbbff;
  --shadow: 0 14px 34px rgba(255, 127, 138, .14);
  --soft-rose: #fff0f4;
  --soft-sage: #eefdff;
  --soft-gold: #fff7df;
}

html,
body {
  background:
    linear-gradient(115deg, #eefaff 0%, #fff7fa 34%, #fff1f6 72%, #ffffff 100%),
    #fff7fa;
  background-size: auto;
}

.phone {
  background:
    linear-gradient(180deg, rgba(255, 245, 249, .96), rgba(255, 250, 252, .98) 280px),
    var(--bg);
  box-shadow: 0 24px 80px rgba(255, 127, 138, .18), 0 0 0 1px rgba(255, 178, 193, .18);
}

.phone-progress {
  background: linear-gradient(90deg, #ff7f8a, #ffc1cf, #8edee5);
  box-shadow: 0 0 18px rgba(255, 127, 138, .38);
}

.icon-btn,
.city-pill,
.search input,
.field input,
.field textarea,
.field select,
.soft,
.hero,
.tool,
.resource,
.card-row,
.activity-row,
.plain-card,
.profile-card,
.detail-section,
.auth-panel,
.stat,
.hot-strip,
.city-current,
.city-grid button,
.popup-card,
.group-brief-card {
  background: rgba(255, 255, 255, .94);
  border-color: var(--line);
}

.icon-btn,
.tool,
.resource,
.card-row,
.activity-row,
.plain-card,
.profile-card,
.detail-section,
.auth-panel,
.stat,
.hot-strip,
.city-current,
.popup-card,
.group-brief-card {
  box-shadow: 0 10px 28px rgba(255, 127, 138, .10);
}

.icon-btn:hover,
.resource:hover,
.tool:hover,
.card-row:hover,
.activity-row:hover,
.plain-card:hover,
.detail-section:hover {
  box-shadow: 0 16px 34px rgba(255, 127, 138, .16);
}

.search input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(255, 127, 138, .56);
  box-shadow: 0 0 0 3px rgba(255, 127, 138, .14);
}

.primary {
  background: linear-gradient(135deg, #ff7f8a, #ff9fb1);
  box-shadow: 0 10px 22px rgba(255, 127, 138, .26);
}

.ghost {
  color: #ff7f8a;
  background: #fff0f4;
}

.danger {
  background: #ff6f80;
}

.tag,
.person-line .title span,
.mine-actions button,
.nav .active {
  color: #ff6f80;
  background: #fff0f4;
}

.tag {
  border: 1px solid #ffe2ea;
}

.resource-hero {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(235, 250, 255, .96) 0%, rgba(255, 245, 249, .98) 42%, rgba(255, 218, 228, .94) 100%),
    url("/assets/hero-network.svg") center/cover no-repeat;
}

.city-switch {
  color: #5f3a48;
}

.hero-search,
.community-search,
.login-tabs,
.invite-code,
.popup-image,
.upload-box,
.group-poster {
  background: #fff0f4;
}

.profile-banner,
.guest-banner {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 222, 231, .94), rgba(255, 244, 248, .92) 48%, rgba(224, 249, 255, .88)),
    var(--banner-image, url("/assets/hero-network.svg")) center/cover no-repeat;
  box-shadow: 0 18px 36px rgba(255, 127, 138, .22);
}

.profile-banner.sage-card,
.guest-banner.sage-card {
  background:
    linear-gradient(135deg, rgba(224, 249, 255, .92), rgba(255, 244, 248, .92) 48%, rgba(255, 239, 212, .88)),
    var(--banner-image, url("/assets/hero-network.svg")) center/cover no-repeat;
}

.profile-banner.clean-card,
.guest-banner.clean-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 241, 246, .92)),
    var(--banner-image, url("/assets/hero-network.svg")) center/cover no-repeat;
}

.profile-lines p,
.guest-copy h2,
.guest-bullets p {
  color: #5f3a48;
  text-shadow: none;
}

.guest-logo {
  color: #3c2831;
  background: rgba(255, 255, 255, .76);
}

.guest-subtitle,
.hot-strip strong,
.section-head button,
.invite-code strong {
  color: #ff6f80;
}

.guest-copy h2::before,
.guest-bullets p::before {
  background: #ff9fb1;
  box-shadow: 0 0 0 3px rgba(255, 159, 177, .22);
}

.guest-cta,
.float-create,
.city-grid .active {
  background: linear-gradient(135deg, #ff7f8a, #ff9fb1);
  box-shadow: 0 16px 30px rgba(255, 127, 138, .28);
}

.nav {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 -10px 28px rgba(255, 127, 138, .12);
}

.nav .active {
  box-shadow: inset 0 0 0 1px rgba(255, 127, 138, .12);
}

.business-card,
.auth-hero {
  background:
    linear-gradient(135deg, rgba(255, 127, 138, .86), rgba(255, 191, 207, .82), rgba(142, 222, 229, .72)),
    url("/assets/login-visual.svg") center/cover no-repeat;
}

.wechat-button {
  background: #8edee5;
}

.community-tabs .active {
  color: #ff6f80;
  box-shadow: inset 0 -3px 0 #ff7f8a;
}

.community-row,
.person-line {
  border-bottom-color: #ffe9ef;
}

.avatar-mosaic,
.skeleton-line,
.skeleton-hero,
.skeleton-grid i,
.skeleton-list article {
  background: #ffeef3;
}

.group-summary-main h2,
.community-row p,
.hot-strip span,
.field label {
  color: #7d5f6b;
}

.popup-mask {
  background: rgba(72, 39, 52, .34);
}

.popup-image.fallback {
  color: #ff7f8a;
}

/* Element polish pass: calmer proportions and softer mini-app controls. */
.page {
  padding: 18px 16px 22px;
}

.home-screen {
  padding-top: 0;
}

.section {
  margin-top: 22px;
}

.section-head {
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 18px;
  line-height: 1.25;
}

.section-head button {
  font-size: 12px;
  font-weight: 700;
  color: #a7788a;
}

.list {
  gap: 14px;
}

.resource-hero {
  margin: 0 -16px 18px;
  padding: 28px 18px 22px;
}

.resource-top {
  gap: 12px;
  margin-bottom: 20px;
}

.city-switch {
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .46);
  box-shadow: 0 8px 18px rgba(255, 127, 138, .10);
}

.hero-search,
.community-search {
  min-height: 42px;
  border: 1px solid rgba(255, 226, 234, .82);
  background: rgba(255, 255, 255, .88);
  box-shadow: inset 0 0 0 1px rgba(255, 127, 138, .04), 0 8px 18px rgba(255, 127, 138, .07);
}

.hero-search .ui-icon,
.community-search .ui-icon {
  width: 16px;
  height: 16px;
  color: #c694a7;
}

.profile-banner,
.guest-banner {
  min-height: 188px;
  padding: 22px 20px;
}

.profile-lines {
  width: min(64%, 248px);
  gap: 11px;
}

.profile-lines h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.profile-lines p {
  font-size: 14px;
  line-height: 1.35;
}

.profile-banner .profile-avatar {
  right: 22px;
  top: 24px;
  width: 72px;
  height: 72px;
  box-shadow: 0 10px 24px rgba(255, 127, 138, .18);
}

.guest-copy {
  width: min(62%, 245px);
  gap: 8px;
}

.guest-logo {
  padding: 2px 8px;
  font-size: 23px;
  letter-spacing: 0;
}

.guest-subtitle {
  font-size: 15px;
}

.guest-copy h2 {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.28;
}

.guest-bullets {
  gap: 6px;
}

.guest-bullets p {
  font-size: 20px;
  line-height: 1.28;
}

.guest-cta {
  top: 78px;
  right: 22px;
  width: 92px;
  height: 92px;
  padding: 0 20px;
  font-size: 21px;
}

.hot-strip {
  min-height: 40px;
  margin: 0 0 16px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 226, 234, .76);
  box-shadow: 0 8px 20px rgba(255, 127, 138, .08);
}

.resource-grid.modern,
.resource-grid {
  gap: 10px;
  margin: 16px 0 18px;
}

.tool-grid {
  gap: 10px;
}

.tool,
.resource {
  min-height: 78px;
  padding: 10px 4px 8px;
  border: 1px solid rgba(255, 226, 234, .84);
  box-shadow: 0 8px 18px rgba(255, 127, 138, .075);
}

.resource i,
.tool i {
  width: 34px;
  height: 34px;
  color: #ff6f80;
  background: linear-gradient(135deg, #fff0f4, #ffffff) !important;
  border: 1px solid rgba(255, 127, 138, .16);
  box-shadow: 0 6px 14px rgba(255, 127, 138, .10);
}

.resource:nth-child(2n) i,
.tool:nth-child(2n) i {
  color: #36b8c0;
  background: linear-gradient(135deg, #eefdff, #ffffff) !important;
  border-color: rgba(142, 222, 229, .30);
}

.resource:nth-child(3n) i,
.tool:nth-child(3n) i {
  color: #d69b36;
  background: linear-gradient(135deg, #fff7df, #ffffff) !important;
  border-color: rgba(255, 213, 141, .36);
}

.resource:nth-child(4n) i,
.tool:nth-child(4n) i {
  color: #9b83e8;
  background: linear-gradient(135deg, #f5efff, #ffffff) !important;
  border-color: rgba(205, 187, 255, .40);
}

.resource i .ui-icon,
.tool i .ui-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.resource span,
.tool span {
  margin-top: 2px;
  color: #7d5f6b;
  font-size: 12px;
  font-weight: 700;
}

.primary,
.ghost,
.danger,
.soft,
.search button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
}

.primary {
  box-shadow: 0 10px 22px rgba(255, 127, 138, .22);
}

.ghost,
.soft {
  border: 1px solid rgba(255, 127, 138, .15);
  box-shadow: none;
}

.ghost {
  color: #ff6f80;
  background: #fff4f7;
}

.soft {
  color: #7d5f6b;
  background: #ffffff;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 127, 138, .12);
  background: rgba(255, 255, 255, .92);
  color: #7d5f6b;
  box-shadow: 0 6px 14px rgba(255, 127, 138, .08);
}

.icon-btn .ui-icon {
  width: 19px;
  height: 19px;
}

.tag {
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  color: #ff6f80;
  background: #fff5f8;
  border-color: rgba(255, 127, 138, .13);
}

.card-row,
.plain-card,
.profile-card,
.detail-section,
.activity-row,
.auth-panel,
.group-brief-card {
  border: 1px solid rgba(255, 226, 234, .88);
  box-shadow: 0 10px 24px rgba(255, 127, 138, .08);
}

.card-row,
.plain-card,
.profile-card,
.detail-section,
.auth-panel,
.group-brief-card {
  padding: 14px;
}

.card-row {
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 12px;
}

.avatar {
  width: 50px;
  height: 50px;
  box-shadow: 0 6px 14px rgba(255, 127, 138, .09);
}

.title {
  font-size: 15px;
  line-height: 1.32;
}

.meta,
.desc,
.small {
  font-size: 12.5px;
  line-height: 1.55;
}

.desc {
  margin-top: 5px;
}

.activity-row {
  padding: 0;
}

.activity-row img,
.cover {
  aspect-ratio: 16 / 9;
}

.activity-body {
  padding: 14px;
}

.person-line {
  min-height: 86px;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 13px;
  padding: 13px 2px;
}

.person-line .avatar {
  width: 54px;
  height: 54px;
}

.person-line .title {
  font-size: 16px;
}

.person-line .title span {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.person-line p {
  margin-top: 6px;
  font-size: 13px;
}

.community-screen {
  padding-top: 34px;
}

.community-tabs {
  gap: 34px;
  margin-bottom: 18px;
}

.community-tabs button {
  min-height: 34px;
  font-size: 17px;
}

.community-tabs .active {
  box-shadow: inset 0 -3px 0 #ff7f8a;
}

.community-search {
  padding: 0 10px 0 14px;
}

.community-search button {
  color: #573746;
}

.pill-scroll {
  gap: 10px;
  padding: 14px 2px 8px;
}

.pill-scroll .tag {
  min-width: auto;
  padding: 7px 18px;
  border-radius: 18px;
  font-size: 14px;
}

.community-row {
  min-height: 98px;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
}

.community-row h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.community-row p {
  font-size: 13px;
  line-height: 1.42;
}

.avatar-mosaic {
  width: 62px;
  height: 62px;
}

.avatar.mini,
.avatar-mosaic span {
  width: 30px;
  height: 30px;
}

.float-create {
  right: calc((100vw - min(100vw, 430px)) / 2 + 18px);
  bottom: 110px;
  width: 66px;
  height: 66px;
  font-size: 14px;
  box-shadow: 0 16px 30px rgba(255, 127, 138, .25);
}

.mine-card {
  padding: 16px;
}

.mine-actions {
  gap: 12px;
}

.mine-actions button {
  min-height: 46px;
  border: 1px solid rgba(255, 127, 138, .13);
  box-shadow: 0 8px 18px rgba(255, 127, 138, .08);
}

.mine-stats {
  gap: 8px;
  margin-top: 14px;
}

.mine-stats .stat {
  padding: 11px 4px;
}

.mine-stats .stat strong {
  font-size: 18px;
}

.nav {
  height: 70px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
}

.nav button {
  font-size: 11.5px;
}

.nav .active {
  background: #fff3f7;
}

.nav .ui-icon {
  width: 21px;
  height: 21px;
}

@media (max-width: 360px) {
  .page {
    padding-left: 13px;
    padding-right: 13px;
  }

  .resource-hero {
    margin-left: -13px;
    margin-right: -13px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .guest-copy {
    width: min(60%, 220px);
  }

  .guest-copy h2,
  .guest-bullets p {
    font-size: 17px;
  }

  .guest-cta {
    right: 14px;
    width: 82px;
    height: 82px;
    font-size: 18px;
  }

  .resource-grid.modern,
  .resource-grid,
  .tool-grid {
    gap: 8px;
  }

  .tool,
  .resource {
    min-height: 74px;
  }

  .card-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .card-row .avatar {
    width: 44px;
    height: 44px;
  }

  .card-row .ghost,
  .card-row .soft {
    grid-column: 1 / -1;
  }
}

/* Quiet luxury visual pass for a refined 35+ feminine audience. */
:root {
  --lux-bg: #fff8fa;
  --lux-ink: #38232c;
  --lux-muted: #9c7482;
  --lux-rose: #d95f78;
  --lux-rose-deep: #9b3f5f;
  --lux-blush: #fff0f4;
  --lux-champagne: #f6dfad;
  --lux-mint: #9bd9d4;
  --lux-line: rgba(140, 72, 96, .13);
  --lux-shadow: 0 18px 42px rgba(117, 54, 78, .12);
  --lux-soft-shadow: 0 10px 26px rgba(117, 54, 78, .085);
}

html,
body {
  background:
    linear-gradient(115deg, #f7fdff 0%, #fff8fa 28%, #fff2f6 64%, #fffdf8 100%),
    #fff8fa;
}

.phone {
  color: var(--lux-ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 250, .98) 0, rgba(255, 252, 249, .98) 310px, #fff8fa 100%),
    var(--lux-bg);
  box-shadow: 0 28px 90px rgba(117, 54, 78, .18), 0 0 0 1px rgba(217, 95, 120, .10);
}

.page {
  padding-bottom: 28px;
}

.resource-hero {
  margin-bottom: 20px;
  padding-bottom: 24px;
  background:
    linear-gradient(135deg, rgba(255, 246, 249, .98), rgba(255, 238, 244, .95) 44%, rgba(239, 252, 252, .93)),
    url("/assets/hero-network.svg") center/cover no-repeat;
  border-bottom: 1px solid rgba(255, 226, 234, .72);
}

.resource-top {
  margin-bottom: 22px;
}

.city-switch {
  color: #6e4050;
  background: rgba(255, 255, 255, .70);
  border-color: rgba(255, 255, 255, .70);
  box-shadow: 0 10px 24px rgba(117, 54, 78, .09);
}

.hero-search,
.community-search,
.search input {
  border-color: rgba(255, 226, 234, .86);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 26px rgba(117, 54, 78, .075), inset 0 0 0 1px rgba(255, 255, 255, .78);
}

.profile-banner,
.guest-banner {
  isolation: isolate;
  min-height: 196px;
  border: 1px solid rgba(255, 255, 255, .72);
  background:
    linear-gradient(132deg, rgba(255, 240, 245, .94), rgba(255, 250, 251, .84) 46%, rgba(230, 250, 250, .82)),
    var(--banner-image, url("/assets/hero-network.svg")) center/cover no-repeat;
  box-shadow: 0 20px 42px rgba(117, 54, 78, .16);
}

.profile-banner::after,
.guest-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(118deg, transparent 0 34%, rgba(255, 255, 255, .32) 35% 47%, transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 62%);
  pointer-events: none;
}

.profile-lines h2,
.guest-copy h2,
.section-head h2 {
  color: var(--lux-ink);
}

.profile-lines p,
.guest-subtitle,
.guest-bullets p,
.hot-strip span {
  color: #6f4b58;
}

.guest-logo {
  color: #7f3e58;
  background: rgba(255, 255, 255, .68);
  box-shadow: inset 0 -5px 0 rgba(246, 223, 173, .45);
}

.guest-cta,
.primary,
.float-create {
  background: linear-gradient(135deg, var(--lux-rose), var(--lux-rose-deep));
  box-shadow: 0 16px 32px rgba(155, 63, 95, .25);
}

.hot-strip {
  min-height: 44px;
  border-color: rgba(255, 226, 234, .72);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(255, 244, 248, .78)),
    #fff;
  box-shadow: var(--lux-soft-shadow);
}

.hot-strip strong {
  position: relative;
  padding-left: 14px;
  color: var(--lux-rose-deep);
}

.hot-strip strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--lux-rose), var(--lux-champagne));
  transform: translateY(-50%);
}

.resource-grid.modern {
  gap: 12px;
  margin: 18px 0 22px;
}

.resource,
.tool {
  position: relative;
  min-height: 82px;
  overflow: hidden;
  border-color: rgba(255, 226, 234, .78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 247, 250, .86));
  box-shadow: var(--lux-soft-shadow);
}

.resource::before,
.tool::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(217, 95, 120, .55), rgba(246, 223, 173, .70), rgba(155, 217, 212, .55));
  opacity: .78;
}

.resource i,
.tool i {
  color: var(--lux-rose-deep);
  background:
    linear-gradient(135deg, rgba(255, 240, 244, .98), rgba(255, 255, 255, .98)) !important;
  border-color: rgba(217, 95, 120, .14);
  box-shadow: 0 9px 18px rgba(117, 54, 78, .10);
}

.resource:nth-child(2n) i,
.tool:nth-child(2n) i {
  color: #2d918e;
  background: linear-gradient(135deg, #eefdfc, #ffffff) !important;
}

.resource:nth-child(3n) i,
.tool:nth-child(3n) i {
  color: #b88639;
  background: linear-gradient(135deg, #fff8e9, #ffffff) !important;
}

.resource span,
.tool span {
  color: #6b4855;
}

.section {
  margin-top: 24px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  position: relative;
  padding-left: 12px;
  font-size: 18px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 17px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--lux-rose), var(--lux-champagne));
}

.section-head button {
  color: #a36b7f;
}

.card-row,
.plain-card,
.profile-card,
.detail-section,
.activity-row,
.auth-panel,
.group-brief-card {
  border-color: var(--lux-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 250, 251, .92));
  box-shadow: var(--lux-soft-shadow);
}

.person-line {
  min-height: 90px;
  padding: 15px 4px;
}

.person-line .avatar,
.card-row .avatar {
  box-shadow: 0 8px 18px rgba(117, 54, 78, .11);
}

.person-line .title,
.card-row .title,
.activity-row .title {
  color: #3f2630;
  font-size: 16px;
}

.person-line .title span {
  color: var(--lux-rose-deep);
  background: linear-gradient(135deg, #fff0f4, #fff8e9);
  border: 1px solid rgba(217, 95, 120, .12);
}

.activity-row {
  overflow: hidden;
}

.activity-row img,
.cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #fff0f4, #eefdfc);
}

.activity-body {
  padding: 16px;
}

.tag,
.badge {
  border-radius: 8px;
  color: var(--lux-rose-deep);
  border: 1px solid rgba(217, 95, 120, .13);
  background: rgba(255, 244, 247, .95);
}

.community-screen {
  padding-top: 32px;
}

.community-tabs {
  padding-left: 0;
}

.community-tabs button {
  color: #694754;
}

.community-tabs .active {
  color: var(--lux-rose-deep);
  box-shadow: inset 0 -3px 0 var(--lux-champagne);
}

.pill-scroll .tag {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 7px 16px rgba(117, 54, 78, .07);
}

.community-row {
  margin: 0 0 8px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 226, 234, .72);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 9px 20px rgba(117, 54, 78, .07);
}

.avatar-mosaic {
  background: linear-gradient(135deg, #fff0f4, #eefdfc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .70);
}

.group-activities-list {
  margin: 12px 14px 0;
  padding: 14px;
  border: 1px solid rgba(255, 226, 234, .72);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--lux-soft-shadow);
}

.group-activities-list h3 {
  margin: 0 0 12px;
  color: var(--lux-ink);
  font-size: 16px;
}

.mine-card {
  background:
    linear-gradient(135deg, rgba(255, 240, 244, .96), rgba(255, 255, 255, .96) 48%, rgba(239, 252, 252, .85));
  box-shadow: var(--lux-shadow);
}

.mine-actions button,
.mine-stats .stat {
  color: #6b4855;
  border-color: rgba(255, 226, 234, .72);
  background: rgba(255, 255, 255, .78);
}

.mine-actions button .ui-icon {
  color: var(--lux-rose);
}

.mine-stats .stat strong {
  color: var(--lux-rose-deep);
}

.nav {
  left: 50%;
  right: auto;
  bottom: 12px;
  width: min(390px, calc(100vw - 32px));
  height: 66px;
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 226, 234, .58);
  border-radius: 26px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 42px rgba(117, 54, 78, .16);
  backdrop-filter: blur(16px);
}

.nav button {
  position: relative;
  gap: 3px;
  color: #9d7a86;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.nav button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--lux-rose), var(--lux-champagne));
  transform: translateX(-50%);
  transition: width .18s ease;
}

.nav .active {
  color: var(--lux-rose-deep);
  background: transparent;
  box-shadow: none;
}

.nav .active::after {
  width: 22px;
}

.nav .ui-icon {
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 50%;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nav .active .ui-icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--lux-rose), var(--lux-rose-deep));
  box-shadow: 0 8px 16px rgba(155, 63, 95, .22);
  transform: translateY(-5px);
}

.nav .active span {
  transform: translateY(-3px);
}

.phone {
  padding-bottom: 96px;
}

@media (max-width: 360px) {
  .nav {
    width: calc(100vw - 24px);
    bottom: 10px;
  }

  .resource-grid.modern,
  .resource-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .resource,
  .tool {
    min-height: 78px;
  }
}

.resource i.custom-resource-icon {
  overflow: hidden;
}

.resource i.custom-resource-icon img,
.resource i.custom-resource-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  object-fit: contain;
}

.resource i.custom-resource-icon svg {
  fill: currentColor;
  stroke: currentColor;
}

/* Business logic UI additions: login dialog, card wall, real folder/visitor/message states. */
.login-dialog {
  width: min(92vw, 392px);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 18px;
}

.login-dialog .popup-close .ui-icon {
  transform: rotate(45deg);
}

.login-dialog .auth-panel {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.card-detail-page {
  padding-bottom: 118px;
}

.wall-card {
  isolation: isolate;
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(48, 34, 43, .45), rgba(217, 95, 120, .28)),
    var(--card-wall) center/cover no-repeat;
  box-shadow: var(--ui-shadow);
}

.wall-card .wall-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .38)),
    linear-gradient(120deg, rgba(255, 255, 255, .20), transparent 42%);
}

.card-invite-panel,
.agent-shortcuts,
.summary-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--ui-shadow-soft);
}

.card-invite-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.card-invite-panel strong,
.summary-card strong {
  color: var(--ui-ink);
  font-size: 15px;
}

.card-invite-panel p {
  margin: 4px 0 0;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.5;
}

.card-invite-panel.disabled {
  opacity: .82;
}

.card-invite-panel .disabled {
  cursor: not-allowed;
  filter: grayscale(.2);
}

.agent-shortcuts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-shortcuts button {
  min-height: 46px;
  border: 1px solid rgba(217, 95, 120, .14);
  border-radius: 8px;
  color: var(--ui-ink);
  background: linear-gradient(135deg, #fff, #fff4f7);
  font-weight: 800;
}

.mine-relation-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 10px;
}

.mine-relation-btn {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 84px;
  padding: 12px 6px 10px;
  border-color: rgba(255, 128, 150, .18) !important;
  background:
    radial-gradient(circle at 24% 14%, rgba(255, 196, 207, .72), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 241, 246, .94)) !important;
  box-shadow: 0 12px 26px rgba(198, 90, 114, .10);
}

.mine-relation-btn i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 8px;
  color: #ff6f86;
  background: linear-gradient(135deg, #fff, #ffe3ea);
  box-shadow: inset 0 0 0 1px rgba(255, 130, 150, .18);
}

.mine-relation-btn span {
  font-size: 12px;
  line-height: 1.15;
}

.mine-relation-btn strong {
  color: #2f2630;
  font-size: 18px;
  line-height: 1;
}

.mine-relation-btn.active {
  color: #fff;
  border-color: transparent !important;
  background: linear-gradient(135deg, #ff8798, #ff6f86) !important;
  box-shadow: 0 16px 30px rgba(255, 111, 134, .25);
}

.mine-relation-btn.active i,
.mine-relation-btn.active strong {
  color: #fff;
}

.mine-relation-btn.active i {
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.mine-expand-panel {
  position: relative;
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid rgba(255, 128, 150, .16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 252, .98), rgba(255, 255, 255, .96)),
    radial-gradient(circle at top right, rgba(255, 190, 205, .35), transparent 38%);
  box-shadow: 0 18px 42px rgba(180, 78, 102, .12);
}

.mine-expand-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mine-expand-head strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ui-ink);
  font-size: 16px;
}

.mine-expand-head p {
  margin: 5px 0 0;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.55;
}

.mine-expand-list {
  display: grid;
  gap: 10px;
}

.mine-inline-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 72px;
  padding: 11px;
  border: 1px solid rgba(230, 156, 172, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mine-inline-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 111, 134, .30);
  box-shadow: 0 14px 26px rgba(170, 78, 101, .12);
}

.mine-inline-card .title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ui-ink);
  font-size: 14px;
  font-weight: 900;
}

.mine-inline-card .title small {
  color: #ff7d92;
  font-size: 11px;
  font-weight: 800;
}

.mine-inline-card .meta,
.mine-inline-card .desc {
  margin-top: 3px;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.35;
}

.mine-inline-card .desc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mine-panel-float {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 92px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8798, #ff6f86);
  box-shadow: 0 16px 34px rgba(255, 111, 134, .30);
  font-weight: 900;
}

.message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.message-head time {
  color: var(--ui-muted);
  font-size: 12px;
}

.visitor-row {
  cursor: pointer;
}

.news-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--ui-shadow-soft);
}

.news-cover {
  width: 112px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, #fff0f4, #eefdfc);
}

.news-detail-card {
  padding: 0 0 18px;
}

.news-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--ui-shadow-soft);
}

.news-detail-card h1 {
  margin: 18px 0 8px;
  color: var(--ui-ink);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.mine-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 360px) {
  .card-invite-panel,
  .mine-actions {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .news-cover {
    width: 86px;
  }
}

/* Frontend visual polish: calmer spacing, richer hierarchy, less cramped mobile layout. */
:root {
  --ui-bg: #fbf7f5;
  --ui-paper: rgba(255, 255, 255, .94);
  --ui-ink: #352631;
  --ui-muted: #8f6f79;
  --ui-line: rgba(229, 194, 199, .62);
  --ui-rose: #d95f78;
  --ui-coral: #f1858d;
  --ui-mint: #77cbd0;
  --ui-cream: #fffaf4;
  --ui-gold: #e8c378;
  --ui-shadow: 0 16px 34px rgba(117, 54, 78, .11);
  --ui-shadow-soft: 0 8px 20px rgba(117, 54, 78, .075);
}

html,
body {
  background:
    linear-gradient(155deg, #f7fbfb 0%, #fff8fa 42%, #fbf7f2 100%),
    var(--ui-bg);
}

.phone {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88) 0, rgba(255, 249, 250, .98) 280px, #fbf7f5 100%);
  box-shadow: 0 24px 70px rgba(72, 47, 57, .14), 0 0 0 1px rgba(229, 194, 199, .42);
}

.page {
  padding: 18px 18px 24px;
}

.home-screen {
  padding-top: 0;
}

.resource-hero {
  margin: 0 -18px 22px;
  padding: 22px 18px 24px;
  background:
    linear-gradient(145deg, rgba(255, 251, 249, .96), rgba(255, 241, 245, .88) 48%, rgba(231, 248, 248, .90)),
    url("/assets/hero-network.svg") center/cover no-repeat;
  border-bottom: 1px solid var(--ui-line);
}

.resource-top {
  margin-bottom: 18px;
  gap: 10px;
}

.city-switch,
.hero-search,
.community-search,
.search input {
  border: 1px solid rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--ui-shadow-soft);
}

.city-switch {
  min-height: 40px;
  padding: 0 12px;
  color: var(--ui-ink);
  font-weight: 800;
}

.hero-search,
.community-search {
  min-height: 44px;
  border-radius: 8px;
}

.profile-banner,
.guest-banner {
  min-height: 184px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  color: var(--ui-ink);
  background:
    linear-gradient(135deg, rgba(255, 250, 249, .95), rgba(255, 238, 244, .82) 45%, rgba(225, 247, 247, .82)),
    var(--banner-image) center/cover no-repeat;
  box-shadow: 0 18px 42px rgba(117, 54, 78, .15);
}

.profile-banner::after,
.guest-banner::after {
  background: linear-gradient(115deg, rgba(255,255,255,.30), transparent 42%, rgba(255,255,255,.18));
}

.profile-lines h2,
.guest-copy h2 {
  font-size: 22px;
  line-height: 1.22;
}

.profile-lines p,
.guest-subtitle,
.guest-bullets p {
  color: #6f525a;
  font-size: 13px;
}

.guest-logo {
  color: #73384d;
  background: rgba(255, 255, 255, .72);
}

.guest-cta,
.primary,
.float-create {
  background: linear-gradient(135deg, var(--ui-coral), var(--ui-rose));
  box-shadow: 0 14px 28px rgba(217, 95, 120, .23);
}

.hot-strip {
  min-height: 46px;
  margin-top: 2px;
  padding: 0 14px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: var(--ui-paper);
  box-shadow: var(--ui-shadow-soft);
}

.hot-strip strong {
  color: var(--ui-rose);
}

.resource-grid.modern,
.resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
}

.resource,
.tool {
  min-height: 86px;
  padding: 12px 7px 10px;
  border: 1px solid rgba(229, 194, 199, .54);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,249,250,.90));
  box-shadow: var(--ui-shadow-soft);
}

.resource i,
.tool i {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 9px 18px rgba(117, 54, 78, .10);
}

.resource i .ui-icon,
.tool i .ui-icon,
.resource i.custom-resource-icon img,
.resource i.custom-resource-icon svg {
  width: 20px;
  height: 20px;
}

.resource span,
.tool span {
  max-width: 100%;
  color: var(--ui-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.section {
  margin-top: 24px;
}

.section-head {
  margin-bottom: 12px;
}

.section-head h2 {
  color: var(--ui-ink);
  font-size: 18px;
}

.section-head h2::before {
  background: linear-gradient(180deg, var(--ui-rose), var(--ui-gold));
}

.section-head button {
  color: #9c6677;
  font-weight: 800;
}

.list,
.people-list,
.community-list {
  gap: 12px;
}

.person-line,
.card-row,
.plain-card,
.detail-section,
.activity-row,
.auth-panel,
.group-brief-card,
.community-row {
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: var(--ui-paper);
  box-shadow: var(--ui-shadow-soft);
}

.person-line {
  min-height: 82px;
  padding: 13px 6px;
  gap: 12px;
}

.person-line .avatar,
.card-row .avatar,
.avatar {
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(117, 54, 78, .12);
}

.person-line .title,
.card-row .title,
.activity-row .title,
.plain-card .title {
  color: var(--ui-ink);
  font-size: 16px;
  line-height: 1.32;
}

.person-line p,
.desc,
.meta,
.activity-row .meta {
  color: var(--ui-muted);
  line-height: 1.45;
}

.activity-row {
  overflow: hidden;
}

.activity-row img,
.activity-row .cover {
  min-height: 126px;
  object-fit: cover;
}

.activity-body {
  padding: 15px;
}

.tag,
.badge {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #9b3f5f;
  background: rgba(255, 244, 247, .92);
}

.community-screen {
  padding-top: 24px;
}

.community-tabs {
  gap: 28px;
  margin-bottom: 16px;
}

.community-tabs button {
  font-size: 16px;
  color: #755864;
}

.community-tabs .active {
  color: var(--ui-rose);
}

.pill-scroll {
  margin: 12px -18px 14px;
  padding: 0 18px 2px;
}

.pill-scroll .tag {
  min-width: 78px;
  min-height: 30px;
  border-color: rgba(117, 54, 78, .18);
  background: rgba(255, 255, 255, .80);
}

.community-row {
  min-height: 86px;
  margin: 0;
  padding: 14px 12px;
  gap: 12px;
}

.avatar-mosaic {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.community-row h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.community-row p {
  color: var(--ui-muted);
  font-size: 13px;
}

.mine-screen {
  padding-top: 20px;
}

.mine-card {
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 244, 247, .96), rgba(255,255,255,.96) 48%, rgba(231, 248, 248, .88));
  box-shadow: var(--ui-shadow);
}

.mine-actions {
  gap: 10px;
}

.mine-actions button,
.mine-stats .stat {
  min-height: 56px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}

.mine-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.mine-stats .stat strong {
  color: var(--ui-rose);
  font-size: 17px;
}

.mine-stats .stat span {
  color: var(--ui-muted);
  font-size: 11px;
}

.nav {
  width: min(382px, calc(100vw - 30px));
  height: 68px;
  bottom: 12px;
  border: 1px solid rgba(229, 194, 199, .70);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(72, 47, 57, .16);
}

.nav button {
  border-radius: 8px;
  color: #96727d;
}

.nav .active {
  color: #fff;
  background: linear-gradient(135deg, var(--ui-coral), var(--ui-rose));
  box-shadow: 0 10px 22px rgba(217, 95, 120, .20);
}

.nav button::after,
.nav .active::after {
  display: none;
}

.nav .active .ui-icon {
  width: 22px;
  height: 22px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.nav .active span {
  transform: none;
}

@media (max-width: 360px) {
  .page {
    padding-inline: 14px;
  }

  .resource-hero {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .resource-grid.modern,
  .resource-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .resource,
  .tool {
    min-height: 82px;
  }

  .mine-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Final feminine UI direction: poster-like hierarchy, soft icons, lighter navigation. */
:root {
  --fem-bg: #fff6f8;
  --fem-paper: rgba(255, 255, 255, .92);
  --fem-ink: #3b2630;
  --fem-muted: #a17b86;
  --fem-line: rgba(242, 204, 213, .72);
  --fem-rose: #ff8190;
  --fem-rose-deep: #cf5e76;
  --fem-pink: #ffc6d4;
  --fem-blue: #a9e7f2;
  --fem-mint: #9ee2dc;
  --fem-gold: #ffd989;
  --fem-lavender: #d7c7ff;
  --fem-shadow: 0 18px 42px rgba(132, 69, 88, .13);
  --fem-shadow-soft: 0 9px 22px rgba(132, 69, 88, .085);
}

html,
body {
  background:
    linear-gradient(118deg, #effaff 0%, #fff7fa 34%, #fff1f6 70%, #fffaf4 100%),
    var(--fem-bg);
}

.phone {
  color: var(--fem-ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 254, .96) 0, rgba(255, 246, 249, .98) 300px, #fff8fa 100%);
  box-shadow: 0 30px 86px rgba(97, 51, 67, .16), 0 0 0 1px rgba(255, 198, 212, .45);
}

.page {
  padding: 20px 18px 26px;
}

.resource-hero {
  margin: 0 -18px 22px;
  padding: 24px 18px 26px;
  background:
    linear-gradient(135deg, rgba(255, 250, 252, .98), rgba(255, 225, 234, .86) 46%, rgba(232, 250, 252, .90)),
    url("/assets/hero-network.svg") center/cover no-repeat;
  border-bottom: 1px solid rgba(255, 216, 226, .86);
}

.resource-top {
  margin-bottom: 20px;
}

.city-switch {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .62);
  color: #7c4354;
}

.hero-search,
.community-search,
.search input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 22px rgba(132, 69, 88, .08);
}

.profile-banner,
.guest-banner {
  min-height: 206px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .78);
  background:
    linear-gradient(135deg, rgba(255, 247, 250, .94), rgba(255, 202, 216, .72) 48%, rgba(214, 246, 250, .82)),
    var(--banner-image) center/cover no-repeat;
  box-shadow: var(--fem-shadow);
}

.profile-banner::before,
.guest-banner::before {
  content: "";
  position: absolute;
  right: -24px;
  top: 26px;
  width: 150px;
  height: 74px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .06));
  transform: rotate(-18deg);
}

.profile-banner::after,
.guest-banner::after {
  background:
    linear-gradient(118deg, rgba(255,255,255,.32), transparent 40%),
    linear-gradient(90deg, rgba(255, 255, 255, .18), transparent 58%);
}

.profile-lines h2,
.guest-copy h2 {
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.guest-copy {
  width: min(64%, 252px);
}

.guest-logo {
  width: fit-content;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .70);
  background: rgba(255, 255, 255, .58);
  color: #7e3951;
}

.guest-cta {
  right: 20px;
  top: 76px;
  width: 94px;
  height: 94px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #ff8e9a, #d75f7c);
  box-shadow: 0 16px 30px rgba(207, 94, 118, .24);
}

.resource-grid.modern,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 18px 0 24px;
}

.resource {
  isolation: isolate;
  position: relative;
  min-height: 78px;
  padding: 10px 6px 9px;
  overflow: hidden;
  border: 1px solid var(--fem-line);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--fem-shadow-soft);
}

.resource::before {
  height: 0;
}

.resource::after {
  content: "";
  position: absolute;
  inset: auto -20px -30px auto;
  width: 86px;
  height: 62px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 198, 212, .36), rgba(169, 231, 242, .16));
  transform: rotate(-14deg);
  z-index: -1;
}

.resource:nth-child(1),
.resource:nth-child(2) {
  grid-column: span 2;
  min-height: 132px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 235, 241, .98), rgba(255, 255, 255, .92) 52%, rgba(233, 250, 252, .82));
}

.resource:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(235, 250, 252, .96), rgba(255, 255, 255, .92) 54%, rgba(255, 241, 220, .82));
}

.resource i {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 8px;
  color: #d75f7c;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255, 229, 236, .82)) !important;
  box-shadow: 0 10px 20px rgba(132, 69, 88, .10);
}

.resource:nth-child(1) i,
.resource:nth-child(2) i {
  width: 58px;
  height: 58px;
}

.resource:nth-child(2n) i {
  color: #3baeb3;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(220, 249, 251, .86)) !important;
}

.resource:nth-child(3n) i {
  color: #ca9340;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255, 242, 205, .90)) !important;
}

.resource:nth-child(4n) i {
  color: #9579dd;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(241, 233, 255, .88)) !important;
}

.resource i .ui-icon,
.resource i.custom-resource-icon img,
.resource i.custom-resource-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.75;
}

.resource:nth-child(1) i .ui-icon,
.resource:nth-child(2) i .ui-icon,
.resource:nth-child(1) i.custom-resource-icon img,
.resource:nth-child(2) i.custom-resource-icon img,
.resource:nth-child(1) i.custom-resource-icon svg,
.resource:nth-child(2) i.custom-resource-icon svg {
  width: 28px;
  height: 28px;
}

.resource span {
  margin-top: 6px;
  color: var(--fem-ink);
  font-size: 12px;
  font-weight: 800;
}

.resource:nth-child(1) span,
.resource:nth-child(2) span {
  font-size: 16px;
  line-height: 1.25;
}

.hot-strip,
.person-line,
.card-row,
.plain-card,
.detail-section,
.activity-row,
.auth-panel,
.group-brief-card,
.community-row,
.news-card,
.agent-shortcuts,
.card-invite-panel {
  border: 1px solid var(--fem-line);
  background: var(--fem-paper);
  box-shadow: var(--fem-shadow-soft);
}

.section {
  margin-top: 26px;
}

.section-head h2 {
  color: var(--fem-ink);
  font-size: 19px;
}

.section-head h2::before {
  width: 5px;
  height: 18px;
  background: linear-gradient(180deg, var(--fem-rose), var(--fem-gold));
}

.people-list {
  gap: 10px;
}

.person-line {
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 88px;
  padding: 14px 12px;
}

.person-line .avatar {
  width: 56px;
  height: 56px;
}

.person-line .title span {
  color: #d75f7c;
  background: #fff0f5;
}

.activity-row {
  background: #fff;
}

.activity-row img,
.activity-row .cover {
  min-height: 138px;
}

.tag,
.badge,
.pill-scroll .tag {
  border: 1px solid rgba(255, 198, 212, .72);
  color: #c85d77;
  background: rgba(255, 244, 248, .92);
}

.community-tabs {
  gap: 30px;
}

.community-tabs button {
  color: #7c5d68;
  font-size: 17px;
}

.community-tabs .active {
  color: #cf5e76;
  box-shadow: inset 0 -3px 0 #ff9fad;
}

.community-row {
  min-height: 96px;
  padding: 14px 12px;
}

.avatar-mosaic {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #fff0f5, #e7fbfc);
}

.mine-card {
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 240, 246, .98), rgba(255,255,255,.94) 48%, rgba(231, 250, 252, .86));
}

.mine-actions button,
.agent-shortcuts button,
.tool {
  border: 1px solid var(--fem-line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255, 247, 250, .88));
  box-shadow: var(--fem-shadow-soft);
}

.tool i {
  border-radius: 8px;
  color: #d75f7c;
  background: linear-gradient(135deg, #fff, #ffe7ee) !important;
}

.tool:nth-child(2n) i {
  color: #3baeb3;
  background: linear-gradient(135deg, #fff, #e4fbfc) !important;
}

.tool:nth-child(3n) i {
  color: #ca9340;
  background: linear-gradient(135deg, #fff, #fff2cd) !important;
}

.nav {
  width: min(374px, calc(100vw - 36px));
  height: 66px;
  bottom: 14px;
  border: 1px solid rgba(255, 214, 224, .68);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 42px rgba(97, 51, 67, .14);
  backdrop-filter: blur(18px);
}

.nav button {
  color: #ab8994;
  background: transparent;
  box-shadow: none;
}

.nav .active {
  color: #cf5e76;
  background: transparent;
  box-shadow: none;
}

.nav .active .ui-icon {
  color: #cf5e76;
  background: #fff0f5;
  box-shadow: 0 8px 16px rgba(207, 94, 118, .16);
}

.nav .active::after {
  display: block;
  width: 20px;
  bottom: 4px;
  height: 3px;
  background: linear-gradient(90deg, #ff9fad, #ffd989);
}

@media (max-width: 360px) {
  .profile-banner,
  .guest-banner {
    min-height: 188px;
    padding: 18px;
  }

  .guest-cta {
    width: 84px;
    height: 84px;
    font-size: 18px;
  }

  .resource:nth-child(1),
  .resource:nth-child(2) {
    min-height: 118px;
    padding: 13px;
  }
}

/* Refined feedback surfaces: no browser-like alerts, softer login prompt. */
.toast {
  left: 50%;
  bottom: 100px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: min(calc(100vw - 34px), 390px);
  min-height: 52px;
  padding: 8px 14px 8px 9px;
  border: 1px solid rgba(255, 216, 226, .82);
  border-radius: 8px;
  color: #4a2f3a;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 244, 248, .94));
  box-shadow: 0 18px 42px rgba(117, 54, 78, .18);
  opacity: 0;
  transform: translate(-50%, 12px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(14px);
}

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

.toast i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff8a9b, #d9607a);
  box-shadow: 0 10px 20px rgba(217, 95, 120, .20);
}

.toast i .ui-icon {
  width: 18px;
  height: 18px;
}

.toast span {
  color: #4a2f3a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.toast.error i {
  background: linear-gradient(135deg, #ff7b7b, #c94f62);
}

.toast.success i {
  background: linear-gradient(135deg, #8edfd9, #3aaeb7);
}

.login-mask {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 198, 212, .34), transparent 36%),
    rgba(72, 39, 52, .34);
  backdrop-filter: blur(8px);
}

.login-dialog {
  width: min(92vw, 392px);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(255, 216, 226, .84);
  background:
    linear-gradient(180deg, rgba(255, 252, 253, .98), rgba(255, 245, 248, .96));
  box-shadow: 0 24px 64px rgba(97, 51, 67, .24);
}

.login-dialog .popup-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 3;
  color: #cf5e76;
  background: #fff0f5;
}

.login-dialog .popup-close .ui-icon {
  transform: rotate(45deg);
}

.login-prompt-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 6px 38px 14px 2px;
}

.login-prompt-head > i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #cf5e76;
  background: linear-gradient(135deg, #fff0f5, #e8fbfc);
  box-shadow: 0 12px 24px rgba(132, 69, 88, .12);
}

.login-prompt-head h2 {
  margin: 0 0 4px;
  color: #3b2630;
  font-size: 20px;
  letter-spacing: 0;
}

.login-prompt-head p {
  margin: 0;
  color: #9b7480;
  font-size: 13px;
  line-height: 1.5;
}

.login-dialog .auth-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-dialog .auth-hero {
  min-height: 112px;
  margin-bottom: 12px;
}

/* Navigation smoothness: avoid the double-flash feeling on route changes. */
.page {
  animation: softPageIn .12s ease-out both;
}

@keyframes softPageIn {
  from {
    opacity: .985;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mine relationship accordion */
.mine-screen .mine-relation-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mine-screen .mine-relation-actions .mine-relation-btn {
  box-shadow: 0 12px 26px rgba(198, 90, 114, .10);
}

.mine-screen .mine-relation-actions .mine-relation-btn.active {
  box-shadow: 0 16px 30px rgba(255, 111, 134, .25);
}

@media (max-width: 360px) {
  .mine-relation-btn {
    min-height: 78px;
    padding-inline: 4px;
  }

  .mine-relation-btn span {
    font-size: 11px;
  }
}

/* Clean front-end reset: remove the heavy tinted backgrounds, especially the top area. */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #2f3035;
  --muted: #7b818c;
  --line: #edf0f4;
  --primary: #d95f78;
  --shadow: 0 10px 26px rgba(42, 50, 66, .06);
  --soft-rose: #fff6f8;
  --fem-bg: #ffffff;
  --fem-paper: #ffffff;
  --fem-ink: #2f3035;
  --fem-muted: #7b818c;
  --fem-line: #edf0f4;
  --fem-shadow: 0 12px 30px rgba(42, 50, 66, .08);
  --fem-shadow-soft: 0 6px 18px rgba(42, 50, 66, .055);
}

html,
body {
  background: #ffffff !important;
}

.phone {
  color: var(--text);
  background: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .06);
}

.page {
  background: #ffffff;
}

.topbar,
.resource-hero,
.auth-hero {
  background: #ffffff !important;
}

.resource-hero {
  margin: 0 -18px 18px;
  padding: 18px 18px 20px;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.resource-top {
  margin-bottom: 16px;
}

.city-switch,
.hero-search,
.community-search,
.search input {
  border-color: var(--line);
  color: var(--text);
  background: #ffffff !important;
  box-shadow: none;
}

.hero-search:focus-within,
.community-search:focus-within,
.search input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(217, 95, 120, .36);
  box-shadow: 0 0 0 3px rgba(217, 95, 120, .08);
}

.guest-banner,
.profile-banner {
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .56)),
    var(--banner-image) center/cover no-repeat !important;
  box-shadow: 0 12px 30px rgba(42, 50, 66, .08);
}

.guest-banner::before,
.profile-banner::before,
.guest-banner::after,
.profile-banner::after {
  opacity: .28;
}

.guest-logo {
  color: var(--primary);
  background: rgba(255, 255, 255, .74);
}

.guest-cta,
.primary {
  color: #fff;
  background: #d95f78 !important;
  box-shadow: 0 10px 22px rgba(217, 95, 120, .18);
}

.resource,
.resource:nth-child(1),
.resource:nth-child(2),
.tool,
.mine-actions button,
.agent-shortcuts button,
.hot-strip,
.person-line,
.card-row,
.plain-card,
.detail-section,
.activity-row,
.auth-panel,
.group-brief-card,
.community-row,
.news-card,
.card-invite-panel,
.mine-card,
.mine-expand-panel,
.mine-inline-card {
  border-color: var(--line) !important;
  background: #ffffff !important;
  box-shadow: var(--fem-shadow-soft);
}

.resource::after {
  display: none;
}

.resource i,
.tool i,
.mine-relation-btn i,
.login-prompt-head > i,
.nav .active .ui-icon {
  color: var(--primary) !important;
  background: #fff6f8 !important;
  box-shadow: none !important;
}

.resource:nth-child(2n) i,
.tool:nth-child(2n) i {
  color: #2e9aa0 !important;
  background: #f0fbfc !important;
}

.resource:nth-child(3n) i,
.tool:nth-child(3n) i {
  color: #b7832e !important;
  background: #fff8e8 !important;
}

.section-head h2::before,
.nav .active::after {
  background: #d95f78 !important;
}

.tag,
.badge,
.pill-scroll .tag,
.ghost,
.soft {
  border-color: var(--line);
  color: var(--text);
  background: #ffffff !important;
}

.community-tabs .active,
.nav .active,
.section-head button {
  color: var(--primary) !important;
}

.nav {
  width: min(100vw, 430px);
  height: 68px;
  bottom: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff !important;
  box-shadow: 0 -8px 24px rgba(42, 50, 66, .06);
  backdrop-filter: none;
}

.nav button {
  color: #8c929d;
}

.auth-panel.refined,
.auth-panel,
.login-dialog {
  background: #ffffff !important;
}

.auth-hero {
  min-height: auto;
  padding: 2px 0 6px;
  color: var(--text);
  border: 0;
  box-shadow: none;
}

.auth-hero h2,
.auth-kicker {
  color: var(--text);
}

.auth-hero .auth-copy,
.auth-copy,
.auth-note {
  color: var(--muted);
}

.mine-relation-btn,
.mine-relation-btn.active {
  background: #ffffff !important;
}

.mine-relation-btn.active {
  color: var(--primary) !important;
  border-color: rgba(217, 95, 120, .28) !important;
  box-shadow: 0 8px 20px rgba(217, 95, 120, .12);
}

.mine-relation-btn.active i,
.mine-relation-btn.active strong {
  color: var(--primary) !important;
}

.support-section {
  margin-bottom: 18px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.support-link {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  box-shadow: var(--fem-shadow-soft);
}

.support-link i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--primary);
  background: #fff6f8;
}

.support-link span {
  font-size: 14px;
  font-weight: 800;
}

.site-page .topbar {
  margin-bottom: 10px;
}

.site-page-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.site-page-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.site-page-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.22;
}

.contact-lines {
  display: grid;
  gap: 8px;
}

.contact-lines a,
.contact-lines div {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
}

.contact-lines .ui-icon {
  color: var(--primary);
}

.site-page-footer {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.security-tips {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(217, 95, 120, .18);
  border-radius: 8px;
  background: #fff8fa;
}

.security-tips strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}

.security-tips p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.text-link {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent !important;
  box-shadow: none;
  font-weight: 800;
}

.mine-screen .mine-stats,
.mine-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.mine-screen .mine-stats .stat,
.mine-stats .stat {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 8px 2px !important;
}

.mine-stats button.stat,
.mine-stat-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.mine-stat-btn.active {
  background: linear-gradient(135deg, rgba(255, 244, 247, .96), rgba(255, 255, 255, .98)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 112, 138, .26), 0 10px 24px rgba(188, 82, 108, .12);
}

.mine-screen .mine-stats .stat strong,
.mine-stats .stat strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.mine-screen .mine-stats .stat span,
.mine-stats .stat span {
  font-size: 11px;
  white-space: nowrap;
}

.point-log-card {
  cursor: default;
}

.point-log-card > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #e85c78;
  background: rgba(255, 238, 244, .92);
}

.point-log-card.negative > i {
  color: #7b6ee6;
  background: rgba(238, 237, 255, .95);
}

.point-log-card .title {
  justify-content: space-between;
}

.point-log-card .title strong {
  color: #e85c78;
}

.point-log-card.negative .title strong {
  color: #7b6ee6;
}

.sent-card-item,
.visitor-row:not(.locked) {
  cursor: pointer;
}

.visitor-row.locked {
  cursor: default;
  opacity: .74;
}

.permission-note {
  margin-top: 5px;
  color: #b78292;
  font-size: 11px;
}

.message-group {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.message-group .section-head {
  margin-bottom: 0;
}

.message-group .section-head span {
  display: inline-grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--primary);
  background: #fff6f8;
  font-size: 12px;
  font-weight: 900;
}

.message-group-desc {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.message-row.clickable {
  cursor: pointer;
}

.message-row.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 95, 120, .26) !important;
  box-shadow: 0 12px 26px rgba(42, 50, 66, .08);
}

.message-link {
  margin-top: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

/* Editorial front-end polish: reduce the boxed feeling and let content breathe. */
:root {
  --mbq-ink: #302a2e;
  --mbq-muted: #8b8086;
  --mbq-faint: #f4eef1;
  --mbq-blush: #f36f86;
  --mbq-coral: #ff8f8d;
  --mbq-aqua: #80d9df;
  --mbq-gold: #f6c763;
  --mbq-lilac: #b8a3f4;
  --mbq-soft-shadow: 0 10px 28px rgba(64, 45, 54, .075);
}

html,
body,
.phone,
.page {
  background: #fff !important;
}

.phone {
  box-shadow: 0 0 0 1px rgba(36, 31, 35, .045);
}

.page {
  padding-inline: 20px;
}

.topbar {
  margin-bottom: 4px;
}

.topbar h1,
.brand-title,
.section-head h2 {
  color: var(--mbq-ink);
  letter-spacing: 0;
}

.section {
  margin-top: 30px;
}

.section-head {
  align-items: end;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 20px;
  line-height: 1.15;
}

.section-head h2::before {
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--mbq-coral), var(--mbq-blush)) !important;
}

.section-head button {
  color: var(--mbq-muted) !important;
  font-size: 12px;
}

.resource-hero {
  margin-inline: -20px;
  padding: 18px 20px 12px;
  border: 0;
}

.resource-top {
  margin-bottom: 18px;
}

.city-switch,
.hero-search,
.community-search,
.search input,
.field input,
.field textarea,
.field select {
  border: 0 !important;
  background: #f7f4f5 !important;
  box-shadow: none !important;
}

.city-switch {
  color: var(--mbq-ink);
}

.hero-search,
.community-search {
  border-radius: 8px;
}

.profile-banner,
.guest-banner {
  min-height: 210px;
  border: 0 !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 219, 228, .58) 46%, rgba(220, 249, 251, .62)),
    var(--banner-image) center/cover no-repeat !important;
  box-shadow: 0 16px 38px rgba(95, 52, 68, .12);
}

.guest-copy h2,
.profile-lines h2 {
  color: #392630;
  font-size: 25px;
}

.guest-subtitle,
.guest-bullets p,
.profile-lines p {
  color: #6d5e65;
}

.guest-cta {
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(219, 94, 118, .22);
}

.hot-strip {
  min-height: 42px;
  margin: 0 0 8px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none;
}

.hot-strip strong {
  width: auto;
  min-width: 82px;
  color: var(--mbq-blush);
}

.hot-strip span {
  color: var(--mbq-muted);
}

.resource-grid.modern,
.resource-grid {
  gap: 12px;
  margin: 18px 0 28px;
}

.resource {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none;
}

.resource:nth-child(1),
.resource:nth-child(2) {
  min-height: 136px;
  border: 0 !important;
  background:
    linear-gradient(145deg, rgba(255, 229, 236, .96), rgba(255,255,255,.88) 58%, rgba(230, 249, 251, .84)) !important;
  box-shadow: var(--mbq-soft-shadow);
}

.resource:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(227, 249, 250, .96), rgba(255,255,255,.88) 58%, rgba(255, 244, 214, .84)) !important;
}

.resource:not(:nth-child(1)):not(:nth-child(2)) {
  min-height: 72px;
  padding: 6px 2px;
}

.resource i,
.tool i {
  border: 0;
  border-radius: 999px;
  background: #fff3f6 !important;
}

.resource:not(:nth-child(1)):not(:nth-child(2)) i {
  width: 42px;
  height: 42px;
}

.resource span {
  color: var(--mbq-ink);
}

.people-list,
.community-list,
.list {
  gap: 0;
}

.person-line,
.card-row,
.community-row,
.mine-inline-card,
.visitor-row {
  border: 0 !important;
  border-bottom: 1px solid var(--mbq-faint) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.person-line,
.card-row {
  padding: 15px 2px;
}

.person-line .avatar,
.card-row .avatar,
.avatar {
  border-radius: 8px;
  box-shadow: none;
}

.person-line .title,
.card-row .title,
.plain-card .title,
.activity-row .title,
.community-row h3 {
  color: var(--mbq-ink);
  font-weight: 900;
}

.person-line .title span {
  color: var(--mbq-blush);
  background: transparent;
}

.person-line p,
.meta,
.desc,
.activity-row .meta,
.community-row p {
  color: var(--mbq-muted);
}

.activity-row,
.plain-card,
.detail-section,
.auth-panel,
.profile-card,
.card-invite-panel,
.group-brief-card,
.news-card,
.message-row {
  border: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.activity-row {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--mbq-faint) !important;
}

.activity-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 4px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--mbq-blush), var(--mbq-gold));
}

.activity-row img,
.activity-row .cover {
  min-height: 148px;
  border-radius: 8px;
}

.activity-body {
  padding: 14px 2px 18px 14px;
}

.tag,
.badge,
.pill-scroll .tag {
  border: 0 !important;
  color: #a45768;
  background: #f8f2f4 !important;
}

.community-screen {
  padding-top: 22px;
}

.community-tabs {
  margin-bottom: 18px;
}

.community-tabs button {
  font-size: 18px;
  font-weight: 900;
}

.community-tabs .active {
  box-shadow: inset 0 -3px 0 var(--mbq-blush);
}

.pill-scroll {
  margin-inline: -20px;
  padding-inline: 20px;
}

.community-row {
  min-height: 98px;
  padding: 16px 0;
}

.avatar-mosaic {
  border-radius: 8px;
  background: linear-gradient(135deg, #fff3f6, #eefbfc);
}

.mine-card {
  padding: 18px;
  border: 0 !important;
  background:
    linear-gradient(135deg, #fff5f8, #fff 56%, #effcfc) !important;
  box-shadow: var(--mbq-soft-shadow) !important;
}

.mine-card .card-row.compact {
  border-bottom: 0 !important;
  padding: 0;
}

.mine-actions button,
.mine-stats .stat,
.agent-shortcuts button,
.tool,
.support-link {
  border: 0 !important;
  background: #faf7f8 !important;
  box-shadow: none !important;
}

.mine-actions button,
.agent-shortcuts button {
  color: var(--mbq-ink);
}

.mine-stats .stat {
  background: rgba(255,255,255,.72) !important;
}

.mine-stats .stat strong {
  color: var(--mbq-blush) !important;
}

.tool-grid {
  gap: 12px;
}

.tool {
  min-height: 88px;
}

.tool span {
  color: var(--mbq-ink);
}

.business-card,
.wall-card,
.group-summary-card,
.group-info-panel {
  border: 0 !important;
  box-shadow: var(--mbq-soft-shadow) !important;
}

.detail-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--mbq-faint) !important;
}

.detail-section h3,
.activity-info-panel h3 {
  color: var(--mbq-ink);
}

.kv div,
.activity-kv div {
  border: 0 !important;
  background: #faf7f8 !important;
}

.nav {
  height: 70px;
  border-top: 1px solid #f0ebee;
  box-shadow: 0 -10px 26px rgba(42, 32, 39, .045);
}

.nav .active .ui-icon {
  border-radius: 999px;
}

.float-create {
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(217, 95, 120, .20);
}

@media (max-width: 360px) {
  .page {
    padding-inline: 16px;
  }

  .resource-hero,
  .pill-scroll {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .guest-copy {
    width: min(68%, 230px);
  }
}

/* Home density pass: show real content sooner, keep the visual rhythm lighter. */
.home-screen {
  padding-top: 0;
}

.profile-banner,
.guest-banner {
  min-height: 168px;
  padding: 18px;
}

.guest-copy h2,
.profile-lines h2 {
  margin-top: 12px;
  font-size: 22px;
}

.guest-subtitle,
.guest-bullets p {
  font-size: 12px;
}

.guest-cta {
  right: 18px;
  top: 58px;
  width: 78px;
  height: 78px;
  font-size: 18px;
}

.hot-strip {
  min-height: 34px;
}

.resource-grid.modern,
.resource-grid {
  gap: 10px;
  margin: 12px 0 20px;
}

.resource:nth-child(1),
.resource:nth-child(2) {
  min-height: 106px;
  padding: 14px;
}

.resource:nth-child(1) i,
.resource:nth-child(2) i {
  width: 48px;
  height: 48px;
}

.resource:nth-child(1) i .ui-icon,
.resource:nth-child(2) i .ui-icon,
.resource:nth-child(1) i.custom-resource-icon img,
.resource:nth-child(2) i.custom-resource-icon img,
.resource:nth-child(1) i.custom-resource-icon svg,
.resource:nth-child(2) i.custom-resource-icon svg {
  width: 24px;
  height: 24px;
}

.resource:not(:nth-child(1)):not(:nth-child(2)) {
  min-height: 62px;
}

.resource:not(:nth-child(1)):not(:nth-child(2)) i {
  width: 34px;
  height: 34px;
}

.resource span {
  margin-top: 4px;
}

.resource:nth-child(1) span,
.resource:nth-child(2) span {
  font-size: 15px;
}

.section {
  margin-top: 22px;
}

.person-line,
.card-row {
  min-height: 72px;
  padding-block: 12px;
}

.person-line .avatar,
.card-row .avatar {
  width: 50px;
  height: 50px;
}

@media (max-width: 360px) {
  .profile-banner,
  .guest-banner {
    min-height: 158px;
  }

  .guest-cta {
    width: 72px;
    height: 72px;
    font-size: 17px;
  }

  .resource:nth-child(1),
  .resource:nth-child(2) {
    min-height: 98px;
  }
}

/* User feedback pass: cleaner banner, balanced resource entrances, richer people rows. */
.guest-banner,
.profile-banner {
  border: 0 !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .48) 42%, rgba(255, 255, 255, .10) 100%),
    var(--banner-image, url("/assets/home-banner-cat.jpg")) center 42%/cover no-repeat !important;
}

.guest-banner::before,
.profile-banner::before {
  opacity: .16;
}

.guest-banner::after,
.profile-banner::after {
  opacity: .20;
}

.resource-grid.modern,
.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 14px;
}

.resource,
.resource:nth-child(1),
.resource:nth-child(2),
.resource:not(:nth-child(1)):not(:nth-child(2)) {
  min-height: var(--resource-height, 92px) !important;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 12px;
  padding: 14px !important;
  text-align: left;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 246, 249, .96), rgba(255,255,255,.92) 58%, rgba(239, 252, 252, .82)) !important;
  box-shadow: 0 10px 26px rgba(64, 45, 54, .055) !important;
}

.resource:nth-child(2n) {
  background:
    linear-gradient(145deg, rgba(240, 252, 253, .96), rgba(255,255,255,.92) 58%, rgba(255, 247, 225, .82)) !important;
}

.resource:nth-child(3n) {
  background:
    linear-gradient(145deg, rgba(255, 248, 229, .96), rgba(255,255,255,.92) 58%, rgba(255, 241, 246, .82)) !important;
}

.resource i,
.resource:nth-child(1) i,
.resource:nth-child(2) i,
.resource:not(:nth-child(1)):not(:nth-child(2)) i {
  width: 42px !important;
  height: 42px !important;
}

.resource i .ui-icon,
.resource:nth-child(1) i .ui-icon,
.resource:nth-child(2) i .ui-icon,
.resource:not(:nth-child(1)):not(:nth-child(2)) i .ui-icon,
.resource i.custom-resource-icon img,
.resource i.custom-resource-icon svg {
  width: 21px !important;
  height: 21px !important;
}

.resource span,
.resource:nth-child(1) span,
.resource:nth-child(2) span {
  margin: 0;
  color: var(--mbq-ink);
  font-size: 15px;
  line-height: 1.25;
  text-align: left;
}

.person-line {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.person-line .title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.person-line .title span {
  flex: none;
  max-width: 112px;
  padding: 2px 7px;
  border: 1px solid rgba(243, 111, 134, .24);
  border-radius: 999px;
  color: var(--mbq-blush);
  background: #fff7f9;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-company {
  margin: 3px 0 0;
  color: #6f6970 !important;
  font-size: 13px;
  line-height: 1.35;
}

.person-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.person-extra em {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #8d7b84;
  background: #f8f5f6;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.person-extra .ui-icon {
  width: 12px;
  height: 12px;
  color: var(--mbq-blush);
}

@media (max-width: 360px) {
  .resource,
  .resource:nth-child(1),
  .resource:nth-child(2),
  .resource:not(:nth-child(1)):not(:nth-child(2)) {
    min-height: var(--resource-height, 84px) !important;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    padding: 12px !important;
  }

  .resource i,
  .resource:nth-child(1) i,
  .resource:nth-child(2) i,
  .resource:not(:nth-child(1)):not(:nth-child(2)) i {
    width: 36px !important;
    height: 36px !important;
  }

  .resource span,
  .resource:nth-child(1) span,
  .resource:nth-child(2) span {
    font-size: 14px;
  }
}

/* Product UI skin: refined ambient surfaces, unified rhythm, light/dark ready. */
:root {
  color-scheme: light;
  --bg: #f6f3f4;
  --panel: #fffdfb;
  --text: #1f1b22;
  --muted: #7d737b;
  --line: rgba(39, 31, 38, .09);
  --primary: #8f64f7;
  --green: #77d4cb;
  --orange: #f6b65f;
  --rose: #ee7f93;
  --violet: #b88cff;
  --soft-rose: #fff1f4;
  --soft-sage: #edf9f7;
  --soft-gold: #fff6e8;
  --shadow: 0 18px 48px rgba(35, 28, 36, .08), 0 2px 8px rgba(35, 28, 36, .04);
  --mbq-ink: #1f1b22;
  --mbq-blush: #ee7f93;
  --ds-bg: #f6f3f4;
  --ds-surface: rgba(255, 253, 251, .86);
  --ds-surface-solid: #fffdfb;
  --ds-surface-soft: rgba(255, 255, 255, .58);
  --ds-ink: #1f1b22;
  --ds-muted: #7d737b;
  --ds-subtle: #a69ca5;
  --ds-line: rgba(39, 31, 38, .09);
  --ds-accent: #8f64f7;
  --ds-accent-2: #ee7f93;
  --ds-mint: #77d4cb;
  --ds-radius-sm: 12px;
  --ds-radius-md: 14px;
  --ds-radius-lg: 16px;
  --ds-radius-xl: 22px;
  --ds-shadow-sm: 0 8px 22px rgba(35, 28, 36, .06);
  --ds-shadow-md: 0 18px 48px rgba(35, 28, 36, .08), 0 2px 8px rgba(35, 28, 36, .04);
  --ds-shadow-float: 0 24px 70px rgba(35, 28, 36, .15);
  --ds-focus: 0 0 0 4px rgba(143, 100, 247, .16);
}

html,
body {
  color: var(--ds-ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(244, 239, 242, .44) 38%, rgba(237, 246, 244, .50) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .46) 0 1px, transparent 1px 48px),
    linear-gradient(0deg, rgba(255, 255, 255, .34) 0 1px, transparent 1px 48px),
    var(--ds-bg) !important;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100vh;
}

button,
input,
textarea,
select {
  letter-spacing: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--ds-focus) !important;
}

.phone {
  background:
    linear-gradient(180deg, rgba(255, 253, 251, .88) 0, rgba(246, 243, 244, .92) 260px, rgba(246, 243, 244, .98) 100%),
    var(--ds-bg) !important;
  box-shadow: 0 28px 80px rgba(35, 28, 36, .12), 0 0 0 1px rgba(255, 255, 255, .72) !important;
  padding-bottom: 86px;
}

.page {
  padding: 18px 18px 24px;
  animation: pageIn .26s cubic-bezier(.2, .7, .2, 1) both;
}

.home-screen {
  padding-top: 0;
}

.topbar {
  min-height: 52px;
}

.topbar h1,
.section-head h2 {
  color: var(--ds-ink);
  font-weight: 850;
}

.topbar h1 {
  font-size: 19px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: var(--ds-radius-sm);
  color: var(--ds-ink);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--ds-shadow-sm);
  backdrop-filter: blur(18px);
}

.search input,
.field input,
.field textarea,
.field select,
.hero-search,
.community-search {
  min-height: 46px;
  border: 1px solid rgba(39, 31, 38, .075) !important;
  border-radius: var(--ds-radius-md) !important;
  color: var(--ds-ink);
  background: rgba(255, 255, 255, .76) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 8px 22px rgba(35, 28, 36, .035);
  backdrop-filter: blur(16px);
}

.search input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(143, 100, 247, .34) !important;
  box-shadow: var(--ds-focus), inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

.search button,
.primary,
.ghost,
.danger,
.soft,
.wechat-button,
.full-button,
a.primary {
  min-height: 46px;
  border-radius: var(--ds-radius-md);
  font-weight: 780;
  transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.primary,
a.primary {
  color: #fff;
  background: linear-gradient(135deg, #7e5cf4, #b77cff 52%, #ef8795) !important;
  box-shadow: 0 14px 32px rgba(143, 100, 247, .22);
}

.ghost {
  color: var(--ds-accent);
  background: rgba(143, 100, 247, .09) !important;
  border: 1px solid rgba(143, 100, 247, .12);
}

.soft {
  color: var(--ds-ink);
  background: rgba(255, 255, 255, .72) !important;
  border: 1px solid rgba(39, 31, 38, .08);
  box-shadow: 0 8px 22px rgba(35, 28, 36, .04);
}

.danger {
  background: linear-gradient(135deg, #e56464, #d74d68) !important;
}

.resource-hero {
  position: relative;
  isolation: isolate;
  margin: 0 -18px 18px;
  padding: 18px 18px 16px;
  color: var(--ds-ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 251, .82), rgba(247, 243, 246, .50) 62%, rgba(247, 243, 246, 0)),
    linear-gradient(115deg, rgba(238, 127, 147, .08), rgba(143, 100, 247, .075) 54%, rgba(119, 212, 203, .08)) !important;
}

.resource-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .38) 0 1px, transparent 1px 42px),
    linear-gradient(0deg, rgba(255, 255, 255, .28) 0 1px, transparent 1px 42px);
  mask-image: linear-gradient(180deg, #000, transparent 92%);
  pointer-events: none;
}

.resource-top {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.city-switch {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(39, 31, 38, .075);
  border-radius: var(--ds-radius-md);
  color: var(--ds-ink);
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 8px 22px rgba(35, 28, 36, .04);
  backdrop-filter: blur(16px);
}

.city-switch .ui-icon {
  color: var(--ds-accent);
}

.guest-banner,
.profile-banner {
  min-height: 188px;
  border: 1px solid rgba(255, 255, 255, .60) !important;
  border-radius: var(--ds-radius-lg) !important;
  color: var(--ds-ink) !important;
  box-shadow: var(--ds-shadow-md) !important;
  background:
    linear-gradient(92deg, rgba(255, 253, 251, .82) 0%, rgba(255, 253, 251, .56) 46%, rgba(255, 253, 251, .12) 100%),
    linear-gradient(135deg, rgba(238, 127, 147, .16), rgba(143, 100, 247, .10) 56%, rgba(119, 212, 203, .14)),
    var(--banner-image, url("/assets/home-banner-cat.jpg")) center 42% / cover no-repeat !important;
}

.guest-banner::before,
.profile-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .34 !important;
  background:
    linear-gradient(135deg, transparent 0 35%, rgba(255, 255, 255, .40) 35% 35.5%, transparent 35.5% 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .34) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.guest-banner::after,
.profile-banner::after {
  opacity: .10 !important;
}

.guest-copy,
.guest-bullets,
.guest-cta,
.profile-lines,
.profile-card-tools,
.profile-banner .profile-avatar {
  position: relative;
  z-index: 1;
}

.guest-logo {
  color: var(--ds-accent-2);
  font-weight: 900;
}

.guest-copy h2,
.profile-lines h2 {
  color: var(--ds-ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.guest-copy p,
.guest-bullets p,
.profile-lines p {
  color: rgba(31, 27, 34, .76) !important;
  line-height: 1.5;
}

.profile-banner .profile-avatar {
  width: 70px;
  height: 70px;
  border: 3px solid rgba(255, 255, 255, .82);
  box-shadow: 0 14px 32px rgba(35, 28, 36, .14);
}

.hot-strip {
  min-height: 44px;
  margin: 14px 0 16px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--ds-radius-md);
  background: rgba(255, 255, 255, .70) !important;
  box-shadow: 0 10px 24px rgba(35, 28, 36, .045);
  backdrop-filter: blur(18px);
}

.hot-strip strong {
  color: var(--ds-accent);
}

.hot-strip span {
  color: var(--ds-muted);
}

.resource-grid.modern,
.resource-grid {
  gap: 12px !important;
  margin: 14px 0 18px !important;
}

.resource,
.resource:nth-child(1),
.resource:nth-child(2),
.resource:not(:nth-child(1)):not(:nth-child(2)),
.tool {
  grid-column: auto !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  align-content: space-between !important;
  justify-items: start !important;
  align-items: start !important;
  gap: 8px !important;
  height: var(--resource-height, 96px) !important;
  min-height: var(--resource-height, 96px) !important;
  padding: 12px !important;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--ds-radius-lg) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(255, 247, 250, .62) 55%, rgba(239, 249, 247, .56)) !important;
  box-shadow: var(--ds-shadow-sm) !important;
  overflow: hidden;
}

.resource:nth-child(2n),
.tool:nth-child(2n) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(239, 249, 247, .60) 55%, rgba(255, 246, 232, .58)) !important;
}

.resource:nth-child(3n),
.tool:nth-child(3n) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(248, 243, 255, .64) 55%, rgba(255, 241, 244, .56)) !important;
}

.resource::before,
.tool::before,
.plain-card::before,
.profile-card::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .42), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 16px);
}

.resource i,
.resource:nth-child(1) i,
.resource:nth-child(2) i,
.resource:not(:nth-child(1)):not(:nth-child(2)) i,
.tool i {
  width: 38px !important;
  height: 38px !important;
  border-radius: var(--ds-radius-md) !important;
  color: var(--ds-accent);
  background: rgba(255, 255, 255, .70) !important;
  box-shadow: inset 0 0 0 1px rgba(143, 100, 247, .11), 0 8px 18px rgba(35, 28, 36, .055);
}

.resource i .ui-icon,
.resource:nth-child(1) i .ui-icon,
.resource:nth-child(2) i .ui-icon,
.resource:not(:nth-child(1)):not(:nth-child(2)) i .ui-icon,
.tool i .ui-icon,
.resource i.custom-resource-icon img,
.resource i.custom-resource-icon svg {
  width: 19px !important;
  height: 19px !important;
}

.resource span,
.resource:nth-child(1) span,
.resource:nth-child(2) span,
.tool span {
  align-self: end;
  text-align: left !important;
  color: var(--ds-ink);
  font-size: 15px;
  font-weight: 830;
}

.section {
  margin-top: 22px;
}

.section-head {
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 18px;
  line-height: 1.25;
}

.section-head h2::before {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ds-accent-2), var(--ds-accent)) !important;
}

.section-head button,
.text-link {
  color: var(--ds-muted);
  font-weight: 760;
}

.section-head button:hover,
.text-link:hover {
  color: var(--ds-accent);
}

.people-list,
.list {
  gap: 0;
  border-radius: var(--ds-radius-lg);
  background: rgba(255, 255, 255, .54);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .64);
  overflow: hidden;
}

.person-line,
.community-row,
.home-screen .card-row {
  border: 0 !important;
  border-bottom: 1px solid rgba(39, 31, 38, .07) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.person-line:last-child,
.community-row:last-child,
.home-screen .card-row:last-child {
  border-bottom: 0 !important;
}

.person-line {
  padding: 14px 2px 14px 0;
}

.person-line .avatar,
.card-row .avatar,
.avatar {
  border-radius: var(--ds-radius-sm) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
}

.person-line .title,
.card-row .title,
.plain-card .title {
  color: var(--ds-ink);
  font-weight: 850;
}

.person-company,
.person-line p,
.community-row p,
.meta,
.desc,
.small {
  color: var(--ds-muted) !important;
}

.person-line .title span,
.tag,
.person-extra em {
  border: 1px solid rgba(143, 100, 247, .10) !important;
  border-radius: 999px !important;
  color: var(--ds-accent) !important;
  background: rgba(143, 100, 247, .07) !important;
  font-weight: 760;
}

.card-row,
.activity-row,
.plain-card,
.profile-card,
.detail-section,
.activity-info-panel,
.mine-card,
.auth-panel,
.notice-card,
.news-card,
.card-invite-panel {
  border: 1px solid rgba(255, 255, 255, .70) !important;
  border-radius: var(--ds-radius-lg) !important;
  background: rgba(255, 255, 255, .74) !important;
  box-shadow: var(--ds-shadow-sm) !important;
  backdrop-filter: blur(18px);
}

.card-row:hover,
.activity-row:hover,
.plain-card:hover,
.profile-card:hover,
.detail-section:hover,
.resource:hover,
.tool:hover,
.support-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--ds-shadow-md) !important;
}

.activity-row img,
.cover,
.mini-cover {
  border-radius: var(--ds-radius-md);
}

.activity-body {
  padding: 14px;
}

.community-tabs {
  gap: 8px;
  padding: 4px;
  border-radius: var(--ds-radius-lg);
  background: rgba(255, 255, 255, .56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .68);
}

.community-tabs button {
  flex: 1;
  min-height: 42px;
  border-radius: var(--ds-radius-md);
  color: var(--ds-muted);
}

.community-tabs .active {
  color: var(--ds-ink);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 24px rgba(35, 28, 36, .06);
}

.pill-scroll {
  gap: 8px;
  padding: 12px 1px 6px;
}

.pill-scroll .tag {
  min-width: 76px;
  padding: 8px 12px;
  color: var(--ds-muted) !important;
  background: rgba(255, 255, 255, .62) !important;
}

.float-create,
.group-float {
  right: calc((100vw - min(100vw, 430px)) / 2 + 18px);
  bottom: 106px;
  width: auto;
  min-width: 66px;
  height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7e5cf4, #ef8795) !important;
  box-shadow: 0 18px 42px rgba(143, 100, 247, .24);
}

.mine-stats,
.stats {
  gap: 10px;
}

.mine-stats .stat,
.stat {
  border-radius: var(--ds-radius-lg) !important;
  background: rgba(255, 255, 255, .70) !important;
  box-shadow: var(--ds-shadow-sm) !important;
}

.mine-actions button,
.agent-shortcuts button,
.support-link {
  min-height: 48px;
  border-radius: var(--ds-radius-md) !important;
  background: rgba(255, 255, 255, .72) !important;
  border: 1px solid rgba(255, 255, 255, .70) !important;
  box-shadow: var(--ds-shadow-sm) !important;
}

.login-tabs {
  border: 1px solid rgba(39, 31, 38, .075);
  border-radius: var(--ds-radius-lg);
  background: rgba(255, 255, 255, .56);
}

.login-tabs button {
  border-radius: var(--ds-radius-md);
}

.login-tabs button.active {
  color: var(--ds-ink);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 20px rgba(35, 28, 36, .06);
}

.auth-panel.refined,
.login-dialog .auth-panel {
  border-radius: var(--ds-radius-xl) !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: var(--ds-shadow-float) !important;
}

.auth-hero {
  border-radius: var(--ds-radius-lg);
  background:
    linear-gradient(135deg, rgba(31, 27, 34, .68), rgba(143, 100, 247, .26)),
    url("/assets/login-visual.svg") center / cover no-repeat !important;
}

.toast {
  border-radius: var(--ds-radius-lg);
  background: rgba(31, 27, 34, .88) !important;
  color: #fff;
  box-shadow: var(--ds-shadow-float);
  backdrop-filter: blur(18px);
}

.nav {
  left: 50%;
  bottom: 10px;
  width: min(calc(100vw - 32px), 392px);
  height: 64px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: rgba(27, 24, 30, .92);
  box-shadow: 0 24px 60px rgba(35, 28, 36, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(22px);
}

.nav button {
  border-radius: 16px;
  color: rgba(255, 255, 255, .58);
  font-weight: 720;
}

.nav .active {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.nav .active .ui-icon {
  color: #fff;
  filter: drop-shadow(0 4px 10px rgba(183, 124, 255, .34));
}

@media (hover: hover) {
  button:hover,
  .primary:hover,
  .ghost:hover,
  .soft:hover,
  .wechat-button:hover,
  .support-link:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 360px) {
  .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .resource-hero {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .guest-banner,
  .profile-banner {
    min-height: 168px;
  }

  .resource,
  .resource:nth-child(1),
  .resource:nth-child(2),
  .resource:not(:nth-child(1)):not(:nth-child(2)),
  .tool {
    height: var(--resource-height, 88px) !important;
    min-height: var(--resource-height, 88px) !important;
    padding: 12px !important;
  }

  .nav {
    width: min(calc(100vw - 20px), 398px);
  }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #131116;
    --panel: #1d1920;
    --text: #f4eef4;
    --muted: #b7acb6;
    --line: rgba(255, 255, 255, .10);
    --primary: #b895ff;
    --soft-rose: rgba(238, 127, 147, .14);
    --soft-sage: rgba(119, 212, 203, .12);
    --soft-gold: rgba(246, 182, 95, .12);
    --shadow: 0 18px 48px rgba(0, 0, 0, .34);
    --mbq-ink: #f4eef4;
    --mbq-blush: #f29aac;
    --ds-bg: #131116;
    --ds-surface: rgba(29, 25, 32, .78);
    --ds-surface-solid: #1d1920;
    --ds-surface-soft: rgba(255, 255, 255, .07);
    --ds-ink: #f4eef4;
    --ds-muted: #b7acb6;
    --ds-subtle: #8c818b;
    --ds-line: rgba(255, 255, 255, .10);
    --ds-accent: #b895ff;
    --ds-accent-2: #f29aac;
    --ds-shadow-sm: 0 10px 26px rgba(0, 0, 0, .24);
    --ds-shadow-md: 0 20px 52px rgba(0, 0, 0, .34);
    --ds-shadow-float: 0 28px 76px rgba(0, 0, 0, .48);
    --ds-focus: 0 0 0 4px rgba(184, 149, 255, .18);
  }

  html,
  body {
    background:
      linear-gradient(145deg, rgba(33, 29, 38, .84), rgba(19, 17, 22, .96) 44%, rgba(22, 37, 36, .64)),
      linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 48px),
      linear-gradient(0deg, rgba(255, 255, 255, .026) 0 1px, transparent 1px 48px),
      var(--ds-bg) !important;
  }

  .phone {
    background:
      linear-gradient(180deg, rgba(31, 27, 34, .92), rgba(19, 17, 22, .98) 280px),
      var(--ds-bg) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .40), 0 0 0 1px rgba(255, 255, 255, .06) !important;
  }

  .resource-hero {
    background:
      linear-gradient(180deg, rgba(31, 27, 34, .88), rgba(19, 17, 22, .40) 62%, rgba(19, 17, 22, 0)),
      linear-gradient(115deg, rgba(238, 127, 147, .10), rgba(143, 100, 247, .12) 54%, rgba(119, 212, 203, .10)) !important;
  }

  .city-switch,
  .hero-search,
  .community-search,
  .search input,
  .field input,
  .field textarea,
  .field select,
  .card-row,
  .activity-row,
  .plain-card,
  .profile-card,
  .detail-section,
  .activity-info-panel,
  .mine-card,
  .auth-panel,
  .notice-card,
  .news-card,
  .card-invite-panel,
  .hot-strip,
  .people-list,
  .list,
  .resource,
  .tool,
  .mine-actions button,
  .agent-shortcuts button,
  .support-link,
  .stat {
    border-color: rgba(255, 255, 255, .09) !important;
    background: rgba(29, 25, 32, .74) !important;
    color: var(--ds-ink);
  }

  .guest-banner,
  .profile-banner {
    border-color: rgba(255, 255, 255, .10) !important;
    color: var(--ds-ink) !important;
    background:
      linear-gradient(92deg, rgba(29, 25, 32, .86) 0%, rgba(29, 25, 32, .62) 48%, rgba(29, 25, 32, .24) 100%),
      linear-gradient(135deg, rgba(238, 127, 147, .12), rgba(143, 100, 247, .18) 56%, rgba(119, 212, 203, .10)),
      var(--banner-image, url("/assets/home-banner-cat.jpg")) center 42% / cover no-repeat !important;
  }

  .guest-copy h2,
  .profile-lines h2,
  .guest-copy p,
  .guest-bullets p,
  .profile-lines p {
    color: var(--ds-ink) !important;
  }

  .resource i,
  .tool i {
    background: rgba(255, 255, 255, .08) !important;
    color: var(--ds-accent);
  }

  .nav {
    background: rgba(8, 7, 10, .92);
    border-color: rgba(255, 255, 255, .08);
  }
}

/* Readability repair: keep the mobile web app light and high-contrast in WeChat. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #252128;
  --muted: #6f6872;
  --line: #ebe6ea;
  --primary: #d85d76;
  --green: #2aa6ad;
  --orange: #c98a22;
  --rose: #d85d76;
  --violet: #7b61e8;
  --soft-rose: #fff3f6;
  --soft-sage: #eefafa;
  --soft-gold: #fff7e8;
  --shadow: 0 10px 26px rgba(41, 34, 42, .08);
  --mbq-ink: #252128;
  --mbq-muted: #6f6872;
  --mbq-blush: #d85d76;
  --ds-bg: #ffffff;
  --ds-surface: #ffffff;
  --ds-surface-solid: #ffffff;
  --ds-surface-soft: #f8f5f7;
  --ds-ink: #252128;
  --ds-muted: #6f6872;
  --ds-subtle: #96909a;
  --ds-line: #ebe6ea;
  --ds-accent: #7b61e8;
  --ds-accent-2: #d85d76;
  --ds-mint: #2aa6ad;
  --ds-shadow-sm: 0 8px 20px rgba(41, 34, 42, .065);
  --ds-shadow-md: 0 14px 34px rgba(41, 34, 42, .10);
  --ds-shadow-float: 0 22px 54px rgba(41, 34, 42, .16);
  --ds-focus: 0 0 0 4px rgba(216, 93, 118, .15);
}

html,
body,
.phone {
  color: var(--text) !important;
  background: #ffffff !important;
}

.phone {
  box-shadow: 0 0 0 1px rgba(37, 33, 40, .08) !important;
}

.page,
.home-screen,
.community-screen,
.mine-screen,
.auth-page,
.site-page,
.edit-profile-page {
  background: #ffffff !important;
}

.resource-hero {
  background: #ffffff !important;
}

.resource-top {
  gap: 10px;
}

.city-switch,
.hero-search,
.community-search,
.search input,
.field input,
.field textarea,
.field select,
.profile-field input {
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  background: #f8f6f8 !important;
  box-shadow: none !important;
}

.hero-search input,
.community-search input,
.search input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: #9b949e !important;
}

.city-switch,
.hero-search .ui-icon,
.community-search .ui-icon {
  color: var(--text) !important;
}

.guest-banner,
.profile-banner {
  min-height: 190px;
  border: 1px solid #eee7eb !important;
  color: var(--text) !important;
  background:
    linear-gradient(92deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .48) 46%, rgba(255, 255, 255, .22) 100%),
    var(--banner-image, url("/assets/home-banner-cat.jpg")) center 42% / cover no-repeat !important;
  box-shadow: 0 12px 28px rgba(41, 34, 42, .08) !important;
}

.guest-banner::before,
.guest-banner::after,
.profile-banner::before,
.profile-banner::after {
  opacity: .18 !important;
}

.guest-copy h2,
.guest-copy p,
.guest-bullets p,
.profile-lines h2,
.profile-lines p {
  color: var(--text) !important;
  text-shadow: none !important;
}

.guest-copy h2 {
  font-size: 23px;
  line-height: 1.25;
}

.guest-bullets p::before {
  box-shadow: 0 0 0 4px rgba(216, 93, 118, .12);
}

.hot-strip {
  border: 1px solid #f0e9ed !important;
  color: var(--text) !important;
  background: #fff8fa !important;
  box-shadow: none !important;
}

.hot-strip strong {
  color: var(--primary) !important;
}

.hot-strip span {
  color: var(--muted) !important;
}

.resource-grid.modern,
.resource-grid {
  gap: 12px !important;
}

.resource,
.resource:nth-child(1),
.resource:nth-child(2),
.resource:not(:nth-child(1)):not(:nth-child(2)),
.tool,
.plain-card,
.profile-card,
.detail-section,
.activity-info-panel,
.mine-card,
.auth-panel,
.notice-card,
.news-card,
.card-invite-panel,
.mine-expand-panel,
.mine-inline-card {
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  background: #ffffff !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: none !important;
}

.resource {
  justify-content: space-between;
  padding: 14px !important;
}

.resource::before,
.resource::after,
.tool::before,
.plain-card::before,
.profile-card::before {
  opacity: 0 !important;
}

.resource i,
.resource:nth-child(1) i,
.resource:nth-child(2) i,
.resource:not(:nth-child(1)):not(:nth-child(2)) i,
.tool i,
.mine-relation-btn i,
.login-prompt-head > i,
.nav .active .ui-icon {
  color: var(--primary) !important;
  background: #fff2f5 !important;
  box-shadow: inset 0 0 0 1px rgba(216, 93, 118, .10) !important;
}

.resource:nth-child(2n) i,
.tool:nth-child(2n) i {
  color: var(--green) !important;
  background: #effafb !important;
}

.resource:nth-child(3n) i,
.tool:nth-child(3n) i {
  color: var(--orange) !important;
  background: #fff7e6 !important;
}

.resource span,
.resource:nth-child(1) span,
.resource:nth-child(2) span,
.tool span,
.section-head h2,
.person-line .title,
.card-row .title,
.activity-row .title,
.community-row h3,
.plain-card .title {
  color: var(--text) !important;
}

.people-list,
.community-list,
.list {
  border: 1px solid var(--line) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.person-line,
.card-row,
.home-screen .card-row,
.community-row,
.activity-row {
  border: 0 !important;
  border-bottom: 1px solid #f0ecef !important;
  color: var(--text) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.person-line:last-child,
.card-row:last-child,
.home-screen .card-row:last-child,
.community-row:last-child,
.activity-row:last-child {
  border-bottom: 0 !important;
}

.person-line p,
.person-company,
.activity-row .meta,
.community-row p,
.meta,
.desc,
.small,
.mine-inline-card .meta,
.mine-inline-card .desc {
  color: var(--muted) !important;
}

.person-line .title span,
.tag,
.person-extra em {
  border-color: rgba(216, 93, 118, .16) !important;
  color: var(--primary) !important;
  background: #fff4f7 !important;
}

.activity-body {
  color: var(--text) !important;
}

.community-tabs,
.login-tabs {
  border: 1px solid var(--line) !important;
  background: #f8f6f8 !important;
  box-shadow: none !important;
}

.community-tabs button,
.login-tabs button {
  color: var(--muted) !important;
  background: transparent !important;
}

.community-tabs .active,
.login-tabs button.active {
  color: var(--text) !important;
  background: #ffffff !important;
  box-shadow: 0 6px 16px rgba(41, 34, 42, .06) !important;
}

.primary,
.wechat-button,
.float-create,
.group-float {
  color: #ffffff !important;
  background: linear-gradient(135deg, #d85d76, #e9788d) !important;
  box-shadow: 0 10px 24px rgba(216, 93, 118, .22) !important;
}

.soft,
.ghost,
.mine-actions button,
.agent-shortcuts button,
.support-link,
.mine-stats .stat,
.stat {
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.mine-stats .stat strong {
  color: var(--primary) !important;
}

.mine-stats .stat span,
.stat span {
  color: var(--muted) !important;
}

.auth-panel.refined,
.login-dialog,
.login-dialog .auth-panel {
  color: var(--text) !important;
  background: #ffffff !important;
  box-shadow: 0 18px 44px rgba(41, 34, 42, .14) !important;
}

.auth-hero,
.login-dialog .auth-hero {
  color: var(--text) !important;
  background:
    linear-gradient(135deg, rgba(255, 246, 249, .96), rgba(245, 239, 255, .88)),
    url("/assets/login-visual.svg") right center / cover no-repeat !important;
}

.auth-hero h2,
.auth-hero .auth-copy,
.auth-copy,
.field label,
.auth-note {
  color: var(--text) !important;
}

.field label,
.auth-note {
  color: var(--muted) !important;
}

.toast {
  color: #ffffff !important;
  background: rgba(37, 33, 40, .92) !important;
}

.nav {
  border: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 14px 34px rgba(41, 34, 42, .12) !important;
}

.nav button {
  color: #7f7882 !important;
  background: transparent !important;
}

.nav .active {
  color: var(--primary) !important;
  background: #fff4f7 !important;
  box-shadow: none !important;
}

.nav .active .ui-icon {
  color: var(--primary) !important;
  filter: none !important;
}

/* Banner/list fit repair */
.guest-banner,
.profile-banner {
  aspect-ratio: 2.18 / 1 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 18px !important;
  overflow: hidden !important;
  background-position: center center !important;
}

.guest-copy {
  position: relative !important;
  z-index: 2 !important;
  max-width: 70% !important;
  padding-bottom: 46px !important;
}

.guest-logo {
  display: inline-flex !important;
  max-width: 116px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.guest-cta {
  position: absolute !important;
  left: 18px !important;
  bottom: 12px !important;
  z-index: 3 !important;
  width: auto !important;
  min-width: 74px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
}

.people-list {
  padding: 10px !important;
}

.people-list .person-line {
  padding: 12px 10px !important;
  border-radius: 12px !important;
  border-bottom: 0 !important;
}

.people-list .person-line + .person-line {
  margin-top: 6px !important;
  border-top: 1px solid #f0ecef !important;
}

@media (max-width: 360px) {
  .guest-banner,
  .profile-banner {
    aspect-ratio: 2 / 1 !important;
  }

  .guest-copy {
    max-width: 76% !important;
  }
}

/* Guest banner composition repair */
.home-screen .guest-banner {
  position: relative !important;
  display: block !important;
  aspect-ratio: 2.12 / 1 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 1px solid #eee4e8 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .46) 55%, rgba(255, 255, 255, .12) 100%),
    var(--banner-image, url("/assets/home-banner-cat.jpg")) center center / cover no-repeat !important;
  box-shadow: 0 14px 34px rgba(46, 35, 44, .08) !important;
}

.home-screen .guest-banner::before,
.home-screen .guest-banner::after {
  display: none !important;
}

.home-screen .guest-copy {
  position: absolute !important;
  z-index: 2 !important;
  inset: 18px 100px 16px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  max-width: none !important;
  padding: 0 !important;
}

.home-screen .guest-logo {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 122px !important;
  min-height: 31px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  color: #d85d76 !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: 0 8px 20px rgba(216, 93, 118, .10) !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.home-screen .guest-subtitle {
  color: #5c5259 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.home-screen .guest-copy h2 {
  margin: 18px 0 0 !important;
  color: #29222a !important;
  font-size: 21px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .65) !important;
}

.home-screen .guest-copy h2::before {
  display: none !important;
}

.home-screen .guest-bullets {
  display: grid !important;
  gap: 3px !important;
  margin-top: 4px !important;
}

.home-screen .guest-bullets p {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  color: #3f363e !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.home-screen .guest-bullets p::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: #ff8fa3 !important;
  box-shadow: 0 0 0 3px rgba(255, 143, 163, .18) !important;
}

.home-screen .guest-cta {
  position: absolute !important;
  left: auto !important;
  right: 22px !important;
  top: 50% !important;
  bottom: auto !important;
  z-index: 3 !important;
  display: grid !important;
  place-items: center !important;
  width: 70px !important;
  min-width: 70px !important;
  height: 70px !important;
  min-height: 70px !important;
  padding: 0 13px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #d85d76, #e46f89) !important;
  box-shadow: 0 14px 28px rgba(216, 93, 118, .30) !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: normal !important;
  transform: translateY(-50%) !important;
}

@media (max-width: 360px) {
  .home-screen .guest-copy {
    inset: 16px 88px 14px 16px !important;
  }

  .home-screen .guest-copy h2 {
    margin-top: 12px !important;
    font-size: 19px !important;
  }

  .home-screen .guest-cta {
    right: 16px !important;
    width: 62px !important;
    min-width: 62px !important;
    height: 62px !important;
    min-height: 62px !important;
    font-size: 15px !important;
  }
}

/* Meibao premium mobile interface refresh */
:root {
  --mb-bg: #fbf8f7;
  --mb-canvas: #fffdfc;
  --mb-panel: rgba(255, 255, 255, .92);
  --mb-ink: #272126;
  --mb-ink-soft: #5e555b;
  --mb-muted: #938990;
  --mb-line: #eee6e8;
  --mb-rose: #d85d76;
  --mb-rose-soft: #fff2f5;
  --mb-violet: #8f64f7;
  --mb-mint: #6fb9ad;
  --mb-gold: #c79043;
  --mb-radius: 16px;
  --mb-radius-sm: 12px;
  --mb-shadow: 0 18px 42px rgba(47, 38, 45, .08), 0 2px 10px rgba(47, 38, 45, .04);
  --mb-shadow-soft: 0 10px 28px rgba(47, 38, 45, .06);
}

html,
body {
  color: var(--mb-ink) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 232, 237, .72), transparent 30%),
    radial-gradient(circle at 98% 18%, rgba(232, 247, 244, .62), transparent 34%),
    linear-gradient(180deg, #fffefe 0%, var(--mb-bg) 100%) !important;
}

.page,
.home-screen,
.community-screen,
.mine-screen {
  color: var(--mb-ink) !important;
  background: transparent !important;
}

.page {
  gap: 20px !important;
  padding: 16px 18px 102px !important;
}

.resource-hero {
  display: grid !important;
  gap: 14px !important;
}

.resource-top {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  margin: 0 !important;
}

.city-switch,
.hero-search {
  min-height: 44px !important;
  border: 1px solid var(--mb-line) !important;
  border-radius: 14px !important;
  color: var(--mb-ink) !important;
  background: rgba(255, 255, 255, .78) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px) !important;
}

.city-switch {
  padding: 0 13px !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}

.hero-search {
  padding: 0 14px !important;
}

.hero-search input {
  color: var(--mb-ink) !important;
  font-size: 15px !important;
}

.hero-search input::placeholder {
  color: #9b9298 !important;
}

.home-screen .guest-banner,
.profile-banner {
  border: 1px solid rgba(238, 230, 232, .82) !important;
  border-radius: 18px !important;
  box-shadow: var(--mb-shadow-soft) !important;
}

.home-screen .guest-banner {
  aspect-ratio: 2.2 / 1 !important;
}

.home-screen .guest-logo {
  border-radius: 11px !important;
  color: var(--mb-rose) !important;
  background: rgba(255, 255, 255, .78) !important;
  box-shadow: 0 8px 18px rgba(216, 93, 118, .08) !important;
}

.home-screen .guest-cta {
  right: 18px !important;
  width: 74px !important;
  min-width: 74px !important;
  height: 74px !important;
  min-height: 74px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #d85d76 0%, #de6a82 100%) !important;
  box-shadow: 0 14px 30px rgba(216, 93, 118, .24) !important;
}

.hot-strip {
  min-height: 42px !important;
  margin: -2px 0 0 !important;
  padding: 0 14px !important;
  border: 1px solid rgba(238, 230, 232, .76) !important;
  border-radius: 13px !important;
  color: var(--mb-ink-soft) !important;
  background: rgba(255, 255, 255, .76) !important;
  box-shadow: none !important;
}

.hot-strip strong {
  color: var(--mb-rose) !important;
}

.resource-grid,
.resource-grid.modern {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
}

.resource {
  min-height: 92px !important;
  padding: 16px !important;
  border: 1px solid rgba(238, 230, 232, .70) !important;
  border-radius: 18px !important;
  color: var(--mb-ink) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 246, 249, .74) 55%, rgba(238, 249, 247, .54)) !important;
  box-shadow: var(--mb-shadow-soft) !important;
  transform: translateZ(0) !important;
}

.resource:nth-child(2n) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(240, 250, 249, .72) 52%, rgba(255, 249, 236, .52)) !important;
}

.resource:nth-child(n+3) {
  min-height: 76px !important;
  box-shadow: 0 8px 22px rgba(47, 38, 45, .045) !important;
}

.resource i {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
}

.resource span {
  color: var(--mb-ink) !important;
  font-size: 15px !important;
  font-weight: 880 !important;
}

.section {
  margin: 2px 0 0 !important;
}

.section-head {
  margin: 0 0 12px !important;
  padding: 0 !important;
}

.section-head h2 {
  color: var(--mb-ink) !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.section-head h2::before {
  width: 4px !important;
  height: 22px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ff8399, #a77cff) !important;
}

.section-head button,
.section-head a {
  color: var(--mb-muted) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

.people-list,
.community-list,
.list {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.person-line,
.card-row,
.home-screen .card-row,
.community-row,
.activity-row {
  min-height: 78px !important;
  padding: 12px 2px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(238, 230, 232, .78) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.person-line:hover,
.card-row:hover,
.community-row:hover,
.activity-row:hover {
  background: rgba(255, 255, 255, .58) !important;
}

.person-line .avatar,
.card-row .avatar,
.avatar {
  border-radius: 14px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .44), 0 8px 18px rgba(47, 38, 45, .08) !important;
}

.person-line .title,
.card-row .title,
.activity-row .title,
.community-row h3 {
  color: var(--mb-ink) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.28 !important;
}

.person-company,
.activity-row .meta,
.community-row p,
.meta,
.desc {
  color: var(--mb-ink-soft) !important;
  line-height: 1.45 !important;
}

.person-extra {
  margin-top: 8px !important;
  gap: 6px !important;
}

.person-extra em,
.tag,
.person-line .title span {
  min-height: 22px !important;
  border: 1px solid rgba(216, 93, 118, .18) !important;
  border-radius: 999px !important;
  color: #c24f68 !important;
  background: rgba(255, 244, 247, .78) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.community-tabs,
.login-tabs,
.segmented {
  padding: 4px !important;
  border: 1px solid var(--mb-line) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: none !important;
}

.community-tabs .active,
.login-tabs button.active,
.segmented .active {
  color: var(--mb-ink) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(47, 38, 45, .08) !important;
}

.primary,
.wechat-button,
.float-create,
.group-float {
  border-radius: 16px !important;
  background: linear-gradient(135deg, #d85d76, #e7788f) !important;
  box-shadow: 0 12px 26px rgba(216, 93, 118, .22) !important;
}

.nav {
  left: 18px !important;
  right: 18px !important;
  bottom: 14px !important;
  width: auto !important;
  min-height: 62px !important;
  padding: 8px !important;
  border: 1px solid rgba(238, 230, 232, .86) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 18px 44px rgba(47, 38, 45, .14) !important;
  backdrop-filter: blur(18px) !important;
}

.nav button {
  border-radius: 16px !important;
}

.nav .active {
  color: var(--mb-rose) !important;
  background: #fff3f6 !important;
}

.mine-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.mine-stats .stat,
.stat {
  min-width: 0 !important;
  border-radius: 16px !important;
}

@media (max-width: 380px) {
  .page {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .home-screen .guest-copy {
    inset: 15px 88px 14px 16px !important;
  }

  .home-screen .guest-copy h2 {
    font-size: 18px !important;
  }

  .home-screen .guest-cta {
    width: 64px !important;
    min-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
  }
}

/* Keep the mobile bottom navigation inside the centered app canvas on desktop. */
.nav {
  left: 50% !important;
  right: auto !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
  width: min(calc(100vw - 36px), 394px) !important;
  max-width: calc(100vw - 36px) !important;
  transform: translateX(-50%) !important;
  box-sizing: border-box !important;
}

@media (min-width: 720px) {
  .nav {
    width: 394px !important;
  }
}

@media (max-width: 380px) {
  .nav {
    width: calc(100vw - 28px) !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }
}

/* Card detail layout repair */
.card-detail-page {
  padding: 16px 18px 190px !important;
}

.card-detail-page .topbar {
  margin-bottom: 2px !important;
  padding: 0 2px !important;
}

.card-detail-page .business-card.wall-card {
  min-height: 190px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  padding: 24px 104px 22px 20px !important;
  border: 1px solid rgba(255, 255, 255, .54) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.card-detail-page .business-card.wall-card::after {
  display: none !important;
}

.card-detail-page .wall-card .avatar.large {
  top: 20px !important;
  right: 20px !important;
  z-index: 2 !important;
  width: 64px !important;
  height: 64px !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .30) !important;
  box-shadow: 0 12px 26px rgba(35, 27, 33, .18) !important;
}

.card-detail-page .wall-card > *:not(.wall-shade):not(.avatar) {
  position: relative !important;
  z-index: 1 !important;
  max-width: 100% !important;
}

.card-detail-page .wall-card h2 {
  margin: 2px 0 0 !important;
  color: #ffffff !important;
  font-size: 24px !important;
  line-height: 1.16 !important;
  text-align: left !important;
  white-space: normal !important;
}

.card-detail-page .wall-card p {
  margin: 0 !important;
  color: rgba(255, 255, 255, .94) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  text-align: left !important;
  overflow-wrap: anywhere !important;
}

.card-detail-page .contact-mask {
  max-width: 100% !important;
  margin: 4px 0 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .20) !important;
}

.card-detail-page .card-invite-panel {
  min-height: 84px !important;
  margin-top: 12px !important;
  padding: 16px !important;
  border: 1px solid rgba(238, 230, 232, .88) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .95) !important;
  box-shadow: 0 14px 34px rgba(41, 34, 42, .08) !important;
}

.card-detail-page .card-invite-panel .soft.disabled {
  opacity: .92 !important;
  color: #9c6472 !important;
  background: #fff6f8 !important;
  cursor: pointer !important;
}

.card-detail-page .detail-section {
  margin-top: 12px !important;
  padding: 16px !important;
  border: 1px solid rgba(238, 230, 232, .86) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 10px 28px rgba(41, 34, 42, .06) !important;
  overflow: hidden !important;
}

.card-detail-page .detail-section h3 {
  margin: 0 0 12px !important;
  color: var(--mb-ink, #241f25) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

.card-detail-page .kv {
  gap: 0 !important;
}

.card-detail-page .kv div {
  display: grid !important;
  grid-template-columns: 86px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 12px !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid rgba(238, 230, 232, .72) !important;
}

.card-detail-page .kv div:last-child {
  border-bottom: 0 !important;
}

.card-detail-page .kv span {
  color: var(--mb-ink-soft, #736870) !important;
  font-size: 14px !important;
}

.card-detail-page .kv strong {
  min-width: 0 !important;
  color: var(--mb-ink, #241f25) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.45 !important;
  text-align: right !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.fixed-actions {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 92px !important;
  z-index: 58 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 8px !important;
  width: min(calc(100vw - 36px), 394px) !important;
  max-width: calc(100vw - 36px) !important;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid rgba(238, 230, 232, .88) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 18px 46px rgba(41, 34, 42, .16) !important;
  transform: translateX(-50%) !important;
  backdrop-filter: blur(18px) !important;
}

.fixed-actions button,
.fixed-actions a {
  min-width: 0 !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  line-height: 1.2 !important;
  border-radius: 14px !important;
  white-space: nowrap !important;
}

/* Centered, readable feedback dialog */
.toast {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 90 !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 30px !important;
  align-items: center !important;
  gap: 12px !important;
  width: min(calc(100vw - 48px), 360px) !important;
  max-width: calc(100vw - 48px) !important;
  min-height: 72px !important;
  padding: 14px 12px 14px 14px !important;
  border: 1px solid rgba(238, 230, 232, .92) !important;
  border-radius: 18px !important;
  color: var(--mb-ink, #241f25) !important;
  text-align: left !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 232, 237, .80), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 247, 250, .96)) !important;
  box-shadow: 0 24px 70px rgba(41, 34, 42, .22) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, -48%) scale(.96) !important;
  transition: opacity .18s ease, transform .18s ease !important;
  backdrop-filter: blur(18px) !important;
}

.toast.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.toast i {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #d85d76, #e7788f) !important;
  box-shadow: 0 12px 24px rgba(216, 93, 118, .20) !important;
}

.toast i .ui-icon {
  width: 20px !important;
  height: 20px !important;
}

.toast span {
  min-width: 0 !important;
  color: var(--mb-ink, #241f25) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.5 !important;
}

.toast-close {
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #8a7e86 !important;
  background: rgba(244, 238, 240, .86) !important;
  box-shadow: none !important;
}

.toast-close .ui-icon {
  width: 16px !important;
  height: 16px !important;
}

.signup-profile-card {
  max-height: min(86vh, 680px) !important;
  overflow: auto !important;
}

.signup-profile-card > p {
  margin-bottom: 14px !important;
}

.signup-required-field {
  position: relative !important;
  border-radius: 14px !important;
}

.signup-required-field.is-missing {
  padding: 10px !important;
  border: 1px solid rgba(216, 74, 101, .44) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 220, 228, .78), transparent 34%),
    rgba(255, 247, 249, .96) !important;
}

.signup-required-field.is-missing label {
  color: #bc405c !important;
  font-weight: 900 !important;
}

.signup-required-field label b {
  margin-left: 4px !important;
  color: #d84a65 !important;
  font-size: 12px !important;
}

.signup-required-field.is-missing input {
  border-color: rgba(216, 74, 101, .58) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(216, 74, 101, .10) !important;
}

@media (max-width: 380px) {
  .card-detail-page {
    padding-bottom: 184px !important;
  }

  .card-detail-page .business-card.wall-card {
    padding: 22px 88px 20px 18px !important;
  }

  .card-detail-page .wall-card .avatar.large {
    right: 16px !important;
    width: 58px !important;
    height: 58px !important;
  }

  .fixed-actions {
    width: calc(100vw - 28px) !important;
    bottom: 88px !important;
  }
}
