/* 个人中心样式 */

.member-main {
  min-height: calc(100vh - 160px);
  background: #f5f7fa;
  padding: 30px 0;
}

.member-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 24px;
}

/* 侧边栏 */
.member-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.member-avatar-section {
  padding: 30px 20px;
  text-align: center;
  background: linear-gradient(135deg, #E60012 0%, #ff4d4d 100%);
  color: #fff;
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  margin: 0 auto 16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.member-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.member-email {
  font-size: 13px;
  opacity: 0.85;
  margin: 0;
}

.member-nav {
  padding: 16px 0;
}

.member-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.member-nav-item:hover {
  background: #f5f5f5;
  color: #E60012;
  text-decoration: none;
}

.member-nav-item.active {
  background: #fff0f0;
  color: #E60012;
}

.member-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #E60012;
}

.member-nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.member-nav-badge {
  margin-left: auto;
  background: #E60012;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}

.member-nav-logout {
  border-top: 1px solid #eee;
  margin-top: 8px;
  padding-top: 22px;
  color: #999;
}

.member-nav-logout:hover {
  color: #E60012;
}

/* 主内容区 */
.member-content {
  flex: 1;
  min-width: 0;
}

.member-header {
  background: #fff;
  border-radius: 12px;
  padding: 24px 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.member-header h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.member-header p {
  color: #666;
  margin: 0;
  font-size: 15px;
}

/* 概览卡片 */
.member-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.member-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.member-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff0f0;
  color: #E60012;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.member-card-info h4 {
  font-size: 14px;
  color: #666;
  margin: 0 0 8px;
  font-weight: 500;
}

.member-card-count {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.member-card-date {
  font-size: 16px;
  color: #1a1a1a;
  margin: 0;
  font-weight: 500;
}

/* 区块 */
.member-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.member-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

/* 快捷功能 */
.member-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.member-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: #f8f9fa;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}

.member-action:hover {
  background: #fff0f0;
  color: #E60012;
  text-decoration: none;
}

.member-action i {
  font-size: 28px;
  color: #E60012;
}

.member-action span {
  font-size: 14px;
  font-weight: 500;
}

/* 活动记录 */
.member-activity {
  min-height: 120px;
}

.member-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #999;
}

.member-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.member-empty p {
  margin: 0;
  font-size: 15px;
}

/* 表单样式 */
.member-form {
  max-width: 500px;
}

.member-form-group {
  margin-bottom: 24px;
}

.member-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.member-form-label .required {
  color: #E60012;
  margin-left: 4px;
}

.member-form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.member-form-input:focus {
  outline: none;
  border-color: #E60012;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

.member-form-input:disabled {
  background: #f5f5f5;
  color: #999;
}

.member-form-hint {
  font-size: 13px;
  color: #999;
  margin-top: 6px;
}

.member-form-submit {
  padding: 12px 32px;
  background: #E60012;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.member-form-submit:hover {
  background: #c5000f;
}

.member-form-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.member-form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.member-form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.member-form-message.error {
  background: #fff0f0;
  color: #c00;
}

/* 响应式 */
@media (max-width: 992px) {
  .member-container {
    flex-direction: column;
  }
  
  .member-sidebar {
    width: 100%;
  }
  
  .member-avatar-section {
    padding: 20px;
  }
  
  .member-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 12px;
  }
  
  .member-nav-item {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
  }
  
  .member-nav-item.active::before {
    display: none;
  }
  
  .member-nav-logout {
    border-top: none;
    margin-top: 0;
    padding-top: 12px;
  }
  
  .member-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .member-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .member-overview {
    grid-template-columns: 1fr;
  }
  
  .member-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .member-section {
    padding: 20px;
  }
}

/* 列表项样式 */
.member-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.member-list-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s;
}

.member-list-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.member-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.member-list-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.member-list-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.member-list-status.status-pending {
  background: #fff7e6;
  color: #fa8c16;
}

.member-list-status.status-contacted,
.member-list-status.status-processing {
  background: #e6f7ff;
  color: #1890ff;
}

.member-list-status.status-quoted,
.member-list-status.status-read {
  background: #f6ffed;
  color: #52c41a;
}

.member-list-status.status-converted,
.member-list-status.status-completed,
.member-list-status.status-replied {
  background: #f6ffed;
  color: #52c41a;
}

.member-list-status.status-lost,
.member-list-status.status-cancelled,
.member-list-status.status-unread {
  background: #fff1f0;
  color: #ff4d4f;
}

.member-list-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.member-list-meta i {
  margin-right: 4px;
  color: #bbb;
}

.member-list-content {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  word-break: break-word;
  white-space: pre-wrap;
}

.member-list-reply {
  margin-top: 12px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  border-left: 3px solid #E60012;
}

.member-list-reply strong {
  color: #E60012;
}
