/* ===== 用户中心页样式 ===== */

/* 未登录提示 */
.login-required {
  text-align: center;
  padding: 80px 24px;
}

.login-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.login-required h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
}

.login-required p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
}

/* 用户卡片 */
.account-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
}

.account-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.account-avatar {
  flex-shrink: 0;
}

.account-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-mute);
  object-fit: cover;
}

.account-info {
  flex: 1;
  min-width: 0;
}

.account-info h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}

.account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-3);
}

.meta-item::before {
  content: '·';
  margin-right: 8px;
  color: var(--text-4);
}

.meta-item:first-child::before {
  content: '';
  margin-right: 0;
}

/* 账号安全 */
.account-security h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 16px;
}

.security-list {
  display: grid;
  gap: 12px;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

.security-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.security-info {
  flex: 1;
}

.security-label {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.security-value {
  font-size: 14px;
  color: var(--text-1);
  font-weight: 500;
}

/* 卡片头部 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
}

/* 咨询记录列表 */
.consult-record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
  font-size: 14px;
}

.consult-record-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.consult-record-header {
  padding: 16px 20px;
  background: var(--bg-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.consult-record-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
}

.consult-no {
  font-weight: 600;
  color: var(--text-1);
}

.consult-type {
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 12px;
}

.consult-time {
  color: var(--text-3);
}

.consult-record-content {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  word-break: break-all;
}

.consult-record-reply {
  margin: 0 20px 16px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}

/* 状态标签 */
.status-pending { background: #fff7e8; color: #ff7a45; }
.status-processing { background: #eaf0ff; color: var(--primary); }
.status-replied { background: #e8ffea; color: #00b42a; }
.status-closed { background: var(--bg-mute); color: var(--text-3); }

/* 类型标签 */
.type-product { background: #eaf0ff; color: var(--primary); }
.type-merchant { background: #e8ffea; color: #00b42a; }
.type-cooperation { background: #fff7e8; color: #ff7a45; }
.type-complaint { background: #ffece8; color: #f53f3f; }
.type-other { background: var(--bg-mute); color: var(--text-3); }

/* 响应式 */
@media (max-width: 768px) {
  .account-card {
    padding: 20px;
  }
  .account-header {
    flex-wrap: wrap;
    gap: 16px;
  }
  .account-avatar img {
    width: 64px;
    height: 64px;
  }
  .account-info h2 {
    font-size: 18px;
  }
  .meta-item::before {
    display: none;
  }
  .meta-item {
    margin-right: 12px;
  }
}
