/* ============ 顾问个人中心面板样式 ============ */

/* 资料编辑面板遮罩 */
.advisor-panel-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.advisor-panel-overlay.show { display: flex; }

/* 面板容器 */
.advisor-panel {
  background: #fff;
  border-radius: 16px;
  width: 600px;
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  margin-bottom: 40px;
}

/* 面板头部 */
.advisor-panel-header {
  padding: 24px 28px;
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
  color: #fff;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.advisor-panel-header h3 { font-size: 18px; font-weight: 600; margin: 0; }
.advisor-panel-close {
  width: 32px; height: 32px;
  border: none; background: rgba(255,255,255,0.15);
  color: #fff; border-radius: 50%; cursor: pointer;
  font-size: 18px; transition: background 0.2s;
}
.advisor-panel-close:hover { background: rgba(255,255,255,0.3); }

/* 面板内容 */
.advisor-panel-body { padding: 28px; }

/* 审核状态条 */
.ap-review-bar {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.ap-review-bar.pending {
  display: flex;
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
}
.ap-review-bar.approved {
  display: flex;
  background: #d4edda;
  border: 1px solid #28a745;
  color: #155724;
}
.ap-review-bar.rejected {
  display: flex;
  background: #f8d7da;
  border: 1px solid #dc3545;
  color: #721c24;
}
.ap-review-bar i { font-size: 20px; }

/* 分区卡片 */
.ap-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
}
.ap-section h4 {
  font-size: 15px;
  color: #1a237e;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 头像上传 */
.ap-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ap-avatar-preview {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.ap-avatar-preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.ap-avatar-preview .ap-avatar-placeholder {
  font-size: 32px; color: #fff;
}
.ap-avatar-preview:hover .ap-avatar-overlay {
  opacity: 1;
}
.ap-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.ap-avatar-info { font-size: 13px; color: #888; }

/* 表单行 */
.ap-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}
.ap-form-row .ap-form-group { flex: 1; margin-bottom: 0; }

.ap-form-group { margin-bottom: 14px; }
.ap-form-group label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
  font-weight: 500;
}
.ap-form-group label .ap-required { color: #e53935; }
.ap-form-group input,
.ap-form-group textarea,
.ap-form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  font-family: inherit;
}
.ap-form-group input:focus,
.ap-form-group textarea:focus,
.ap-form-group select:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}
.ap-form-group textarea { resize: vertical; min-height: 80px; }
.ap-form-group input[readonly] { background: #f0f0f0; color: #888; cursor: not-allowed; }

/* 标签输入 */
.ap-tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-height: 42px;
  cursor: text;
  align-items: center;
}
.ap-tag-wrap:focus-within { border-color: #1a237e; }
.ap-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #1a237e, #3949ab);
  color: #fff;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
}
.ap-tag .ap-tag-remove { cursor: pointer; font-size: 14px; line-height: 1; }
.ap-tag input { border: none; outline: none; flex: 1; min-width: 80px; font-size: 13px; padding: 4px 0; background: transparent; }

/* 上传进度条 */
.ap-upload-progress {
  display: none;
  margin-top: 8px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}
.ap-upload-progress .ap-upload-bar {
  height: 100%;
  background: linear-gradient(135deg, #1a237e, #3949ab);
  border-radius: 2px;
  transition: width 0.3s;
}

/* 操作按钮 */
.ap-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.ap-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ap-btn-save {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff;
}
.ap-btn-save:hover { opacity: 0.9; transform: translateY(-1px); }
.ap-btn-reload {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
}
.ap-btn-reload:hover { opacity: 0.9; transform: translateY(-1px); }

/* 响应式 */
@media (max-width: 640px) {
  .advisor-panel-overlay { padding: 10px; }
  .ap-form-row { flex-direction: column; gap: 0; }
  .ap-avatar-row { flex-direction: column; align-items: flex-start; }
}
