/* 俱乐部会员页面 */

.member-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #fff5f0 0%, #f0faf8 50%, #f5f0ff 100%);
  padding: 20px 16px 40px;
}

.member-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.member-card h1 {
  font-size: 22px;
  color: #2d6a4f;
  margin-bottom: 6px;
}

.member-card > p {
  font-size: 14px;
  color: #636e72;
  margin-bottom: 22px;
}

.member-form-hint {
  font-size: 12px;
  color: #95a5a6;
  margin: -12px 0 16px;
  line-height: 1.5;
}

.member-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.member-tabs button {
  flex: 1;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.member-tabs button.active {
  border-color: #FF6B35;
  color: #FF6B35;
  background: #fff5f0;
}

.member-tabs--3 button {
  font-size: 13px;
  padding: 9px 6px;
}

.member-tabs--2 button {
  font-size: 14px;
}

.member-login-identity {
  margin: 4px 0 16px;
  padding: 12px 14px;
  background: #f8faf9;
  border: 1px solid #e8ecea;
  border-radius: 12px;
}

.member-login-identity .member-section-title {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.member-login-identity__text {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #2d5016;
}

.member-panel--hidden {
  display: none !important;
}

.hidden,
[hidden] {
  display: none !important;
}

.member-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: #636e72;
}

.member-form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
}

.member-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}

.member-field-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #95a5a6;
}

.member-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #2d3436;
  margin: 8px 0 12px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.address-region {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 6px;
  margin: 6px 0 10px;
}

.address-region select {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 13px;
  background: #fff;
}

.address-region select:disabled {
  background: #f5f5f5;
  color: #999;
}

.member-field-hint--address {
  margin: -6px 0 14px;
}

.code-row {
  display: flex;
  gap: 8px;
}

.code-row input { flex: 1; }

.code-row button {
  flex-shrink: 0;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: #2d6a4f;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.code-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.member-form .btn { width: 100%; margin-top: 8px; min-height: 46px; }

.member-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #999;
  font-size: 12px;
}

.member-divider::before,
.member-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8ecef;
}

.wechat-login-btn {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 12px;
  background: #07c160;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.guest-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: #636e72;
  text-decoration: none;
}

.member-benefits {
  margin-top: 24px;
  padding: 16px;
  background: #f8f9fb;
  border-radius: 12px;
}

.member-benefits h3 {
  font-size: 14px;
  margin-bottom: 10px;
  color: #2d3436;
}

.member-benefits li {
  font-size: 13px;
  color: #636e72;
  margin-bottom: 6px;
  list-style: none;
  padding-left: 18px;
  position: relative;
}

.member-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2d6a4f;
}

.member-profile {
  text-align: center;
}

.member-profile__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35, #FFD23F);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 12px;
  overflow: hidden;
}

.member-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-profile__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  background: #e8f5e9;
  color: #2d6a4f;
  font-size: 12px;
  margin-bottom: 8px;
}

.member-profile__badge--admin {
  background: #fff3e0;
  color: #e65100;
}

.member-profile__name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.member-profile__account {
  font-size: 13px;
  color: #636e72;
  margin-bottom: 8px;
}

.member-profile__meta {
  font-size: 13px;
  color: #636e72;
  margin-bottom: 4px;
}

.member-profile__tag {
  display: inline-block;
  font-size: 11px;
  line-height: 1.4;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

.member-profile__tag--ok {
  color: #2e7d32;
  background: #e8f5e9;
}

.member-profile__tag--warn {
  color: #e65100;
  background: #fff3e0;
}

.member-profile__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.member-bind-panel {
  margin: 16px 0 4px;
  padding: 14px;
  border-radius: 12px;
  background: #fff8f3;
  border: 1px solid #ffd8c2;
  text-align: left;
}

.member-bind-panel--sync {
  background: #f4f9f8;
  border-color: #c8e6df;
}

.member-bind-panel__title {
  margin: 0 0 6px;
  font-weight: 600;
  color: #2d3436;
}

.member-bind-panel__hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #636e72;
}

.member-bind-panel__field {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #2d3436;
}

.member-bind-panel__field input {
  display: block;
  width: 100%;
  margin-top: 6px;
}

.member-bind-panel__code {
  margin-bottom: 12px;
}

.member-bind-panel .btn {
  width: 100%;
}

.member-msg {
  font-size: 13px;
  color: #c0392b;
  min-height: 18px;
  margin-bottom: 8px;
}

.member-msg.ok { color: #2d6a4f; }

.wechat-login-block--hidden {
  display: none;
}

.wechat-login-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #95a5a6;
  text-align: center;
  line-height: 1.5;
}

.member-form .btn:disabled,
.wechat-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.member-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  color: #FF6B35;
  text-decoration: none;
}

.member-card--wide {
  max-width: 520px;
}

.member-avatar-edit {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.member-avatar-edit__preview {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35, #FFD23F);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.member-avatar-edit__img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-avatar-edit__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  line-height: 1;
  pointer-events: none;
}

.member-avatar-edit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.member-avatar-edit__upload {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.member-avatar-edit__hint {
  margin-top: 8px;
  text-align: center;
}

.avatar-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.avatar-crop-modal.hidden {
  display: none !important;
}

.avatar-crop-modal__box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.avatar-crop-modal__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #2d3436;
  text-align: center;
}

.avatar-crop-modal__stage {
  width: 100%;
  height: min(60vw, 320px);
  max-height: 320px;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}

.avatar-crop-modal__stage img {
  display: block;
  max-width: 100%;
}

.avatar-crop-modal__hint {
  margin: 10px 0 0;
  text-align: center;
}

.avatar-crop-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.avatar-crop-modal__actions .btn {
  width: 100%;
  margin: 0;
  min-height: 44px;
}

.member-admin-desc {
  font-size: 13px;
  color: #95a5a6;
  margin: -8px 0 16px;
}

.member-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.member-admin-toolbar--secondary {
  display: block;
  margin-top: -4px;
}

.member-admin-toolbar--secondary .btn {
  width: 100%;
  box-sizing: border-box;
}

.member-admin-toolbar input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
}

.member-admin-toolbar .btn {
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.member-admin-count {
  font-size: 12px;
  color: #95a5a6;
  margin-bottom: 10px;
}

.member-admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-admin-empty {
  text-align: center;
  color: #95a5a6;
  padding: 24px 0;
  font-size: 14px;
}

.member-admin-item {
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
  overflow: hidden;
}

.member-admin-item.is-expanded {
  border-color: #ffd8c2;
  background: #fff;
}

.member-admin-item__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.member-admin-item__main {
  flex: 1;
  min-width: 0;
}

.member-admin-item__toggle {
  flex-shrink: 0;
  font-size: 12px;
  color: #FF6B35;
  white-space: nowrap;
}

.member-admin-item__detail {
  display: none;
  padding: 0 14px 14px;
}

.member-admin-item.is-expanded .member-admin-item__detail {
  display: block;
}

.member-admin-detail-grid {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.member-admin-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}

.member-admin-detail-row dt {
  margin: 0;
  color: #95a5a6;
  flex-shrink: 0;
}

.member-admin-detail-row dd {
  margin: 0;
  text-align: right;
  color: #2d3436;
  word-break: break-all;
}

.member-admin-detail-loading {
  margin: 0;
  padding: 12px 0 4px;
  font-size: 13px;
  color: #95a5a6;
  text-align: center;
}

.member-admin-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.member-admin-item__head strong {
  font-size: 15px;
  color: #2d3436;
}

.member-admin-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e8f5e9;
  color: #2d6a4f;
}

.member-admin-badge--admin {
  background: #fff3e0;
  color: #e65100;
}

.member-admin-item__meta {
  font-size: 12px;
  color: #636e72;
  margin: 2px 0;
}

.member-admin-item__actions {
  margin-top: 10px;
}

.member-admin-item__actions .btn--sm {
  padding: 6px 12px;
  font-size: 13px;
}

.member-admin-self {
  font-size: 12px;
  color: #95a5a6;
}

.member-admin-more {
  margin-top: 14px;
  text-align: center;
}

.member-admin-more.hidden {
  display: none;
}
