/* ── 个人中心弹窗 ─────────────────────────────── */
.uc-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uc-modal {
  background: #fff;
  border-radius: 12px;
  width: 820px;
  max-width: 95vw;
  height: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
}

.uc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.uc-modal-header h2 { font-size: 18px; font-weight: 600; color: var(--text); }

.uc-close-btn {
  width: 32px; height: 32px;
  border: none;
  background: #f0f0f5;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.uc-close-btn:hover { background: #e0e0e8; }

.uc-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ─── 左侧导航 ────────────────────────────── */
.uc-sidebar {
  width: 180px;
  background: #f8f9fc;
  border-right: 1px solid var(--border);
  padding: 16px 0;
  flex-shrink: 0;
  overflow-y: auto;
}

.uc-user-info {
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  text-align: center;
}
.uc-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  margin: 0 auto 8px;
}
.uc-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.uc-user-username {
  font-size: 12px;
  color: var(--text-muted);
}

.uc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: all 0.2s;
}
.uc-nav-item:hover { background: #eef0f8; color: var(--primary); }
.uc-nav-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}

.uc-nav-logout {
  color: var(--error);
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.uc-nav-logout:hover {
  background: #fde8e8;
  color: var(--error);
}

/* ─── 右侧内容区 ─────────────────────────────── */
.uc-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.uc-section { display: none; }
.uc-section.active { display: block; }

.uc-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ─── 表单 ─────────────────────────────── */
.uc-form-group { margin-bottom: 20px; }
.uc-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin-bottom: 8px;
}
.uc-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.uc-input:focus { border-color: var(--primary); }
.uc-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.uc-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.uc-btn-primary {
  padding: 8px 24px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.uc-btn-primary:hover { opacity: 0.9; }

.uc-save-msg {
  font-size: 13px;
  color: var(--success);
}

/* ── Toggle Switch ─────────────────────────────── */
.uc-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.uc-toggle-label input[type="checkbox"] { display: none; }
.uc-toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: #ddd;
  border-radius: 24px;
  transition: 0.3s;
  flex-shrink: 0;
}
.uc-toggle-slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.uc-toggle-label input:checked + .uc-toggle-slider { background: var(--primary); }
.uc-toggle-label input:checked + .uc-toggle-slider:before { transform: translateX(20px); }

/* ─── 订单卡片 ─────────────────────────────── */
.uc-order-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.uc-order-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.uc-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.uc-order-no { font-size: 13px; color: var(--text-secondary); }
.uc-order-date { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.uc-order-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.uc-order-status.status-unshipped { background: #fff3e0; color: var(--warning); }
.uc-order-status.status-shipped { background: #e8f5e9; color: var(--success); }

.uc-order-items { font-size: 13px; color: var(--text); line-height: 1.8; }
.uc-order-item-row { display: flex; justify-content: space-between; padding: 2px 0; }
.uc-order-total {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f5;
  font-size: 14px;
  font-weight: 600;
  color: var(--cost-price);
}

/* ─── 空状态 ─────────────────────────────── */
.uc-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.uc-empty-icon { font-size: 40px; margin-bottom: 12px; }

/* ─── 响应式 ─────────────────────────────── */
@media (max-width: 768px) {
  .uc-modal {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .uc-body { flex-direction: column; }
  .uc-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
    padding: 8px;
    gap: 4px;
  }
  .uc-user-info { display: none; }
  .uc-nav-item { padding: 8px 14px; white-space: nowrap; font-size: 13px; border-radius: 8px; }
  .uc-nav-logout { border-top: none; margin-top: 0; padding-top: 8px; }
  .uc-content { padding: 16px; }
}
