/* pages/profile.css — 个人中心弹窗样式 */

.profile-modal-content {
  max-width: 480px;
  width: 92%;
  padding: 32px;
  max-height: 85vh;
  overflow-y: auto;
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.profile-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.profile-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.profile-close-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.profile-close-btn svg {
  width: 16px;
  height: 16px;
}

/* 头像区 */
.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.profile-avatar-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.profile-avatar-actions {
  display: flex;
  gap: 8px;
}

.small-btn {
  padding: 6px 14px;
  font-size: 12px;
}

/* 信息区 */
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-value {
  font-size: 14px;
  color: var(--text-primary);
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.profile-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 24px 0;
}

.profile-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-error {
  font-size: 13px;
  color: #ff4757;
  text-align: center;
  min-height: 20px;
}

/* 头像裁剪弹窗 */
.crop-modal-content {
  max-width: 420px;
  width: 94%;
  padding: 24px;
}

.crop-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.crop-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.crop-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #0a0a14;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: move;
  border: 1px solid var(--border-subtle);
}

#cropCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.crop-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.crop-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.crop-actions .cyber-btn {
  flex: 1;
  max-width: 140px;
}

/* 手机端 */
@media (max-width: 480px) {
  .crop-modal-content {
    width: 96%;
    padding: 20px 14px;
  }

  .crop-actions .cyber-btn {
    max-width: 120px;
  }
}
