/* ============================================
   个人中心 — 等级卡片/收入增长/激励政策/快捷操作
   从 style.css 拆分
   ============================================ */

/* ----- Profile Page ----- */
/* ===== Profile Header ===== */
.profile-header {
  padding: 20px;
  background: #FFFFFF;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.03);
}

.profile-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-header-info {
  flex: 1;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1C1917;
}

.profile-rank-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(249,115,22,.10), rgba(251,146,60,.08));
  color: #D45D1E;
  letter-spacing: 0.02em;
}

.profile-identity {
  display: inline-block;
  font-size: 0.6875rem;
  color: #A09890;
  margin-top: 2px;
  margin-bottom: 1px;
}

.profile-detail {
  font-size: 0.6875rem;
  color: #A09890;
  margin-top: 2px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F97316, #FB923C);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(249,115,22,.18);
}
.profile-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-avatar-text {
  position: relative;
  z-index: 1;
}

.profile-sub-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border: none;
  border-radius: 999px;
  background: #F97316;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(249,115,22,.2);
  transition: all .15s ease;
}
.profile-sub-btn:hover {
  background: #EA580C;
  box-shadow: 0 4px 14px rgba(249,115,22,.3);
}
.profile-sub-btn:active {
  transform: scale(0.97);
}

.profile-header-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.profile-benefits-btn {
  padding: 5px 12px;
  border: 1.5px solid #F97316;
  border-radius: 999px;
  background: transparent;
  color: #F97316;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.profile-benefits-btn:hover {
  background: #FFF7ED;
}
.profile-benefits-btn:active {
  transform: scale(0.97);
}

/* Benefits Modal */
.benefits-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .2s ease;
}
.benefits-modal {
  width: 100%;
  max-width: 500px;
  max-height: 70vh;
  background: #1C1B1F;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.benefits-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.benefits-modal-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #E8E4DD;
  margin: 0;
}
.benefits-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #A09890;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefits-modal-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.benefit-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(249,115,22,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.benefit-item-body { flex: 1; min-width: 0; }
.benefit-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #E8E4DD;
}
.benefit-item-desc {
  font-size: 0.6875rem;
  color: #8B8680;
  margin-top: 2px;
}
.benefit-item-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .05em;
}
.benefit-item-badge.unlocked {
  background: rgba(52,211,153,.15);
  color: #34D399;
}
.benefit-item-badge.locked {
  background: rgba(255,255,255,.06);
  color: #6B6560;
}

.plan-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: #FFF3EB;
  color: #E0682B;
  letter-spacing: 0.01em;
}

.profile-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.role-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.role-tag.merchant {
  background: #FEF9EC;
  color: #B8750A;
}

.role-tag.agent {
  background: #F4F2FA;
  color: #7C3AED;
}

/* Quick Action Cards (profile page) */
#page-profile .quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, rgba(249,115,22,.03) 0%, rgba(249,115,22,.06) 100%);
  border: 1px solid rgba(249,115,22,.10);
  border-radius: 16px;
  padding: 14px;
}

/* ===== Income Growth Banner ===== */
.income-growth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBF5 100%);
  border: 1px solid #FFEDD5;
  border-radius: 14px;
  text-decoration: none;
  margin-bottom: var(--space-4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.income-growth-banner:active {
  transform: scale(.98);
  box-shadow: 0 4px 16px rgba(249,115,22,.12);
}
.income-growth-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.income-growth-banner-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F97316, #EA580C);
  border-radius: 50%;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(249,115,22,.25);
}
.income-growth-banner-text {
  display: flex; flex-direction: column; gap: 3px;
}
.income-growth-banner-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1C1917;
  letter-spacing: .02em;
}
.income-growth-banner-sub {
  font-size: 0.75rem;
  color: #78716C;
}
.income-growth-banner-arrow {
  font-size: 1.5rem;
  color: #F97316;
  font-weight: 300;
}

/* ===== Profile Incentive Policies ===== */
.profile-incentives {
  margin-bottom: var(--space-4);
}

.profile-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1C1917;
  margin-bottom: var(--space-2);
}

.incentive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.incentive-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--color-surface);
  border: 1px solid #E7E5E4;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1C1917;
  white-space: nowrap;
}

.incentive-tag-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ===== Quick Action Cards (Profile) ===== */
.qa-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px 14px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  cursor: pointer;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.qa-card:active {
  transform: scale(.97);
  box-shadow: 0 2px 8px rgba(249,115,22,.10), 0 4px 16px rgba(0,0,0,.06);
  border-color: rgba(249,115,22,.18);
}

.qa-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

.qa-card--upload .qa-card-icon { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); color: #F97316; }
.qa-card--store  .qa-card-icon { background: linear-gradient(135deg, #FFF7ED, #FED7AA); color: #EA580C; }
.qa-card--promo  .qa-card-icon { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); color: #D97706; }
.qa-card--agent  .qa-card-icon { background: linear-gradient(135deg, #FEF2F2, #FEE2E2); color: #DC2626; }
.qa-card--admin  .qa-card-icon { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); color: #C2410C; }
.qa-card--wholesale .qa-card-icon { background: linear-gradient(135deg, #FFF7ED, #FED7AA); color: #9A3412; }

.qa-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #292524;
  letter-spacing: .02em;
  position: relative;
  z-index: 1;
}

.qa-card[style*="display:none"],
.qa-card[style*="display: none"] { display: none !important; }

.menu-list {
  background: var(--color-surface);
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.05);
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  transition: background .12s ease;
}
.menu-item + .menu-item { border-top: 1px solid rgba(0,0,0,.04); }
.menu-item:active { background: rgba(0,0,0,.02); }

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-item-icon--blue    { background: #EEF2FF; color: #4F6EF7; }
.menu-item-icon--amber   { background: #FEF4E8; color: #DD6B20; }
.menu-item-icon--green   { background: #ECF8F0; color: #059669; }
.menu-item-icon--orange  { background: #FFF4ED; color: #E0682B; }
.menu-item-icon--emerald { background: #ECFDF5; color: #059669; }
.menu-item-icon--sand    { background: #FFF8F0; color: #B8860B; }
.menu-item-icon--gold    { background: #FEF9EC; color: #B8860B; }
.menu-item-icon--accent  { background: #FFF3EB; color: #F97316; }
.menu-item-icon--stone   { background: #F5F4F1; color: #6B7280; }

.menu-item-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2D2A27;
}

.menu-item-extra {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-right: var(--space-2);
}

.menu-item-arrow {
  color: #C4BFB8;
  font-size: 1.125rem;
  font-weight: 300;
}

/* ----- Empty State ----- */
