.member-page {
  padding: 24px 0 48px;
  background: #f5f8fc;
  min-height: 60vh;
}
.member-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.member-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.member-sidebar {
  width: 210px;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 1px 2px rgba(22, 119, 255, 0.04);
}
.member-card {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef3fb;
  margin-bottom: 12px;
}
.member-avatar-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #d6e4ff;
  background: #f0f5ff;
}
.member-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
}
.member-phone {
  margin: 4px 0 10px;
  color: #8c8c8c;
  font-size: 13px;
}
.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.member-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
}
.badge-vip {
  background: linear-gradient(135deg, #1677ff, #0958d9);
  color: #fff;
}
.badge-points {
  background: #fff7e6;
  color: #d48806;
}
.badge-notif {
  background: #e6f4ff;
  color: #1677ff;
}
.member-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.member-nav-group {
  border: 0;
}
.member-nav-group > summary {
  list-style: none;
}
.member-nav-group > summary::-webkit-details-marker {
  display: none;
}
.member-nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: #8c8c8c;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.member-nav-chevron {
  transition: transform .15s ease;
}
.member-nav-group[open] .member-nav-chevron {
  transform: rotate(180deg);
}
.member-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #434343;
  text-decoration: none;
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.member-nav .nav-item i {
  color: #1677ff;
  font-size: 16px;
}
.member-nav .nav-item:hover {
  background: #f0f5ff;
  color: #1677ff;
}
.member-nav .nav-item.active {
  background: #e6f4ff;
  color: #1677ff;
  font-weight: 600;
}
.member-nav .nav-item-sub {
  padding-left: 28px;
  font-size: 13px;
}
.nav-item-label {
  flex: 1;
  min-width: 0;
}
.nav-item-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #1677ff;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.member-main {
  min-width: 0;
}
.member-section {
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(22, 119, 255, 0.04);
}
.member-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.member-page .btn-primary {
  background: #1677ff;
  color: #fff;
  border-color: #1677ff;
}
.member-page .btn-primary:hover {
  background: #0958d9;
  border-color: #0958d9;
}
.member-page .btn-primary:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.member-page .btn-outline {
  background: #fff;
  color: #1677ff;
  border-color: #91caff;
}
.member-page .btn-outline:hover {
  background: #e6f4ff;
}
.member-page .btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f1f1f;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i {
  color: #1677ff;
}
.section-more {
  color: #1677ff;
  text-decoration: none;
  font-size: 13px;
}
.member-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.bg-primary-light { background: #e6f4ff; }
.bg-success-light { background: #f6ffed; }
.bg-warning-light { background: #fff7e6; }
.bg-pink-light { background: #fff0f6; }
.text-primary { color: #1677ff; }
.text-success { color: #52c41a; }
.text-orange { color: #fa8c16; }
.text-pink { color: #eb2f96; }
.stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.2;
}
.stat-label {
  color: #8c8c8c;
  font-size: 12px;
}
.member-empty {
  text-align: center;
  padding: 48px 16px;
  color: #8c8c8c;
}
.member-empty i {
  font-size: 40px;
  color: #91caff;
  display: block;
  margin-bottom: 8px;
}
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tab-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d6e4ff;
  color: #595959;
  text-decoration: none;
  font-size: 13px;
  background: #fff;
}
.tab-item.active,
.tab-item:hover {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}
.member-checkin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f0f5ff;
  border: 1px solid #d6e4ff;
  border-radius: 12px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1px solid #e8eef7;
  border-radius: 10px;
  text-decoration: none;
  color: #434343;
  background: #fafcff;
}
.quick-item i {
  color: #1677ff;
  font-size: 22px;
}
.quick-item:hover {
  border-color: #91caff;
  background: #e6f4ff;
  color: #1677ff;
}
.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-item {
  padding: 14px 16px;
  border: 1px solid #e8eef7;
  border-radius: 10px;
  background: #fafcff;
}
.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.order-no {
  font-size: 13px;
  color: #8c8c8c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.order-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #595959;
  white-space: nowrap;
}
.order-status.status-1,
.order-status.status-2 {
  background: #e6f4ff;
  color: #1677ff;
}
.order-status.status-3 {
  background: #f6ffed;
  color: #389e0d;
}
.order-status.status-4,
.order-status.status-5,
.order-status.status-0 {
  background: #f5f5f5;
  color: #8c8c8c;
}
.order-body {
  font-size: 14px;
  color: #1f1f1f;
  line-height: 1.5;
  margin-bottom: 8px;
  word-break: break-word;
}
.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.order-amount {
  font-size: 15px;
  font-weight: 700;
  color: #1677ff;
}
.order-time {
  font-size: 12px;
  color: #8c8c8c;
}
@media (max-width: 960px) {
  .member-layout {
    grid-template-columns: 1fr;
  }
  .member-stats,
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 576px) {
  .member-stats,
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
