/* ========== 个人中心 - 深色专业风格 ========== */
.main-content { padding: 0 0 80px; }
.profile-main { padding-top: 0; }

/* 顶部横幅区域 */
.profile-hero {
  position: relative;
  min-height: 200px;
  margin-bottom: 0;
  overflow: hidden;
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1525 0%, #0f0d14 40%, #16141e 100%);
  background-image:
    linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    linear-gradient(225deg, rgba(34, 211, 238, 0.06) 0%, transparent 40%),
    linear-gradient(135deg, #1a1525 0%, #0f0d14 50%, #16141e 100%);
}

.profile-hero-inner {
  position: relative;
  padding-top: 140px;
  padding-bottom: 24px;
}

/* 个人信息卡 - 头像与信息同一行居中对齐，整行压住背景 */
.profile-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 0;
}

.profile-card-main {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: -100px;
  flex: 1;
  min-width: 0;
}

.profile-card-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 4px solid var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.profile-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card-info { flex: 1; min-width: 200px; }

.profile-card-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-card-name {
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

.profile-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

.profile-badge-lead {
  background: linear-gradient(135deg, #f5d042 0%, #d4af37 100%);
  color: #0a0a0f;
}

.profile-card-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* 数据统计行 */
.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* 右侧操作区 */
.profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 导航 Tab - 紫色高亮 */
.profile-tabs-wrap { margin-top: 32px; }
.profile-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.center-tabs.profile-tabs .center-tab {
  padding: 12px 24px;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 0;
  margin-bottom: -1px;
  font-size: 15px;
}

.center-tabs.profile-tabs .center-tab:hover {
  color: var(--text-primary);
}

.center-tabs.profile-tabs .center-tab.active {
  background: transparent;
  color: var(--neon-purple-light);
  border-bottom-color: var(--neon-purple);
  font-weight: 600;
}

/* 面板标题 */
.panel-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.panel-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

.center-panel { display: none; }
.center-panel.active { display: block; }

/* ========== 参演作品 - 卡片网格 ========== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}

.work-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.work-card-poster {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-primary);
  overflow: hidden;
}

.work-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-poster .work-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 48px;
  opacity: 0.5;
}

.work-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

.work-card-badge-online { background: rgba(34, 197, 94, 0.9); color: #fff; }
.work-card-badge-making { background: rgba(245, 158, 11, 0.9); color: #0a0a0f; }
.work-card-badge-offline { background: rgba(100, 116, 139, 0.9); color: #fff; }

.work-card-body { padding: 16px; }

.work-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: var(--text-primary);
}

.work-card-title:hover { color: var(--neon-purple-light); }

.work-card-role { font-size: 13px; color: var(--text-secondary); }

/* 兼容旧列表结构（若 JS 仍输出 .work-item） */
.works-list { display: flex; flex-direction: column; gap: 12px; }
.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.work-item .work-title { font-weight: 600; }
.work-item .work-role { font-size: 14px; color: var(--text-secondary); }
.work-item .work-badge { padding: 4px 10px; font-size: 12px; border-radius: 4px; background: rgba(34, 197, 94, 0.2); color: #22c55e; }

/* ========== 试镜记录 ========== */
.participations-list { display: flex; flex-direction: column; gap: 12px; }
.participation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.participation-main { display: flex; flex-direction: column; gap: 4px; }
.participation-title { font-weight: 600; color: var(--text-primary); }
.participation-title:hover { color: var(--gold); }
.participation-role { font-size: 14px; color: var(--text-secondary); }
.participation-status { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 4px; }
.participation-status-approved { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.participation-status-pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.participation-status-rejected { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* ========== 消息中心 ========== */
.messages-list { display: flex; flex-direction: column; gap: 12px; }
.message-item {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.message-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.message-item-title { font-weight: 600; font-size: 15px; }
.message-item-time { font-size: 12px; color: var(--text-muted); }
.message-item-content { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.message-item-actions { margin-top: 8px; }
.message-link { font-size: 13px; color: var(--gold); }
.message-link:hover { text-decoration: underline; }

/* ========== 演员档案（两栏：基础资料 / 技能标签 / 形象库 | 主演等级 / 成就 / 近期数据）========== */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.archive-left { display: flex; flex-direction: column; gap: 24px; }
.archive-right { display: flex; flex-direction: column; gap: 24px; }

.archive-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.archive-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.archive-card-title-star {
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-star-icon {
  color: var(--neon-purple);
  font-size: 18px;
  -webkit-text-stroke: 1px var(--neon-purple);
}

.archive-basic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.archive-basic-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive-label {
  font-size: 12px;
  color: var(--text-muted);
}

.archive-value {
  font-size: 14px;
  color: var(--text-primary);
}

.archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-tag {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-primary);
  border: 1px solid var(--neon-purple);
  border-radius: 20px;
  background: transparent;
}

.archive-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.archive-gallery-item {
  aspect-ratio: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.archive-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-gallery-placeholder {
  color: var(--text-muted);
  font-size: 28px;
  opacity: 0.5;
}

.archive-level-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.archive-progress-wrap { margin-bottom: 0; }
.archive-progress-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.archive-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-purple) 0%, var(--neon-purple-light) 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.archive-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.archive-badge-item {
  flex: 1;
  min-width: 80px;
  padding: 16px 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(184, 134, 11, 0.2) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 13px;
  color: var(--text-primary);
}

.archive-badge-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.archive-recent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.archive-recent-icon {
  color: #22c55e;
  font-size: 20px;
  font-weight: 700;
}

.archive-recent-text {
  font-size: 14px;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .archive-layout { grid-template-columns: 1fr; }
}

/* 设置弹窗 - 形象库上传 */
.profile-gallery-upload {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-gallery-slot {
  aspect-ratio: 1;
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.profile-gallery-slot:hover { border-color: var(--neon-purple); }
.profile-gallery-slot img { width: 100%; height: 100%; object-fit: cover; }
.profile-gallery-slot .profile-gallery-slot-placeholder {
  color: var(--text-muted);
  font-size: 24px;
  opacity: 0.6;
}
.profile-gallery-slot input[type="file"] { display: none; }

/* ========== 演员档案（旧：演员网格，保留供它用）========= */
.content-section { padding: 40px 0; }

.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.filter-select { width: auto; min-width: 120px; padding: 8px 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); }
.toolbar-actions { display: flex; gap: 12px; }
.stats-row { margin-bottom: 24px; font-size: 14px; color: var(--text-secondary); }
.stats-row strong { color: var(--gold); margin: 0 4px; }

.actor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.actor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}

.actor-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.actor-photo-container {
  position: relative;
  height: 200px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.actor-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

.actor-badge-public { background: rgba(34, 211, 238, 0.2); color: var(--neon-cyan); }
.actor-badge-pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.actor-badge-private { background: rgba(148, 163, 184, 0.15); color: var(--text-secondary); }

.actor-photo-main { width: 100%; height: 100%; object-fit: cover; }
.actor-photo-placeholder { color: var(--text-muted); font-size: 48px; opacity: 0.5; }

.actor-info { padding: 18px; }
.actor-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.actor-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.actor-actions { display: flex; gap: 8px; }

/* ========== 空状态 ========== */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon { font-size: 64px; margin-bottom: 20px; opacity: 0.4; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { font-size: 14px; color: var(--text-muted); }

/* ========== 表单与模态框 ========== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 13px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.required { color: var(--danger); }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group-checkbox { margin-bottom: 0; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-secondary); }
.checkbox-label input { width: auto; accent-color: var(--gold); }

.photo-views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-view-item label { display: block; margin-bottom: 8px; font-size: 12px; color: var(--text-secondary); }
.photo-preview {
  aspect-ratio: 1;
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.photo-preview:hover { border-color: var(--gold); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-text { font-size: 12px; color: var(--text-muted); }

input[type="file"] { display: none; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 1000; overflow-y: auto; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-close { width: 36px; height: 36px; background: none; border: none; color: var(--text-secondary); font-size: 24px; cursor: pointer; }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 20px 24px; border-top: 1px solid var(--border); }

/* 修改资料弹窗 - 分区 */
.modal-profile .modal-body { max-height: 70vh; overflow-y: auto; }
.profile-form-section { margin-bottom: 24px; }
.profile-form-section:last-of-type { margin-bottom: 0; }
.profile-form-section-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); }
.profile-form-section-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.profile-form-avatar-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-form-avatar-preview {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-secondary); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  overflow: hidden;
}
.profile-form-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-input { display: none; }
.coop-desc { margin-bottom: 16px; color: var(--text-secondary); font-size: 14px; }

/* 响应式 */
@media (max-width: 768px) {
  .main-content { padding: 0 0 60px; }
  .profile-hero-inner { padding-top: 100px; padding-bottom: 20px; }
  .profile-card-main { flex-direction: column; align-items: flex-start; margin-top: -60px; }
  .profile-card-avatar { width: 96px; height: 96px; font-size: 36px; }
  .profile-card-name { font-size: 22px; }
  .profile-stats { gap: 20px; }
  .profile-actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .profile-card { flex-direction: column; align-items: flex-start; }
  .profile-tabs-wrap { margin-top: 24px; }
  .center-tabs.profile-tabs .center-tab { padding: 10px 16px; font-size: 14px; }
  .panel-title { font-size: 18px; }
  .panel-desc { font-size: 13px; margin-bottom: 20px; }
  .works-grid { grid-template-columns: 1fr; gap: 16px; }
  .work-card-body { padding: 14px; }
  .work-card-title { font-size: 15px; }
  .participations-list { gap: 10px; }
  .participation-item { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .archive-card { padding: 16px 18px; }
  .archive-basic-grid { grid-template-columns: 1fr; gap: 10px; }
  .archive-tags { gap: 8px; }
  .archive-tag { font-size: 12px; padding: 5px 12px; }
  .archive-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .profile-gallery-upload { grid-template-columns: repeat(2, 1fr); }
  .archive-badges { flex-direction: column; }
  .archive-badge-item { min-width: 0; }
  .empty-state { padding: 48px 16px; }
  .empty-icon { font-size: 48px; }
}
