/* 个人中心 - WPS 选项风格面板 */
.profile-center-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-center-mask.hidden { display: none; }

.profile-center {
  width: 720px;
  max-width: 96vw;
  height: 520px;
  max-height: 90vh;
  background: #f5f5f5;
  border: 1px solid #d0d0d0;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  color: #333;
}

.pc-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(180deg, #fafafa, #ececec);
  border-bottom: 1px solid #d0d0d0;
  font-weight: 500;
}
.pc-close {
  border: none;
  background: transparent;
  font-size: 18px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}
.pc-close:hover { color: #e81123; }

.pc-body { display: flex; flex: 1; min-height: 0; }

.pc-nav {
  width: 148px;
  background: #ebebeb;
  border-right: 1px solid #d0d0d0;
  padding: 8px 0;
  overflow-y: auto;
}
.pc-nav-item {
  display: block;
  width: 100%;
  padding: 9px 16px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-family: inherit;
  color: #444;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.pc-nav-item:hover { background: #e0e0e0; }
.pc-nav-item.active {
  background: #fff;
  border-left-color: #5cc5b6;
  color: #2a8f82;
  font-weight: 500;
}

.pc-content {
  flex: 1;
  background: #fff;
  padding: 20px 24px;
  overflow-y: auto;
}
.pc-pane { display: none; }
.pc-pane.active { display: block; }

.pc-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.pc-field { margin-bottom: 14px; }
.pc-field label {
  display: block;
  font-size: 11px;
  color: #666;
  margin-bottom: 5px;
}
.pc-field input[type="text"],
.pc-field input[type="number"],
.pc-field select {
  width: 100%;
  max-width: 280px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 12px;
  font-family: inherit;
}
.pc-field input:focus, .pc-field select:focus {
  outline: none;
  border-color: #5cc5b6;
}

.pc-avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 44px);
  gap: 8px;
  margin-top: 6px;
}
.pc-avatar-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f8f8f8;
  cursor: pointer;
  overflow: hidden;
}
.pc-avatar-btn:hover { border-color: #b8e6df; }
.pc-avatar-btn.selected { border-color: #5cc5b6; box-shadow: 0 0 0 1px #5cc5b6; }

.pc-device-code {
  font-family: Consolas, monospace;
  font-size: 13px;
  color: #5cc5b6;
  background: #f0faf8;
  padding: 6px 10px;
  border-radius: 3px;
  display: inline-block;
}

.pc-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 360px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}
.pc-switch-row span { color: #444; }

.pc-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.pc-switch input { opacity: 0; width: 0; height: 0; }
.pc-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 22px;
  cursor: pointer;
  transition: .2s;
}
.pc-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
.pc-switch input:checked + .pc-slider { background: #5cc5b6; }
.pc-switch input:checked + .pc-slider::before { transform: translateX(18px); }

.pc-template-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.pc-tpl-card {
  border: 2px solid #e8e8e8;
  border-radius: 4px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  transition: .15s;
}
.pc-tpl-card:hover { border-color: #b8e6df; }
.pc-tpl-card.selected { border-color: #5cc5b6; background: #f0faf8; }
.pc-tpl-card .icon { font-size: 22px; margin-bottom: 4px; }
.pc-tpl-card .name { font-size: 11px; color: #555; }

.pc-radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 12px;
  color: #444;
}

.pc-priv-card {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fafafa;
}
.pc-priv-card .name { font-weight: 500; }
.pc-priv-card .meta { font-size: 11px; color: #999; margin-top: 4px; }
.pc-empty { text-align: center; color: #aaa; padding: 24px 0; font-size: 12px; }
.pc-more-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: #aaa;
  text-decoration: none;
}
.pc-more-link:hover { color: #5cc5b6; }

.pc-footer {
  padding: 10px 16px;
  border-top: 1px solid #d0d0d0;
  background: #f5f5f5;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.pc-btn {
  padding: 6px 18px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fff;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.pc-btn:hover { background: #f0f0f0; }
.pc-btn-primary {
  background: #5cc5b6;
  border-color: #4db5a6;
  color: #fff;
}
.pc-btn-primary:hover { background: #4db5a6; }

.pc-color-row { display: flex; align-items: center; gap: 8px; }
.pc-color-row input[type="color"] {
  width: 36px;
  height: 28px;
  padding: 0;
  border: 1px solid #ddd;
  cursor: pointer;
}

.mgy-edit-toast {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(92,197,182,0.92);
  color: #fff;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 15000;
}
.mgy-edit-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.auth-avatar svg { display: block; border-radius: 50%; }
