/* Personal-center service modules shared visually with the mini program. */
.profile-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 27px 2px 13px;
}

.profile-section-head--more { margin-top: 30px; }
.profile-section-head > div { min-width: 0; }
.profile-section-head strong,
.profile-section-head small { display: block; }
.profile-section-head strong { color: var(--text); font-size: 20px; line-height: 1.25; }
.profile-section-head small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.profile-section-head > span { flex: none; color: var(--primary); font-size: 11px; white-space: nowrap; }

.profile-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.profile-service-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-width: 0;
  min-height: 108px;
  padding: 14px 9px 12px;
  overflow: hidden;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(60, 60, 67, .07);
  border-radius: 16px;
  box-shadow: 0 7px 20px rgba(24, 24, 27, .045);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color .16s ease, transform .16s ease;
}

.profile-service-card:active,
.profile-more-card:active { background: #f3f3fb; transform: scale(.985); }

.profile-service-icon,
.profile-more-icon {
  display: grid;
  flex: none;
  color: #5159dc;
  background: #eef0ff;
  font-weight: 800;
  place-items: center;
}

.profile-service-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 13px; }
.profile-service-card > b,
.profile-service-card > small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-service-card > b { margin-top: 10px; font-size: 13px; line-height: 1.3; }
.profile-service-card > small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.profile-service-card > em { position: absolute; top: 16px; right: 9px; color: #b3b3bd; font-size: 18px; font-style: normal; }
.profile-service-icon.green,
.profile-more-icon.green { color: #16815f; background: #e8f8f2; }
.profile-service-icon.blue,
.profile-more-icon.blue { color: #087dc1; background: #eaf6ff; }
.profile-service-icon.purple { color: #5159dc; background: #eef0ff; }

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

.profile-more-card {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 78px;
  padding: 12px 25px 12px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(60, 60, 67, .07);
  border-radius: 16px;
  box-shadow: 0 7px 20px rgba(24, 24, 27, .04);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color .16s ease, transform .16s ease;
}

.profile-more-icon { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }
.profile-more-icon.gray { color: #71717a; background: #f2f2f7; }
.profile-more-icon.pink { color: #e54050; background: #fff0f2; }
.profile-more-copy { display: block; min-width: 0; margin-left: 8px; }
.profile-more-copy > b,
.profile-more-copy > small { display: block; }
.profile-more-copy > b { color: var(--text); font-size: 12px; line-height: 1.35; }
.profile-more-copy > small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.profile-more-card > em { position: absolute; right: 10px; color: #b3b3bd; font-size: 18px; font-style: normal; }

@media (max-width: 360px) {
  .profile-section-head strong { font-size: 18px; }
  .profile-section-head small { font-size: 10px; }
  .profile-service-grid,
  .profile-more-grid { gap: 7px; }
  .profile-service-card { min-height: 102px; padding-right: 7px; padding-left: 7px; border-radius: 14px; }
  .profile-service-icon { width: 35px; height: 35px; }
  .profile-service-card > b { font-size: 12px; }
  .profile-more-card { min-height: 74px; padding-right: 20px; padding-left: 9px; border-radius: 14px; }
  .profile-more-icon { width: 31px; height: 31px; }
  .profile-more-copy { margin-left: 6px; }
  .profile-more-copy > b { font-size: 12px; }
  .profile-more-card > em { right: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-service-card,
  .profile-more-card { transition: none; }
}
