/* ===== 设置视图 ===== */
.sv-root {
  display: flex;
  height: 100%;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* 左侧导航 */
.sv-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.sv-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.sv-sidebar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sv-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.sv-sidebar-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 1px;
}

.sv-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sv-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 7px;
  border: none;
  background: none;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
  width: 100%;
}
.sv-nav-item:hover { background: #f3f4f6; color: #374151; }
.sv-nav-active { background: #eef2ff !important; color: #4f46e5 !important; font-weight: 600; }

.sv-nav-icon { display: flex; align-items: center; flex-shrink: 0; }

.sv-sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid #f3f4f6;
}

.sv-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 7px;
  border: none;
  background: none;
  color: #ef4444;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.sv-logout-btn:hover { background: #fef2f2; }

/* 右侧内容 */
.sv-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* 个人资料 */
.sv-profile {
  flex: 1;
  padding: 32px;
}

.sv-content-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.sv-content-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 28px;
  line-height: 1.6;
  max-width: 560px;
}

.sv-profile-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* 头像卡片 */
.sv-avatar-card {
  width: 180px;
  flex-shrink: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.sv-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.sv-avatar-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.sv-avatar-hint {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
}

.sv-avatar-btn {
  margin-top: 4px;
  padding: 7px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
}
.sv-avatar-btn:hover { background: #f3f4f6; }

/* 表单卡片 */
.sv-form-card {
  flex: 1;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}

.sv-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.sv-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sv-form-group-full {
  grid-column: 1 / -1;
}

.sv-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sv-label-hint {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 400;
}

.sv-input {
  padding: 9px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  font-size: 13px;
  color: #111827;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
}
.sv-input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.sv-input-disabled { background: #f9fafb; color: #9ca3af; cursor: not-allowed; }

.sv-phone-wrap { display: flex; gap: 8px; }

.sv-phone-code {
  padding: 9px 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  font-size: 13px;
  color: #374151;
  background: white;
  outline: none;
  cursor: pointer;
  width: 70px;
}

.sv-input-phone { flex: 1; }

.sv-tags { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 4px; }

.sv-tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.sv-tag-pro {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
}

.sv-textarea {
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 7px;
  font-size: 13px;
  color: #111827;
  outline: none;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
  transition: border-color 0.15s;
}
.sv-textarea:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }

.sv-char-count {
  font-size: 11px;
  color: #9ca3af;
  text-align: right;
  margin-top: 4px;
}

.sv-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.sv-btn-ghost {
  padding: 9px 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s;
}
.sv-btn-ghost:hover { background: #f3f4f6; }

.sv-btn-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: #4f46e5;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background 0.15s;
}
.sv-btn-primary:hover { background: #4338ca; }

/* 第三方关联 */
.sv-third-party {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
}

.sv-tp-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sv-tp-info { flex: 1; }
.sv-tp-title { font-size: 14px; font-weight: 600; color: #111827; }
.sv-tp-sub { font-size: 12px; color: #9ca3af; margin-top: 2px; }

.sv-tp-link {
  background: none;
  border: none;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.sv-tp-link:hover { color: #4338ca; }

/* 占位 */
.sv-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px;
  color: #9ca3af;
}

.sv-placeholder-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.sv-placeholder-sub {
  font-size: 13px;
  color: #9ca3af;
}

/* 底部 */
.sv-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 32px;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #9ca3af;
  background: white;
}

.sv-footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.sv-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}
