.content-page {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  height: 100%;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.content-header h2 {
  font-size: var(--font-xl);
}

.content-search {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex: 1;
  max-width: 400px;
}

.content-search .btn {
  height: 40px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-input-wrapper input {
  padding-left: 38px;
  height: 40px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: var(--spacing-lg);
}

.voice-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) var(--spacing-md);
}

.voice-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.voice-info {
  flex: 1;
  min-width: 0;
}

.voice-name {
  font-weight: 600;
  font-size: var(--font-base);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

/* ============================================================
   音频素材列表 — 复用 VoiceDubbing 的 voice-row 样式
   ============================================================ */

.voice-row {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: default;
  transition: all var(--transition-fast);
}

.voice-row:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

.voice-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.voice-row-info {
  flex: 1;
  min-width: 0;
}

.voice-row-name {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.voice-row-desc-inline {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  margin-left: 8px;
  font-weight: 400;
}

.voice-row-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-shrink: 0;
}

/* 图标按钮 — 播放/编辑/删除统一样式 */
.preview-icon,
.action-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  font-variant-emoji: text;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.preview-icon:hover,
.action-icon:hover {
  background: var(--primary);
  color: var(--text-inverse);
}

.preview-icon:disabled {
  opacity: 0.5;
  cursor: default;
}

/* 行内编辑输入框 */
.voice-name-input {
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  font-weight: 600;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-primary);
  width: 100px;
  max-width: 100%;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.voice-name-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.voice-name-input:disabled {
  opacity: 0.6;
  cursor: default;
}

.voice-meta {
  font-size: var(--font-xs);
  color: var(--text-tertiary);
}

.voice-actions {
  display: flex;
  gap: var(--spacing-xs);
}

/* Digital Human Card */
.dh-card {
  overflow: hidden;
}

.dh-preview {
  height: 180px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  position: relative;
}

.dh-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 40%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.dh-card:hover .dh-preview-overlay {
  opacity: 1;
}

.dh-card-info {
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dh-card-name {
  font-weight: 500;
  font-size: var(--font-sm);
  color: var(--text-primary);
}

/* Works Card */
.works-tabs {
  display: flex;
  gap: var(--spacing-xs);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0;
}

.works-tab {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-sm);
  font-family: var(--font-family);
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  margin-bottom: -1px;
}

.works-tab:hover {
  color: var(--text-primary);
}

.works-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
}

.work-card {
  overflow: hidden;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-2px);
}

.work-thumb {
  height: 160px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  position: relative;
}

.work-duration {
  position: absolute;
  bottom: var(--spacing-sm);
  right: var(--spacing-sm);
  background: rgb(0 0 0 / 60%);
  color: white;
  font-size: var(--font-xs);
  padding: var(--spacing-2xs) var(--spacing-xs);
  border-radius: var(--radius-sm);
}

.work-info {
  padding: var(--spacing-md) var(--spacing-lg);
}

.work-title {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Settings Page */
.settings-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.settings-section h2 {
  font-size: var(--font-lg);
  font-weight: 600;
  padding-left: var(--spacing-lg);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  gap: var(--spacing-md);
}

.settings-row-label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.settings-row-value {
  font-size: var(--font-sm);
  color: var(--text-primary);
  text-align: right;
  word-break: break-all;
}

/* ============================================================
   个人中心页面 (Profile) - PC 桌面端
   ============================================================ */

/* 顶部用户信息栏 */
.profile-topbar-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-xl);
  font-weight: 600;
  flex-shrink: 0;
  object-fit: cover;
}

.profile-topbar-logout {
  padding: 8px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  font-size: var(--font-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.profile-topbar-logout:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* ── Profile 页面重构样式（基于设计系统）── */

.profile-user-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) 28px;
}

.profile-user-info {
  flex: 1;
  min-width: 0;
}

.profile-nickname-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-nickname {
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.profile-nickname-input {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  width: 160px;
  font-family: inherit;
}

.profile-nickname-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.profile-nickname-input.error {
  border-color: var(--error);
}

.profile-nickname-error {
  color: var(--error);
  font-size: 12px;
}

.profile-edit-icon {
  cursor: pointer;
  flex-shrink: 0;
  color: var(--primary);
}

.profile-mobile {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

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

.profile-points-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: 20px 28px;
}

.profile-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  flex: 1;
}

.profile-points-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
}

.profile-points-label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.profile-points-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.profile-points-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.profile-points-value.primary {
  color: var(--primary);
}

.profile-points-value.danger {
  color: #ff6b6b;
}

.profile-points-unit {
  font-size: var(--font-sm);
  color: var(--text-tertiary);
}

.profile-points-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-points-corner-link {
  font-size: var(--font-xs);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.profile-points-corner-link:hover {
  color: var(--primary);
}

.profile-pricing-link {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.profile-pricing-link:hover {
  color: var(--primary);
}

.profile-recharge-header-btn {
  padding: 6px 14px;
  font-size: var(--font-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--primary);
  background: var(--bg-primary);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: var(--spacing-lg);
}

.profile-recharge-header-btn:hover {
  background: var(--primary);
  color: var(--text-inverse);
}

.profile-section-title {
  font-size: var(--font-md);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.profile-menu-list {
  padding: 0;
  overflow: hidden;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  cursor: pointer;
  font-size: var(--font-base);
  font-family: inherit;
  color: var(--text-primary);
  text-align: left;
  transition: background var(--transition-fast);
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover {
  background: var(--bg-hover);
}

.profile-menu-icon {
  font-size: 18px;
  line-height: 1;
  color: var(--text-secondary);
}

.profile-menu-label {
  flex: 1;
}

.profile-menu-arrow {
  color: var(--text-tertiary);
}

.profile-logout-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: none;
  background: transparent;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.profile-logout-btn:hover {
  color: var(--error);
}

/* 定价 Modal */
.profile-pricing-body {
  padding: 8px 4px;
}

.profile-pricing-table {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.profile-pricing-header {
  display: grid;
  grid-template-columns: 1fr 90px 140px;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.profile-pricing-header span:nth-child(2) {
  text-align: center;
}

.profile-pricing-header span:nth-child(3) {
  text-align: right;
}

.profile-pricing-row {
  display: grid;
  grid-template-columns: 1fr 90px 140px;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.profile-pricing-row:last-child {
  border-bottom: none;
}

.profile-pricing-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.profile-pricing-mode {
  text-align: center;
}

.profile-pricing-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.profile-pricing-tag.fixed {
  background: #e8f4fd;
  color: #1976d2;
}

.profile-pricing-tag.duration {
  background: #fff3e0;
  color: #e65100;
}

.profile-pricing-points {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
}

.profile-pricing-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-secondary);
  font-size: 14px;
}

.profile-pricing-detail-section {
  margin-top: var(--spacing-lg);
  padding: 16px 20px;
  background: #fff8f0;
  border-radius: 10px;
  border: 1px solid #ffe8d0;
}

.profile-pricing-detail-title {
  font-size: var(--font-sm);
  font-weight: 600;
  color: #d46b08;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-pricing-detail-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.profile-pricing-detail-row strong {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.profile-pricing-info-section {
  margin-top: var(--spacing-lg);
  padding: 16px 20px;
  background: #f8faf8;
  border-radius: 10px;
  border: 1px solid #e8f0e8;
}

.profile-pricing-info-title {
  font-size: var(--font-sm);
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-pricing-info-list {
  margin: 0;
  padding-left: 18px;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.profile-card-flat {
  padding: 0;
  overflow: hidden;
}

/* ── 页面返回按钮 ── */
.page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--font-sm);
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.page-back-btn:hover {
  color: var(--primary);
  background: var(--bg-hover);
}

.page-back-btn svg {
  flex-shrink: 0;
}

/* ── AppHeader ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.app-header-title {
  font-size: var(--font-xl);
  font-weight: 600;
  margin: 0;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.profile-edit-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-section-spaced {
  margin-top: var(--spacing-lg);
}

.profile-pricing-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.profile-pricing-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Avatar Clone Card - 这个就是我们要复用的样式 */
.avatar-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: var(--spacing-sm);
  transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  cursor: default;
  align-self: start;
}

.avatar-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
}

.avatar-card-thumb-container {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-input);
  position: relative;
  z-index: 1;
}

.avatar-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal) ease, opacity 0.3s ease;
  background: var(--bg-input);
  display: block;
}

/* 居中播放按钮 - 默认隐藏，悬停显示 */
.avatar-card-thumb-container .avatar-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0 !important;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 10;
  padding: 0;
}

/* 鼠标悬停显示按钮 */
.avatar-card-thumb-container:hover .avatar-card-play-btn,
.avatar-card-thumb-container.playing .avatar-card-play-btn {
  opacity: 1 !important;
}

.avatar-card-thumb-container .avatar-card-play-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(1.1);
}

.avatar-card-thumb-container .avatar-card-play-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* 视频加载中状态 */
.avatar-card-video-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-input) 0%, var(--bg-hover) 100%);
  color: var(--text-tertiary);
  font-size: var(--font-sm);
}

.avatar-card-video-loading::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}



.avatar-card:hover .avatar-card-video {
  transform: scale(1.05);
}

.avatar-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  color: var(--text-tertiary);
  background: linear-gradient(135deg, var(--bg-input) 0%, var(--bg-hover) 100%);
}

.avatar-card-placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgb(255 255 255 / 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  backdrop-filter: blur(4px);
  border: 1px solid rgb(255 255 255 / 30%);
}

.avatar-card-placeholder span {
  font-size: var(--font-xs);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.avatar-card-actions {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  display: flex;
  gap: var(--spacing-sm);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  pointer-events: none;
}

.avatar-card:hover .avatar-card-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.avatar-card-action-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.avatar-card-action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.avatar-card-action-btn.delete:hover {
  background: var(--danger);
  border-color: var(--danger);
}

.avatar-card-info {
  padding: 0 var(--spacing-xs) var(--spacing-xs);
  min-width: 0;
}

.avatar-card-name {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.avatar-card-date {
  font-size: var(--font-xs);
  color: var(--text-tertiary);
}

.avatar-card-name-input {
  width: 100%;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0 var(--spacing-xs);
  height: 24px;
  line-height: 24px;
  outline: none;
  margin-bottom: 4px;
}

.avatar-card-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  z-index: 5;
}

.avatar-card:hover .avatar-card-play-overlay,
.avatar-card.playing .avatar-card-play-overlay {
  opacity: 1;
}

.avatar-card-thumb-container {
  cursor: pointer;
}

.avatar-card.playing {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light), 0 12px 24px -8px rgba(0, 0, 0, 0.12);
}

.avatar-card.playing .avatar-card-video {
  transform: scale(1.05);
}

/* Avatar Grid Layout */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-xl);
  padding: var(--spacing-sm) var(--spacing-xs);
  flex: 1;
}

/* 封面形象网格 — 复用 works-card 风格 */
.cover-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--spacing-lg);
  padding: var(--spacing-sm) var(--spacing-xs);
  flex: 1;
  align-content: start;
  align-items: start;
  overflow-y: auto;
}

/* 封面形象：封面区域使用 3:4 比例（照片尺寸） */
.cover-avatar-grid .works-card-cover {
  aspect-ratio: 3 / 4;
}

.cover-avatar-grid .works-card-cover::before {
  padding-top: 133.33%; /* 4/3 * 100 = 133.33% for 3:4 ratio */
}

/* 封面形象：图片使用 contain 以适应透明背景 */
.cover-avatar-grid .works-card-poster {
  object-fit: contain;
  background: var(--bg-input);
}

/* Content Page Compact variant */
.content-page-compact {
  gap: var(--spacing-md);
}

/* Pagination Container */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* Empty State Full Width */
.empty-state-full {
  grid-column: 1 / -1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl);
}

/* Delete Confirmation Modal - 已迁移到 ConfirmModal 组件 */

/* Usage Detail - 使用明细表格 */
.usage-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  gap: var(--spacing-md);
}

.usage-filter-bar .filter-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.usage-filter-bar .filter-label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

.usage-filter-bar .filter-input-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.usage-filter-bar .filter-input-box {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: var(--font-sm);
  color: var(--text-primary);
  min-width: 180px;
}

.usage-filter-bar .filter-separator {
  color: var(--text-tertiary);
  font-size: var(--font-sm);
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
}

.usage-table thead tr {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-light);
}

.usage-table th {
  padding: var(--spacing-md) var(--spacing-md);
  text-align: left;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.usage-table tbody tr {
  border-bottom: 1px solid var(--border-light);
}

.usage-table tbody tr:hover {
  background: var(--bg-hover);
}

.usage-table td {
  padding: var(--spacing-md) var(--spacing-md);
  font-size: var(--font-sm);
  color: var(--text-primary);
  vertical-align: middle;
}

.usage-table td.description-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 表格标签统一样式 */
.tx-tag {
  display: inline-block;
  font-size: var(--font-sm);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* End Usage Detail */

/* ============================================================
   成品卡片样式 - 完全复用 avatar-card 风格
   ============================================================ */

/* Products Grid - 和 avatar-grid 完全一致 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-xl);
  padding: var(--spacing-sm) var(--spacing-xs);
  flex: 1;
}

/* 成品卡片 - 和 avatar-card 完全一样 */
.product-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: var(--spacing-sm);
  transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  cursor: pointer;
  align-self: start;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
}

/* 成品视频容器 - 9:16 比例（视频尺寸） */
.product-video-container {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-input);
  position: relative !important;
  z-index: 1;
}

.product-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal) ease, opacity 0.3s ease;
  background: var(--bg-input);
  display: block;
}

.product-card:hover .product-video {
  transform: scale(1.05);
}

/* 操作按钮 - 和 avatar-card-actions 位置样式一致 */
.product-overlay {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  display: flex;
  gap: var(--spacing-xs);
}

.product-card:hover .product-overlay {
  opacity: 1;
  transform: translateY(0);
}

.product-action-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product-action-btn:hover {
  transform: scale(1.1);
}

.product-rename-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.product-delete-btn:hover {
  background: var(--danger);
  border-color: var(--danger);
}

/* 重命名编辑浮层 */
.rename-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  z-index: 15;
  border-radius: var(--radius-lg);
}

.rename-form {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
  background: var(--bg-card);
  padding: var(--spacing-sm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary);
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rename-form input {
  flex: 1;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-sm);
  background: var(--bg-input);
  border: none;
  border-radius: var(--radius-md);
  outline: none;
  color: var(--text-primary);
}

.rename-form .save-btn,
.rename-form .cancel-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.rename-form .save-btn {
  background: var(--primary);
  color: white;
}

.rename-form .save-btn:hover {
  transform: scale(1.1);
}

.rename-form .cancel-btn {
  background: var(--bg-input);
  color: var(--text-primary);
}

.rename-form .cancel-btn:hover {
  transform: scale(1.1);
}

.product-info {
  padding: 0 var(--spacing-xs) var(--spacing-xs);
  min-width: 0;
}

.product-name {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.product-meta {
  font-size: var(--font-xs);
  color: var(--text-tertiary);
  display: flex;
  gap: 4px;
}

.product-meta .separator {
  opacity: 0.5;
}

/* ============================================================
   草稿箱列表样式 - 文字列表，无缩略图
   ============================================================ */

.drafts-list-container {
  flex: 1;
}

.drafts-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.draft-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.draft-list-item:hover {
  border-color: var(--primary-light);
  background: var(--bg-hover);
  transform: translateX(2px);
}

.draft-info {
  flex: 1;
  min-width: 0;
}

.draft-title {
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-title-input {
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  width: 100%;
  max-width: 280px;
  outline: none;
}

.draft-edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.draft-list-item:hover .draft-edit-btn {
  opacity: 1;
}

.draft-edit-btn:hover {
  background: var(--bg-hover);
  color: var(--primary);
}

.draft-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.draft-list-item:hover .draft-delete-btn {
  opacity: 1;
}

.draft-delete-btn:hover {
  background: var(--bg-hover);
  color: var(--danger);
}

.draft-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-xs);
  color: var(--text-tertiary);
}

.draft-topic {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.8;
}

.draft-arrow {
  flex-shrink: 0;
  color: var(--text-tertiary);
  opacity: 0.5;
}

.draft-list-item:hover .draft-arrow {
  opacity: 0.8;
}

/* ============================================================
   我的作品 - 全新样式
   ============================================================ */

/* Tab 栏 - Pill 样式 */
.works-tabs-bar {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs);
  background: var(--bg-input);
  border-radius: var(--radius-lg);
  width: fit-content;
}

.works-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-sm);
  font-family: var(--font-family);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.works-tab-pill:hover {
  color: var(--text-primary);
}

.works-tab-pill.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.works-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: var(--font-xs);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-full);
}

.works-tab-pill.active .works-tab-count {
  background: rgba(255, 255, 255, 0.25);
}

/* 网格布局 - 一行4个 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--spacing-lg);
  flex: 1;
  align-content: start;
  align-items: start;
  grid-auto-rows: min-content;
}

/* 成品卡片 */
.works-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: var(--spacing-sm);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.works-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.1);
}

.works-card.playing {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light), 0 8px 24px -6px rgba(0, 0, 0, 0.1);
}

/* 封面区域 - 9:16 比例（视频尺寸）- 缩小以显示更多行 */
.works-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--bg-input);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

/* 确保封面高度始终正确（兼容 aspect-ratio 支持不佳的环境） */
.works-card-cover::before {
  content: '';
  display: block;
  padding-top: 177.78%; /* 16/9 * 100 = 177.78% for 9:16 ratio */
}

.works-card-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.works-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 播放按钮 */
.works-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 5;
  padding: 0;
}

.works-card:hover .works-card-play-btn,
.works-card.playing .works-card-play-btn {
  opacity: 1;
}

.works-card-play-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%) scale(1.1);
}

/* 加载状态 */
.works-card-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  z-index: 3;
}

.works-card-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 占位 */
.works-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}

/* 操作按钮 */
.works-card-overlay {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  display: flex;
  gap: var(--spacing-xs);
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 10;
}

.works-card:hover .works-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.works-card-action {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.works-card-action:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.works-card-action.delete:hover {
  background: var(--danger);
  border-color: var(--danger);
}

/* 信息区域 */
.works-card-info {
  padding: var(--spacing-sm) var(--spacing-md) 0;
}

.works-card-name {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.works-card-meta {
  font-size: var(--font-xs);
  color: var(--text-tertiary);
}

/* 重命名 */
.works-card-rename {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: 4px;
}

.works-card-rename-input {
  flex: 1;
  min-width: 0;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  outline: none;
  font-family: inherit;
}

.works-card-rename-ext {
  font-size: var(--font-sm);
  color: var(--text-tertiary);
  font-weight: 500;
  flex-shrink: 0;
}

/* 分页 - 与 VideoGeneration 统一 */
.pagination {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs);
  background: var(--bg-input);
  border-radius: var(--radius-lg);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg-card);
  color: var(--text-primary);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pagination-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination-btn.nav {
  width: auto;
  padding: 0 var(--spacing-sm);
  font-size: var(--font-xs);
}

/* ============================================================
   声音克隆页面样式
   ============================================================ */

.voice-clone-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.voice-clone-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.voice-clone-title-group h2 {
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.voice-clone-desc {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin: 0;
}

.voice-upload-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 12px 18px;
  background: #f0fdf4;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.voice-upload-card:hover {
  background: #ecfdf5;
  transform: translateY(-1px);
}

.voice-upload-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.voice-upload-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.voice-upload-title {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--text-primary);
}

.voice-upload-hint {
  font-size: var(--font-xs);
  color: var(--text-secondary);
}

.voice-upload-arrow {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.voice-upload-card:hover .voice-upload-arrow {
  transform: translateX(4px);
}

/* ============================================================
   我的作品页面样式
   ============================================================ */

.works-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.works-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.works-title-group h2 {
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.works-desc {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* End 声音克隆页面样式 */

.empty-state-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 400px;
  gap: var(--spacing-md);
  padding: var(--spacing-3xl);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-placeholder);
}

.empty-state-title {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--text-secondary);
}

.empty-state-desc {
  font-size: var(--font-sm);
  color: var(--text-tertiary);
  text-align: center;
  max-width: 280px;
  line-height: 1.6;
}

/* ============================================================
   关于我们 (About) - 品牌展示 + 版本更新
   ============================================================ */

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.about-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.about-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.about-name {
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.about-version-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 0;
  gap: 0;
}

.about-version-row > .about-check-btn {
  padding-top: 0;
  padding-bottom: 0;
  min-height: unset;
  line-height: 1.4;
}

.about-version-text {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  cursor: default;
  user-select: none;
  flex-shrink: 0;
  font-weight: 500;
}

.about-version-status {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  min-height: 0;
}

.about-checking-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-sm);
  color: var(--text-tertiary);
}

.about-check-result {
  font-size: var(--font-sm);
  font-weight: 500;
  white-space: nowrap;
}

.about-check-latest {
  color: var(--success);
}

.about-check-available {
  color: var(--primary);
}

.about-check-btn {
  flex-shrink: 0;
  background: transparent;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 4px 10px;
  font-size: var(--font-xs);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.about-check-btn:hover:not(:disabled) {
  background: rgba(54, 178, 106, 0.08);
}

.about-check-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.about-update-detail {
  width: 100%;
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border-light);
  background: var(--bg-input);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.about-update-body-title {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.about-update-body pre {
  font-size: var(--font-sm);
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 0;
  color: var(--text-primary);
}

.about-update-progress {
  margin-bottom: var(--spacing-sm);
}

.about-progress-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.about-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s;
}

.about-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-xs);
  color: var(--text-tertiary);
  margin-top: 4px;
}

.about-update-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
}

.about-update-error {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: #fef2f2;
  color: #dc2626;
  font-size: var(--font-sm);
  border-radius: var(--radius-md);
}
