/**
 * Component Styles for 3DP Worktop Theme
 *
 * @package 3DP_Worktop
 * @since 1.0.0
 */

/* Universal Avatar Styles - All avatars should be circular */
.avatar,
.avatar-image,
.current-avatar,
.avatar-img,
.user-avatar img,
.panel-avatar-image,
img[class*="avatar"],
img[src*="avatar"],
img[src*="gravatar"],
img.avatar,
img.avatar-image,
img.avatar-img,
img.current-avatar,
img.panel-avatar-image,
/* WordPress default avatar classes */
img.avatar-28,
img.avatar-32,
img.avatar-60,
img.avatar-120,
img.photo,
.wp-user-avatar img {
  border-radius: 50% !important;
  object-fit: cover !important;
}



/* Featured Content Tabs */
.featured-tabs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

.featured-tabs {
  display: flex;
  gap: 1rem;
}

.featured-tab-btn {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.featured-tab-btn:hover,
.featured-tab-btn.active {
  background: transparent;
  color: var(--primary-pink);
  border-color: var(--primary-pink);
}



/* Featured Content Tabs */
.featured-content-tabs {
  position: relative;
}

.featured-tab-content {
  display: none;
}

.featured-tab-content.active {
  display: block;
}

/* Shimmer Loading Effect */
.loading-placeholder {
  width: 100%;
}

.shimmer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.shimmer-item {
  position: relative;
  background: var(--glass-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.shimmer-image {
  width: 100%;
  height: 80%;
  background: linear-gradient(90deg,
    var(--glass-bg) 0%,
    rgba(255,255,255,0.1) 50%,
    var(--glass-bg) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.shimmer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
}

.shimmer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.shimmer-text {
  flex: 1;
  height: 12px;
  margin: 0 0.75rem;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

.shimmer-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Empty and Error States */
.empty-state,
.error-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-state p,
.error-state p {
  font-size: 1.125rem;
  margin: 0;
}

.error-state {
  color: #dc3232;
}

/* Search Form Enhancements */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.search-form.focused {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.2);
}

.search-field {
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  width: 200px;
  transition: width var(--transition-speed) ease;
}

.search-field:focus {
  outline: none;
  width: 250px;
}

.search-field::placeholder {
  color: var(--text-tertiary);
}

.search-submit {
  background: transparent;
  border: none;
  padding: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}

.search-submit:hover {
  color: var(--primary-pink);
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-menu {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  padding: 0 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

.language-btn:hover {
  background: transparent;
  color: var(--primary-pink);
  border-color: var(--primary-pink);
}

.current-language {
  font-size: 0.875rem;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(110%);
  -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(110%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

.language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.language-options {
  padding: 0.75rem 0;
  position: relative;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  font-size: 0.9375rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.language-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
  transition: left 0.5s ease;
}

.language-option:hover::before {
  left: 100%;
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.language-option.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

.lang-name {
  font-weight: var(--font-weight-medium);
  position: relative;
  z-index: 2;
}

.lang-code {
  font-size: 0.75rem;
  opacity: 0.7;
  font-weight: var(--font-weight-semibold);
  position: relative;
  z-index: 2;
}

/* Enhanced Glassmorphism Effects - 仅在浅色模式下启用 */
[data-theme="light"] .user-dropdown,
[data-theme="light"] .language-dropdown {
  /* 添加微妙的扭曲效果 */
  filter: contrast(1.1) brightness(1.05);
}

/* 深色模式下禁用filter效果以避免闪烁 */
[data-theme="dark"] .user-dropdown,
[data-theme="dark"] .language-dropdown {
  filter: none;
}

.user-dropdown::after,
.language-dropdown::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(255, 255, 255, 0.1) 100%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.6;
  z-index: -1;
}

/* 添加微妙的水波纹效果 */
@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* 禁用深色模式下的ripple动画以避免闪烁 */
[data-theme="light"] .user-dropdown.show::after,
[data-theme="light"] .language-dropdown.show::after {
  animation: ripple 0.6s ease-out;
}

/* 深色模式下禁用ripple动画 */
[data-theme="dark"] .user-dropdown.show::after,
[data-theme="dark"] .language-dropdown.show::after {
  animation: none;
}

/* 暗色主题下的特殊效果 */
[data-theme="dark"] .user-dropdown,
[data-theme="dark"] .language-dropdown {
  background: rgba(30, 30, 30, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transition: opacity 0.25s cubic-bezier(0.4, 0.0, 0.2, 1),
              visibility 0.25s cubic-bezier(0.4, 0.0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

[data-theme="dark"] .user-dropdown::before,
[data-theme="dark"] .language-dropdown::before {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.01) 100%);
}

[data-theme="dark"] .user-info {
  background: rgba(255, 255, 255, 0.02);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* 亮色主题下的特殊效果 */
[data-theme="light"] .user-dropdown,
[data-theme="light"] .language-dropdown {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(110%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(110%) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .user-dropdown::before,
[data-theme="light"] .language-dropdown::before {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%) !important;
}

[data-theme="light"] .user-info {
  background: rgba(0, 0, 0, 0.02) !important;
  border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .user-menu-item:hover,
[data-theme="light"] .language-option:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* 白天模式下的logout特殊样式 */
[data-theme="light"] .user-menu-item.logout {
  color: #ef4444 !important;
}

[data-theme="light"] .user-menu-item.logout:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #ef4444 !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15) !important;
}

/* 扫光效果 - 主题适配 */
[data-theme="light"] .user-menu-item::before,
[data-theme="light"] .language-option::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 50%,
    transparent 100%) !important;
  z-index: 1 !important;
}

[data-theme="dark"] .user-menu-item::before,
[data-theme="dark"] .language-option::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 100%) !important;
  z-index: 1 !important;
}

/* 确保扫光效果在悬停时触发 */
[data-theme="light"] .user-menu-item:hover::before,
[data-theme="light"] .language-option:hover::before {
  left: 100% !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 50%,
    transparent 100%) !important;
}

/* 白天模式logout的特殊扫光效果 */
[data-theme="light"] .user-menu-item.logout::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(239, 68, 68, 0.12) 50%,
    transparent 100%) !important;
}

[data-theme="light"] .user-menu-item.logout:hover::before {
  left: 100% !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(239, 68, 68, 0.2) 50%,
    transparent 100%) !important;
}

[data-theme="dark"] .user-menu-item:hover::before,
[data-theme="dark"] .language-option:hover::before {
  left: 100% !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%) !important;
}

/* 暗黑模式logout的特殊扫光效果 */
[data-theme="dark"] .user-menu-item.logout {
  color: #ef4444 !important;
}

[data-theme="dark"] .user-menu-item.logout::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(239, 68, 68, 0.15) 50%,
    transparent 100%) !important;
}

[data-theme="dark"] .user-menu-item.logout:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}

[data-theme="dark"] .user-menu-item.logout:hover::before {
  left: 100% !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(239, 68, 68, 0.25) 50%,
    transparent 100%) !important;
}

/* 强制覆盖默认的扫光效果 */
[data-theme="light"] .user-menu-item::before,
[data-theme="light"] .language-option::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 50%,
    transparent 100%) !important;
  transition: left 0.5s ease !important;
  z-index: 1 !important;
}

/* 主题特定的sidebar-info样式现在通过CSS变量自动适配 */

/* 浅色模式下增强所有边框对比度 */
[data-theme="light"] .grid-item,
[data-theme="light"] .profile-card,
[data-theme="light"] .content-filter-btn,
[data-theme="light"] .btn,
[data-theme="light"] .modal-content,
[data-theme="light"] .share-url-container input,
[data-theme="light"] .copy-url-btn {
  border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Light theme copy button text color */
[data-theme="light"] .copy-url-btn {
  color: rgba(0, 0, 0, 0.8);
  background: rgba(255, 255, 255, 0.8);
}

/* 浅色模式下的分割线增强 */
[data-theme="light"] .profile-stats,
[data-theme="light"] .modal-header {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Dark theme specific styles for content filter buttons */
[data-theme="dark"] .content-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .content-filter-btn.active {
  background: rgba(255, 255, 255, 0.12);
}

/* Light theme specific styles for content filter buttons */
[data-theme="light"] .content-filter-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .content-filter-btn.active {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .content-filter-btn.active:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Report Modal Styles */
.report-form {
  padding: 0;
}

.report-section {
  margin-bottom: 1.5rem;
}

.report-section-title {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.required {
  color: #ff4757;
  margin-left: 0.25rem;
}

.report-category {
  margin-bottom: 1.5rem;
}

.category-label {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.report-option {
  padding: 0.5rem 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.report-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.report-option.selected {
  background: var(--glass-bg);
  color: var(--text-primary);
  border-color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.report-textarea-wrapper {
  width: 100%;
  position: relative;
}

.report-textarea-wrapper textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  font-size: 0.875rem;
  resize: vertical;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.report-textarea-wrapper textarea:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.character-count {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  pointer-events: none;
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.submit-report-btn {
  padding: 0.75rem 1.5rem;
  font-weight: var(--font-weight-medium);
}

.submit-report-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 浅色模式下的Report弹窗样式 */
[data-theme="light"] .report-option {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .report-option:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .report-option.selected {
  background: rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .report-textarea-wrapper textarea {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .report-textarea-wrapper textarea:focus {
  border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Feedback Modal Styles - Reuse Report Modal Styles */
#feedback-modal .report-form {
  padding: 0;
}

#feedback-modal .report-section {
  margin-bottom: 1.5rem;
}

#feedback-modal .report-section-title {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

#feedback-modal .report-category {
  margin-bottom: 1.5rem;
}

#feedback-modal .category-label {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

#feedback-modal .category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#feedback-modal .report-option {
  padding: 0.5rem 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#feedback-modal .report-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

#feedback-modal .report-option.selected {
  background: var(--glass-bg);
  color: var(--text-primary);
  border-color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Image Upload Styles */
.image-upload-wrapper {
  width: 100%;
  position: relative;
}

.upload-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.upload-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.image-preview {
  margin-top: 0.75rem;
  position: relative;
  display: inline-block;
}

.image-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: var(--border-radius-small);
  border: 1px solid var(--glass-border);
}

.remove-image-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-image-btn:hover {
  background: #ff3742;
  transform: scale(1.1);
}

#feedback-modal .submit-feedback-btn {
  padding: 0.75rem 1.5rem;
  font-weight: var(--font-weight-medium);
}

#feedback-modal .submit-feedback-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Light theme styles for feedback modal */
[data-theme="light"] #feedback-modal .report-option {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] #feedback-modal .report-option:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] #feedback-modal .report-option.selected {
  background: rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .upload-btn {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .upload-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Contact input field styles */
#feedback-contact {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

#feedback-contact:focus {
  outline: none;
  border-color: var(--text-primary) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

#feedback-contact::placeholder {
  color: var(--text-secondary);
}

/* Light theme styles for contact input */
[data-theme="light"] #feedback-contact {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] #feedback-contact:focus {
  border-color: rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* Sidebar Notifications Styles */
.sidebar-notifications {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  margin-bottom: 1rem; /* 与版权信息保持间距 */
}

/* 浅色主题下的通知区域上边框 */
[data-theme="light"] .sidebar-notifications {
  border-top-color: rgba(0, 0, 0, 0.25) !important;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-item:hover {
  background: transparent;
  border-color: var(--primary-pink);
}

/* 浅色主题悬停样式已在下方统一定义 */

.notification-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff4757;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
}

/* 收起状态下的徽章位置调整 */
.sidebar.collapsed .notification-badge,
html.sidebar-collapsed-init .notification-badge {
  top: -8px;
  right: -8px;
}

.notification-text {
  color: var(--text-secondary); /* 默认使用次要颜色，与导航菜单一致 */
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  transition: color 0.2s ease; /* 添加颜色过渡效果 */
}

/* Sidebar collapsed state - hide text, show only icon */
.sidebar.collapsed .notification-text,
html.sidebar-collapsed-init .notification-text {
  display: none;
}

.sidebar.collapsed .notification-item,
html.sidebar-collapsed-init .notification-item {
  justify-content: center;
  padding: 0.75rem 0.5rem;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sidebar.collapsed .notification-item:hover,
html.sidebar-collapsed-init .notification-item:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.sidebar.collapsed .notification-icon:hover,
html.sidebar-collapsed-init .notification-icon:hover {
  color: var(--primary-pink);
  transform: scale(1.1);
  transition: all 0.2s ease;
}

.sidebar.collapsed .notification-icon,
html.sidebar-collapsed-init .notification-icon {
  cursor: pointer;
}

/* Notifications Modal Styles */
.notifications-modal {
  z-index: 100001;
}

.notifications-modal-content {
  max-width: 500px;
  width: 90%;
  max-height: 600px;
}

.notifications-header {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mark-all-read-btn {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-width: 100px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mark-all-read-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.mark-all-read-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.mark-all-read-btn:hover::before {
  left: 100%;
}

.mark-all-read-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mark-all-read-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-tertiary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.mark-all-read-btn:disabled::before {
  display: none;
}

.mark-all-read-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: none;
  box-shadow: none;
}

/* 按钮内容包装器 */
.mark-all-read-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  position: relative;
  z-index: 1;
}

.mark-all-read-btn-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.mark-all-read-btn:hover .mark-all-read-btn-icon {
  transform: scale(1.1);
}

.mark-all-read-btn.loading .mark-all-read-btn-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(255, 107, 157, 0.4);
  }
  50% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(255, 107, 157, 0.1);
  }
}

.mark-all-read-btn.success {
  animation: pulse 0.6s ease-out;
}

/* 成功状态的特殊样式 */
.mark-all-read-btn.success .mark-all-read-btn-icon {
  color: #22c55e;
}

/* 微妙的呼吸效果 */
.mark-all-read-btn:not(:disabled):not(.loading) {
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  }
}

.notifications-body {
  padding: 0;
}

.notification-tabs {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
}

.notification-tab {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.notification-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.notification-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--primary-pink);
  background: rgba(255, 255, 255, 0.08);
}

.notifications-modal .notification-content {
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
}

.notification-tab-content {
  display: none;
  padding: 2rem;
}

.notification-tab-content.active {
  display: block;
}

.notification-empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: 2rem 1rem;
}

.empty-icon {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.notification-empty p {
  font-size: 0.875rem;
  margin: 0;
}

/* 通知加载状态 */
.notification-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.notification-loading .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--glass-border);
  border-top: 3px solid var(--primary-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.notification-loading p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.875rem;
}

/* 通知错误状态 */
.notification-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.notification-error p {
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
}

.notification-error .retry-btn {
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-small);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-error .retry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification-message {
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.notification-message:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-message.unread {
  border-left: 3px solid var(--primary-pink);
  background: rgba(255, 107, 157, 0.05);
}

.notification-message.unread::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--primary-pink);
  border-radius: 50%;
}

.notification-message.read {
  opacity: 0.8;
}

.notification-message.expanded {
  background: rgba(255, 255, 255, 0.1);
}

.notification-message.expanded .notification-message-content {
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}

.notification-message:not(.expanded) .notification-message-content {
  display: none;
}

.notification-message-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  position: relative;
}

.notification-message-title {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
  flex: 1;
  margin-right: 1rem;
  /* 文本溢出处理 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  word-break: break-word;
}

.notification-message-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: var(--font-weight-normal);
  line-height: 1.4;
}

.notification-message-content {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  /* 内容溢出处理 */
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* 自定义滚动条样式 */
.notification-message-content::-webkit-scrollbar {
  width: 4px;
}

.notification-message-content::-webkit-scrollbar-track {
  background: transparent;
}

.notification-message-content::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: 2px;
  opacity: 0.3;
}

.notification-message-content::-webkit-scrollbar-thumb:hover {
  opacity: 0.6;
}

.notification-message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

.notification-read-status {
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.notification-message.unread .notification-read-status {
  display: none;
}

.notification-expand-hint {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.notification-message:hover .notification-expand-hint {
  opacity: 1;
}

.notification-expand-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.notification-message.expanded .notification-expand-icon {
  transform: rotate(180deg);
}

.notification-message.expanded .notification-expand-hint {
  opacity: 0.5;
}

.notification-preview {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.375rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
  opacity: 0.9;
}

.notification-message.expanded .notification-preview {
  display: none;
}

/* 未读消息的特殊样式 */
.notification-message.unread .notification-message-title {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.notification-message.unread .notification-preview {
  opacity: 1;
  color: var(--text-primary);
}

.notification-message.unread .notification-message-time {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

/* Light theme adjustments */
[data-theme="light"] .notification-item {
  background: transparent !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

[data-theme="light"] .notification-item:hover {
  background: transparent !important;
  border-color: var(--primary-pink) !important;
}

/* 悬浮时保持原有颜色 - 深色主题 */
.notification-item:hover .notification-text {
  color: var(--text-secondary) !important;
}

.notification-item:hover .notification-icon {
  color: var(--text-secondary) !important;
}

/* 浅色主题下的悬浮效果 */
[data-theme="light"] .notification-item:hover .notification-text {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .notification-item:hover .notification-icon {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .notification-tab.active {
  background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .notification-message {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .notification-message.unread {
  background: rgba(255, 107, 157, 0.08) !important;
}

[data-theme="light"] .mark-all-read-btn {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .mark-all-read-btn::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  ) !important;
}

[data-theme="light"] .mark-all-read-btn:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .mark-all-read-btn:disabled {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
  color: rgba(0, 0, 0, 0.3) !important;
  box-shadow: none !important;
}

[data-theme="light"] .mark-all-read-btn:disabled:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
  box-shadow: none !important;
}

[data-theme="light"] .notification-message-meta {
  color: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .notification-read-status {
  color: rgba(0, 0, 0, 0.6) !important;
}

[data-theme="light"] .notification-expand-hint {
  color: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .notification-expand-icon {
  color: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .notification-preview {
  color: rgba(0, 0, 0, 0.7) !important;
}

[data-theme="light"] .notification-message.unread::before {
  background: var(--primary-pink) !important;
}

[data-theme="light"] .notification-message.unread .notification-preview {
  color: rgba(0, 0, 0, 0.8) !important;
}

[data-theme="light"] .notification-message.unread .notification-message-time {
  color: rgba(0, 0, 0, 0.6) !important;
}

[data-theme="light"] .notification-message-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .notification-message.expanded .notification-message-content {
  border-top-color: rgba(0, 0, 0, 0.1) !important;
}

/* Notification Info Styles */
.notification-info {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.notification-retention-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.notification-retention-notice svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Light theme adjustments */
[data-theme="light"] .notification-info {
  background: rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Old profile UID styles removed - using new layout styles below */

/* Light theme profile adjustments */
[data-theme="light"] .profile-bio {
  color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .profile-bio .no-bio {
  color: rgba(0, 0, 0, 0.5);
}

/* Profile Tags Styles */
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: -0.75rem; /* 2倍负边距，让标签大幅往上移 */
  margin-bottom: 0;
  justify-content: center;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-tag svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.location-tag {
  color: var(--text-secondary);
}

.creator-tag {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.1);
  gap: 0; /* No gap needed since no icon */
}

/* Light theme tag adjustments */
[data-theme="light"] .profile-tag {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .location-tag {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .creator-tag {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.1);
}

/* Profile header adjustments */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.profile-avatar {
  flex-shrink: 0;
}

.profile-avatar .avatar-image {
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

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

.profile-header .profile-name {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-display: swap; /* 优化字体加载 */
}

.profile-uid {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-display: swap; /* 优化字体加载 */
}

.uid-label {
  color: var(--text-secondary);
  opacity: 0.8;
}

.uid-value {
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* Light theme UID adjustments */
[data-theme="light"] .profile-uid {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .uid-label {
  color: rgba(0, 0, 0, 0.5);
}

/* Profile字体优化 - 防止FOUC */
.profile-name,
.profile-uid,
.uid-clickable {
  /* 强制使用系统字体，避免字体加载延迟 */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  /* 优化字体渲染 */
  font-display: swap;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 防止布局偏移 */
  font-variant-numeric: tabular-nums;
  /* 确保立即渲染 */
  font-synthesis: none;
}

/* 确保UID点击样式一致性 */
.uid-clickable {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.025em !important;
  cursor: pointer;
  transition: color 0.2s ease;
  display: inline-block;
  user-select: none;
}

[data-theme="light"] .uid-value {
  color: rgba(0, 0, 0, 0.8);
}

.profile-bio {
  margin-top: 0.125rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Prevent any animation or transition effects on text */
  transition: none !important;
  animation: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  /* Ensure immediate rendering without layout shifts */
  will-change: auto;
  transform: none;
}

.profile-bio p {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Prevent any animation or transition effects on text */
  transition: none !important;
  animation: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  /* Ensure immediate rendering without layout shifts */
  will-change: auto;
  transform: none;
}

.profile-bio .no-bio {
  color: var(--text-secondary);
  font-style: italic;
  /* Prevent any animation or transition effects on text */
  transition: none !important;
  animation: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  /* Ensure immediate rendering without layout shifts */
  will-change: auto;
  transform: none;
}

/* 简化的emoji样式 - 防止缩放闪烁 */
.profile-bio img.emoji,
.profile-bio .emoji,
img.emoji,
img[src*="emoji"] {
  width: 1.2em !important;
  height: 1.2em !important;
  display: inline-block !important;
  vertical-align: -0.1em !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  /* 关键：立即设置尺寸，防止从0变大 */
  min-width: 1.2em !important;
  min-height: 1.2em !important;
  max-width: 1.2em !important;
  max-height: 1.2em !important;
  /* 禁用所有动画和过渡 */
  transition: none !important;
  animation: none !important;
  transform: none !important;
  /* 优化渲染性能 */
  will-change: auto !important;
  backface-visibility: hidden !important;
}

/* Account Settings Styles */
.settings-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

/* Fix button width consistency in settings */
.settings-section .btn {
  min-width: 120px;
  box-sizing: border-box;
}

.settings-section .btn-sm {
  min-width: 80px;
  box-sizing: border-box;
}

.settings-header {
  margin-bottom: 2rem;
  text-align: center;
}

.settings-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.settings-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  /* Fix width consistency across language switches */
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.settings-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  /* Prevent layout shifts and flashing */
  min-height: 0;
  will-change: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.5rem;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.uid-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-bg);
  overflow: hidden;
}

.uid-prefix {
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-weight: 500;
  border-right: 1px solid var(--glass-border);
}

.uid-input-group input {
  border: none;
  background: transparent;
  flex: 1;
}

.uid-preview {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.uid-availability {
  margin-top: 0.5rem;
}

.availability-status .success {
  color: #10b981;
  font-size: 0.875rem;
}

.availability-status .error {
  color: #ef4444;
  font-size: 0.875rem;
}

.avatar-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.current-avatar {
  border-radius: 50%;
  border: 2px solid var(--glass-border);
}

.avatar-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.avatar-info p {
  margin: 0;
  font-weight: 500;
  color: var(--text-primary);
}

/* Light theme adjustments */
[data-theme="light"] .settings-section {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-group input:not([type="checkbox"]):not([type="radio"]),
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-group select option {
  background: #ffffff;
  color: #000000;
}

/* Login Management Styles */
.login-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  box-sizing: border-box;
}

.method-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.method-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.email-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.google-icon {
  background: rgba(255, 255, 255, 0.1);
}

.github-icon {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.method-details {
  flex: 1;
  min-width: 0;
}

.method-details h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.method-details p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.method-status {
  flex-shrink: 0;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 60px;
  text-align: center;
  box-sizing: border-box;
}

.status-badge.connected {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.connect-btn {
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
}

/* Danger Zone Styles */
.danger-section {
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.05);
}

.danger-section h2 {
  color: #ef4444;
}

.danger-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.danger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
}

.danger-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.danger-info p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.btn-danger {
  background: #ef4444;
  color: white;
  border: 1px solid #ef4444;
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-danger:disabled {
  background: rgba(239, 68, 68, 0.5);
  border-color: rgba(239, 68, 68, 0.5);
  cursor: not-allowed;
}

/* Delete Account Modal Styles */
.delete-account-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.delete-account-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ef4444;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-intro {
  margin: 0 0 1rem 0;
  font-weight: 500;
  color: var(--text-primary);
}

.deletion-warnings {
  margin: 0 0 1.5rem 0;
  padding: 0;
  list-style: none;
}

.deletion-warnings li {
  margin: 0 0 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.deletion-warnings li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: bold;
}

.delete-account-modal .confirmation-section {
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-top: 1rem;
}

.delete-account-modal .confirmation-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.delete-account-modal .confirmation-checkbox input[type="checkbox"] {
  display: none;
}

.delete-account-modal .checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.delete-account-modal .confirmation-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #ef4444;
  border-color: #ef4444;
}

.delete-account-modal .confirmation-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .uid-input-group {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .uid-prefix {
  background: rgba(0, 0, 0, 0.05);
  border-right-color: rgba(0, 0, 0, 0.1);
}

/* Avatar Upload Styles */
.avatar-upload-group {
  text-align: center;
  margin-bottom: 2rem;
}

.avatar-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  /* Prevent layout shifts during upload */
  min-height: 160px;
  position: relative;
}

.avatar-preview {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

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

.avatar-preview .current-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--glass-border);
  object-fit: cover;
  transition: border-color 0.2s ease;
  display: block;
}

.avatar-preview:hover .current-avatar {
  border-color: var(--accent-color);
}

.camera-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  z-index: 2;
  pointer-events: none;
}

.avatar-preview:hover .camera-icon {
  transform: scale(1.1);
}

.avatar-preview.uploading {
  pointer-events: none;
  opacity: 0.7;
}

.avatar-preview.uploading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid var(--accent-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 3;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.camera-icon svg {
  width: 16px;
  height: 16px;
}

.avatar-help {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
  text-align: center;
}

/* Light theme avatar adjustments */
[data-theme="light"] .avatar-preview .current-avatar {
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .avatar-preview:hover .current-avatar {
  border-color: var(--accent-color);
}

[data-theme="light"] .avatar-help {
  color: rgba(0, 0, 0, 0.6);
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.toast-success .toast-content {
  border-left: 4px solid #10b981;
}

.toast-error .toast-content {
  border-left: 4px solid #ef4444;
}

.toast-message {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 1rem;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* Light theme toast adjustments */
[data-theme="light"] .toast-content {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .toast-message {
  color: #000000;
}

[data-theme="light"] .toast-close {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .toast-close:hover {
  color: #000000;
}

/* Responsive design */
@media (max-width: 768px) {
  .settings-container {
    padding: 1rem;
  }

  .settings-header h1 {
    font-size: 1.5rem;
  }

  .settings-section {
    padding: 1rem;
  }

  .avatar-preview {
    width: 100px;
    height: 100px;
  }

  .avatar-preview .current-avatar {
    width: 100px;
    height: 100px;
  }

  .camera-icon {
    width: 28px;
    height: 28px;
    bottom: 6px;
    right: 6px;
  }

  .camera-icon svg {
    width: 14px;
    height: 14px;
  }

  .login-method {
    padding: 0.75rem;
  }

  .method-icon {
    width: 32px;
    height: 32px;
  }

  .method-details h4 {
    font-size: 0.8rem;
  }

  .method-details p {
    font-size: 0.7rem;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }

  .deletion-warnings li {
    font-size: 0.8rem;
  }
}

/* Light theme adjustments for new components */
[data-theme="light"] .login-method {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .email-icon {
  background: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .github-icon {
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
}

[data-theme="light"] .danger-section {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .danger-item {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .modal-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .delete-account-modal .confirmation-section {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .delete-account-modal .checkmark {
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* User Link Styles */
.user-link,
.panel-user-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.user-link:hover,
.panel-user-link:hover {
  opacity: 0.8;
}

.user-link .user-name,
.panel-user-link .panel-user-name {
  color: inherit;
}

/* Ensure user info maintains layout */
.user-info {
  display: flex;
  align-items: center;
}



/* Profile Actions Layout */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.edit-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.edit-profile-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* Responsive profile actions */
@media (min-width: 768px) {
  .profile-actions {
    flex-direction: row;
    gap: 0.5rem;
  }

  .edit-profile-btn,
  .share-profile-btn {
    flex: 1;
  }
}

/* First Login Onboarding Modal Styles */
.onboarding-modal {
  z-index: 100002;
}

.onboarding-modal-content {
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-medium);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.onboarding-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.back-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius-small);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.onboarding-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.onboarding-body {
  padding: 2rem;
}

.onboarding-step {
  display: none;
}

.onboarding-step.active {
  display: block;
}

.onboarding-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.onboarding-desc {
  color: var(--text-secondary);
  margin: 0 0 2rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Birthday Input Styles */
.birthday-inputs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.birthday-field {
  flex: 1;
  position: relative;
}

.birthday-field input,
.birthday-field select {
  width: 100%;
  padding: 0.875rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* 隐藏数字输入框的上下箭头 */
.birthday-field input[type="number"]::-webkit-outer-spin-button,
.birthday-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.birthday-field input[type="number"] {
  -moz-appearance: textfield;
}

/* 自定义下拉箭头 */
.birthday-field select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* 下拉选项样式 */
.birthday-field select option {
  background: var(--background-primary) !important;
  color: var(--text-primary) !important;
  padding: 0.5rem;
}

/* 深色主题下拉选项 */
[data-theme="dark"] .birthday-field select option {
  background: #2a2a2a !important;
  color: #ffffff !important;
}

/* 确保下拉框本身的背景色 */
.birthday-field select {
  background-color: var(--glass-bg) !important;
  color: var(--text-primary) !important;
}

.birthday-field input:focus,
.birthday-field select:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.2);
}

.birthday-field input.error,
.birthday-field select.error {
  border-color: #ff4757;
}

.error-message {
  position: absolute;
  top: 100%;
  left: 0;
  font-size: 0.75rem;
  color: #ff4757;
  margin-top: 0.25rem;
  display: none;
  z-index: 10;
  background: var(--background-primary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-small);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.birthday-field.error .error-message {
  display: block;
}

/* Gender Selection Styles */
.gender-section {
  margin-bottom: 2rem;
}

.gender-title {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.gender-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gender-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

.gender-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.gender-option.selected {
  background: rgba(255, 107, 157, 0.1);
  border-color: var(--primary-pink);
}

.gender-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.gender-option.selected .gender-icon {
  color: var(--primary-pink);
}

.gender-text {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

/* Role Selection Styles */
.role-options {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.role-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.role-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.role-option.selected {
  background: rgba(255, 107, 157, 0.1);
  border-color: var(--primary-pink);
}

.role-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.role-option.selected .role-icon {
  color: var(--primary-pink);
}

.role-text {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

/* Onboarding Buttons */
.onboarding-next-btn,
.onboarding-start-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--primary-pink);
  color: white;
  border: none;
  border-radius: var(--border-radius-small);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.onboarding-next-btn:hover:not(:disabled),
.onboarding-start-btn:hover:not(:disabled) {
  background: var(--primary-purple);
  transform: translateY(-1px);
}

.onboarding-next-btn:disabled,
.onboarding-start-btn:disabled {
  background: var(--text-tertiary);
  cursor: not-allowed;
  transform: none;
}

/* Light theme adjustments for onboarding */
[data-theme="light"] .onboarding-modal-content {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .role-option:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .role-option.selected {
  background: rgba(255, 107, 157, 0.08);
}

[data-theme="light"] .gender-option:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .gender-option.selected {
  background: rgba(255, 107, 157, 0.08);
}

/* 浅色主题下的错误提示 */
[data-theme="light"] .error-message {
  background: rgba(255, 71, 87, 0.1);
  color: #dc3545;
}

@media (max-width: 768px) {
  [data-theme="light"] .error-message {
    background: rgba(255, 71, 87, 0.1);
    border-color: #ff4757;
  }
}

[data-theme="light"] .back-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* 浅色主题下的下拉箭头 */
[data-theme="light"] .birthday-field select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

[data-theme="light"] .birthday-field select option {
  background: #ffffff !important;
  color: #333333 !important;
}

[data-theme="light"] .birthday-field select {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #333333 !important;
}

/* 强制覆盖浏览器默认样式 */
.birthday-field select,
.birthday-field select:focus,
.birthday-field select:active {
  background-color: var(--glass-bg) !important;
}

[data-theme="dark"] .birthday-field select,
[data-theme="dark"] .birthday-field select:focus,
[data-theme="dark"] .birthday-field select:active {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

[data-theme="light"] .birthday-field select,
[data-theme="light"] .birthday-field select:focus,
[data-theme="light"] .birthday-field select:active {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #333333 !important;
}

/* 针对WebKit浏览器的特殊处理 */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  [data-theme="dark"] .birthday-field select option {
    background: #2a2a2a;
    color: #ffffff;
  }

  [data-theme="light"] .birthday-field select option {
    background: #ffffff;
    color: #333333;
  }
}

/* Responsive design for onboarding */
@media (max-width: 768px) {
  .onboarding-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .onboarding-header {
    padding: 1rem;
  }

  .onboarding-body {
    padding: 1.5rem;
  }

  .onboarding-title {
    font-size: 1.25rem;
  }

  .birthday-inputs {
    flex-direction: column;
    gap: 1.5rem; /* 增加间距避免错误提示重叠 */
  }

  /* 移动端错误提示调整 */
  .error-message {
    position: static; /* 改为静态定位 */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    white-space: normal; /* 允许换行 */
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
  }

  .role-options {
    gap: 0.5rem;
  }

  .role-option {
    padding: 0.875rem;
  }

  .gender-options {
    flex-direction: column;
    gap: 0.5rem;
  }

  .gender-option {
    min-width: auto;
    justify-content: flex-start;
  }
}

/* Welcome animation styles removed */

/* 响应式设计 */
@media (max-width: 768px) {
  .notifications-modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .notification-message {
    padding: 0.875rem;
  }

  .notification-message-title {
    font-size: 0.8125rem;
    -webkit-line-clamp: 3;
  }

  .notification-message-time {
    font-size: 0.6875rem;
  }

  .notification-preview {
    font-size: 0.75rem;
    -webkit-line-clamp: 3;
  }

  .notification-message-content {
    font-size: 0.8125rem;
    max-height: 150px;
  }

  .notification-message-meta {
    font-size: 0.625rem;
  }

  .notification-expand-hint {
    font-size: 0.625rem;
  }

  .notification-expand-icon {
    width: 10px;
    height: 10px;
  }

  .mark-all-read-btn {
    font-size: 0.6875rem;
    padding: 0.375rem 0.75rem;
    min-width: 90px;
  }

  .mark-all-read-btn-icon {
    width: 12px;
    height: 12px;
  }

  .header-actions {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .notification-message {
    padding: 0.75rem;
  }

  .notification-message-header {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }

  .notification-message-title {
    font-size: 0.8125rem;
    margin-right: 0;
  }

  .notification-message-time {
    font-size: 0.6875rem;
    align-self: flex-end;
    margin-top: -1.25rem;
  }

  .notification-preview {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }

  .notification-message-meta {
    margin-top: 0.75rem;
    font-size: 0.625rem;
  }

  .mark-all-read-btn {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    min-width: 80px;
    border-radius: 16px;
  }

  .mark-all-read-btn-content {
    gap: 0.25rem;
  }

  .mark-all-read-btn-icon {
    width: 10px;
    height: 10px;
  }

  .header-actions {
    gap: 0.375rem;
  }
}



/* Header Theme Toggle */
.header-theme-toggle {
  display: flex;
  align-items: center;
}

.header-theme-toggle .theme-toggle-btn {
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-theme-toggle .theme-toggle-btn:hover {
  background: transparent;
  color: var(--primary-pink);
  border-color: var(--primary-pink);
}

/* User Avatar and Menu */
.user-avatar {
  position: relative;
}

.user-menu {
  position: relative;
}

/* User Points Display inside avatar button */
.user-avatar-btn .user-points-display {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-speed) ease;
}

.user-avatar-btn:hover .user-points-display {
  background: rgba(255, 255, 255, 0.15);
}

.user-avatar-btn .user-points-display .points-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0.9);
}

.user-avatar-btn .user-points-display .points-value {
  color: var(--text-primary);
  font-weight: 600;
  min-width: 12px;
  text-align: center;
  line-height: 1;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  padding: 0 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

/* User Points Display inside avatar button */
.user-avatar-btn .user-points-display {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-speed) ease;
}

.user-avatar-btn:hover .user-points-display {
  background: rgba(255, 255, 255, 0.15);
}

.user-avatar-btn .user-points-display .points-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0.9);
}

.user-avatar-btn .user-points-display .points-value {
  color: var(--text-primary);
  font-weight: 600;
  min-width: 12px;
  text-align: center;
  line-height: 1;
}

.user-avatar-btn:hover {
  background: transparent;
  color: var(--primary-pink);
  border-color: var(--primary-pink);
}

.avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-arrow {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-speed) ease;
}

.user-menu.open .dropdown-arrow,
.language-menu.open .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(110%);
  -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(110%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.user-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.user-info {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.user-name {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.user-uid {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.user-menu-items {
  padding: 0.5rem 0;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  font-size: 0.9375rem;
  position: relative;
  overflow: hidden;
}

.user-menu-item svg,
.user-menu-item span {
  position: relative;
  z-index: 2;
}

.user-menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
  transition: left 0.5s ease;
}

.user-menu-item:hover::before {
  left: 100%;
}

.user-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.user-menu-item.logout {
  color: #ef4444;
}

.user-menu-item.logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  align-items: center;
}

/* Sidebar Legal Links */
.sidebar-legal-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: nowrap; /* 防止换行 */
  justify-content: center;
  white-space: nowrap; /* 强制不换行 */
  overflow: hidden; /* 隐藏溢出内容 */
}

.legal-link {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.625rem; /* 稍微减小字体以适应一行 */
  transition: color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0; /* 防止链接被压缩 */
}

.legal-link:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.legal-separator {
  color: var(--text-tertiary);
  font-size: 0.625rem; /* 与链接字体大小保持一致 */
  user-select: none;
  pointer-events: none;
  flex-shrink: 0; /* 防止分隔符被压缩 */
}

/* Sidebar Footer */
.sidebar-footer {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
}

.sidebar-info {
  text-align: center;
  padding: 0.75rem; /* 减少padding以提供更多空间 */
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  transition: all 0.3s ease;
  overflow: hidden !important; /* 强制隐藏溢出内容 */
  width: 100%; /* 确保宽度约束 */
  box-sizing: border-box; /* 包含padding和border在宽度内 */
  white-space: nowrap; /* 强制所有内容不换行 */
}

/* sidebar-info 现在使用透明背景，无需主题特定样式 */

/* 收缩状态下隐藏版权信息，但保留通知区域 */
.sidebar.collapsed .sidebar-info,
html.sidebar-collapsed-init .sidebar-info {
  display: none;
}

/* 收缩状态下调整通知区域样式 */
.sidebar.collapsed .sidebar-notifications,
html.sidebar-collapsed-init .sidebar-notifications {
  padding: 1rem 0.5rem;
  border-top: none;
  margin-bottom: 0;
}

.sidebar-copyright {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0 0 0.25rem 0;
  white-space: nowrap !important; /* 强制防止版权信息换行 */
  overflow: hidden !important; /* 强制隐藏溢出文本 */
  text-overflow: ellipsis !important; /* 强制用省略号表示溢出 */
  max-width: 100%; /* 限制最大宽度 */
  display: block; /* 确保块级元素行为 */
}

.sidebar-tagline {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: var(--font-weight-medium);
  white-space: nowrap !important; /* 强制防止标语换行 */
  overflow: hidden !important; /* 强制隐藏溢出文本 */
  text-overflow: ellipsis !important; /* 强制用省略号表示溢出 */
  max-width: 100%; /* 限制最大宽度 */
  display: block; /* 确保块级元素行为 */
}

/* Banner Arrow Navigation */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  opacity: 0.8;
}

.banner-arrow:hover {
  opacity: 1;
  background: var(--gradient-primary);
  transform: translateY(-50%);
}

.banner-prev {
  left: 1rem;
}

.banner-next {
  right: 1rem;
}

/* Post Type Badge */
.post-type-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--border-radius-small);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-type-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Grid Item Image Wrapper */
.grid-item-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  width: 100%;
  height: auto; /* 确保容器高度自适应 */
}

/* Content Type Icon in Top Right Corner */
.content-type-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* 浅色模式也使用白色图标 */
[data-theme="light"] .content-type-icon {
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Card Footer */
.card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.footer-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.footer-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 100%;
  z-index: 2;
  pointer-events: auto;
  flex-wrap: nowrap; /* 确保不换行 */
  flex-direction: row; /* 确保水平布局 */
}

/* User Info */
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  margin-left: -14px; /* 让头像和用户名更靠左 */
  height: 100%; /* 确保与父容器同高 */
  position: relative; /* 确保定位稳定 */
}

.card-footer .user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex; /* 确保头像容器是flex */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
}

.card-footer .user-avatar .avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.card-footer .user-name {
  color: white;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* Card Actions */
.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  height: 100%; /* 确保与父容器同高 */
}

.like-area {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.like-area:hover {
  transform: scale(1.05);
}

/* Heart icon states - default show outline, hide filled */
.like-area .like-icon .heart-outline {
  display: block;
}

.like-area .like-icon .heart-filled {
  display: none;
}

/* Liked state for like-area - show filled heart, hide outline */
.like-area.liked .like-icon .heart-outline {
  display: none;
}

.like-area.liked .like-icon .heart-filled {
  display: block;
  color: #ff4757;
  fill: #ff4757;
}

.like-area.liked {
  color: #ff4757;
}

.like-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.like-icon svg {
  width: 14px;
  height: 14px;
}

.like-count {
  color: white;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  min-width: 16px;
  text-align: center;
}

/* Hover Interaction Panel */
.interaction-panel {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.5) 100%
    ),
    rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: height 300ms ease;
  overflow: hidden;
  z-index: 3;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.grid-item:hover .interaction-panel {
  height: 88px;
}

/* 悬停时隐藏底部用户信息 */
.grid-item:hover .card-footer {
  opacity: 0;
  visibility: hidden;
}

.interaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 0;
}

/* Panel User Info */
.panel-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: none;
}

/* 确保链接样式不影响显示 */
.panel-user-info:link,
.panel-user-info:visited,
.panel-user-info:hover,
.panel-user-info:active {
  text-decoration: none;
  color: inherit;
}

/* Panel User Link样式 */
.panel-user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: none;
}

.panel-user-link:link,
.panel-user-link:visited,
.panel-user-link:hover,
.panel-user-link:active {
  text-decoration: none;
  color: inherit;
}

.panel-user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex; /* 确保头像容器是flex */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
}

.panel-user-avatar .panel-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.panel-user-name {
  color: white;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 浅色模式下也使用白色文字 */
[data-theme="light"] .panel-user-name {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 移除panel-user-info整体的悬浮效果 */
.panel-user-info:hover {
  transform: none;
  background: none;
  border-color: initial;
  box-shadow: none;
}

/* panel-user-info中昵称的悬浮效果 - 深色模式使用白色 */
.panel-user-info:hover .panel-user-name,
.panel-user-link:hover .panel-user-name {
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* panel-user-info中昵称的悬浮效果 - 浅色模式保持白色 */
[data-theme="light"] .panel-user-info:hover .panel-user-name,
[data-theme="light"] .panel-user-link:hover .panel-user-name {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* panel-user-info中头像的悬浮效果 - 深色模式使用白边 */
.panel-user-info:hover .panel-user-avatar,
.panel-user-link:hover .panel-user-avatar {
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
  transition: all 0.2s ease;
}

/* panel-user-info中头像的悬浮效果 - 浅色模式使用黑边 */
[data-theme="light"] .panel-user-info:hover .panel-user-avatar,
[data-theme="light"] .panel-user-link:hover .panel-user-avatar {
  border-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
  transition: all 0.2s ease;
}

/* 确保头像有基础的过渡效果 */
.panel-user-info .panel-user-avatar {
  transition: all 0.2s ease;
}

.more-wrapper {
  position: relative;
}

.more-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 移除悬停效果 */

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

/* Assets Page Styles */
.assets-content-tabs {
  margin-top: 2rem;
}

.assets-tab-content {
  display: none;
}

.assets-tab-content.active {
  display: block;
}

/* Assets Page Tabs */
.assets-tabs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

.assets-tabs {
  display: flex;
  gap: 1rem;
}

.assets-tab-btn {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.assets-tab-btn:hover,
.assets-tab-btn.active {
  background: transparent;
  color: var(--primary-pink);
  border-color: var(--primary-pink);
}

/* Assets Filter Buttons */
.assets-filter-container {
  margin-bottom: 2rem;
}

.assets-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.assets-filter-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
}

.assets-filter-btn {
  background: transparent;
  border: none;
  border-radius: var(--border-radius-small);
  padding: 0.5rem 1rem;
  color: var(--text-tertiary);
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-width: 60px;
  text-align: center;
}

.assets-filter-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.assets-filter-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid var(--primary-pink);
}

/* Dark theme specific styles */
[data-theme="dark"] .assets-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .assets-filter-btn.active {
  background: rgba(255, 255, 255, 0.12);
}

/* Light theme specific styles */
[data-theme="light"] .assets-filter-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .assets-filter-btn.active {
  background: rgba(0, 0, 0, 0.08);
}

/* Batch Selection Controls */
.assets-batch-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.batch-action-buttons {
  display: none; /* 默认隐藏 */
  gap: 0.25rem;
  margin-right: 0.5rem;
}

/* 选择模式下显示批量操作按钮 */
.batch-selection-mode .batch-action-buttons {
  display: flex;
}

.batch-action-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.5;
}

.batch-action-btn.disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.batch-action-btn:not(.disabled):hover {
  color: var(--text-secondary);
  border-color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.05);
}

.batch-action-btn:not(.disabled) {
  opacity: 1;
  cursor: pointer;
}

.batch-action-btn[data-action="delete"]:not(.disabled):hover {
  color: #ef4444;
  border-color: #ef4444;
}

.batch-action-btn[data-action="public"]:not(.disabled):hover {
  color: #22c55e;
  border-color: #22c55e;
}

.batch-action-btn[data-action="download"]:not(.disabled):hover {
  color: var(--primary-pink);
  border-color: var(--primary-pink);
}

.batch-select-btn {
  padding: 0.375rem 0.875rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 70px;
}

.batch-select-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary-pink);
  background: rgba(255, 107, 157, 0.1);
}

.batch-select-btn.active {
  background: var(--primary-pink);
  color: white;
  border-color: var(--primary-pink);
}

/* Assets Shimmer Loading */
.assets-item.shimmer-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--glass-shadow);
}

.assets-item.shimmer-item .shimmer-image,
.assets-item.shimmer-item .assets-item-image {
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  position: relative;
}

.assets-item.shimmer-item .shimmer-image::before,
.assets-item.shimmer-item .assets-item-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
  animation: shimmer-sweep 2s infinite;
  z-index: 1;
}

/* Dark theme shimmer */
[data-theme="dark"] .assets-item.shimmer-item .shimmer-image::before,
[data-theme="dark"] .assets-item.shimmer-item .assets-item-image::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%);
}

/* Light theme shimmer */
[data-theme="light"] .assets-item.shimmer-item .shimmer-image::before,
[data-theme="light"] .assets-item.shimmer-item .assets-item-image::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%);
}

@keyframes shimmer-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Enhanced shimmer effect with pulsing */
.assets-item.shimmer-item {
  animation: shimmer-pulse 2s ease-in-out infinite;
}

@keyframes shimmer-pulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.005);
  }
}

/* Enhanced shimmer sweep animation */
@keyframes shimmer-sweep {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Smoother image fade-in animation */
@keyframes imageSlideIn {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.assets-image.loaded {
  animation: imageSlideIn 0.4s ease-out;
}

.preview-card-content.completed img.loaded {
  animation: imageSlideIn 0.5s ease-out;
}

/* Light theme enhanced visibility */
[data-theme="light"] .assets-item.shimmer-item {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Dark theme enhanced visibility */
[data-theme="dark"] .assets-item.shimmer-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Assets Date Groups */
.assets-date-group {
  margin-bottom: 2rem;
}

.assets-date-label {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* Date label shimmer effect for loading state */
.assets-date-group.shimmer-date .assets-date-label {
  background: var(--glass-bg);
  color: transparent;
  border-radius: 4px;
  height: 1.5rem;
  display: flex;
  align-items: center;
}

.assets-date-group.shimmer-date .assets-date-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
  animation: shimmer-sweep 2s infinite;
  z-index: 1;
}

/* Dark theme date label shimmer */
[data-theme="dark"] .assets-date-group.shimmer-date .assets-date-label::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%);
}

/* Light theme date label shimmer */
[data-theme="light"] .assets-date-group.shimmer-date .assets-date-label::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%);
}

/* Assets Grid - 10 items per row */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Assets Item */
.assets-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
}

.assets-item-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

.assets-item-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.assets-item-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.assets-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  background: var(--glass-bg);
}

.assets-image.loaded {
  opacity: 1;
}

/* Image loading placeholder */
.assets-item-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.assets-item-image.image-loaded::before {
  opacity: 0;
}

/* Batch Selection Checkbox */
.assets-batch-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
}

.assets-batch-checkbox input[type="checkbox"] {
  display: none;
}

.assets-batch-checkbox label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.assets-batch-checkbox .check-icon {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  color: white;
}

.assets-batch-checkbox input[type="checkbox"]:checked + label {
  background: var(--primary-pink);
  border-color: var(--primary-pink);
}

.assets-batch-checkbox input[type="checkbox"]:checked + label .check-icon {
  opacity: 1;
  transform: scale(1);
}

.assets-batch-checkbox label:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
}

.assets-batch-checkbox input[type="checkbox"]:checked + label:hover {
  background: #e91e63;
}

/* Show selection mode */
.batch-selection-mode .assets-batch-checkbox {
  display: block !important;
}

/* 选择模式下的卡片样式 */
.batch-selection-mode .assets-item {
  cursor: pointer;
  transition: all 0.2s ease;
}

.batch-selection-mode .assets-item:hover {
  transform: scale(1.02);
  border-color: var(--primary-pink);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

/* 选择模式下禁用链接的默认行为 */
.batch-selection-mode .assets-item-link {
  pointer-events: none;
}

/* 选择模式下隐藏可见性切换图标 */
.batch-selection-mode .assets-visibility-toggle {
  display: none !important;
}

/* 选中状态的卡片样式 */
.batch-selection-mode .assets-item.selected {
  border-color: var(--primary-pink);
  background: rgba(255, 107, 157, 0.1);
  transform: scale(1.02);
}

.batch-selection-mode .assets-item.selected::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 107, 157, 0.15);
  pointer-events: none;
  z-index: 2;
}

/* Assets Visibility Toggle Icon */
.assets-visibility-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 3;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.assets-item:hover .assets-visibility-toggle {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.assets-visibility-toggle:hover {
  background: rgba(0, 0, 0, 0.8);
}

.assets-visibility-toggle .eye-icon {
  transition: all var(--transition-speed) ease;
}

.assets-visibility-toggle:hover .eye-icon {
  /* Removed scale transform to prevent flickering */
}

/* Eye icon states */
.eye-open {
  color: #4ade80; /* Green for public */
}

.eye-closed {
  color: #f87171; /* Red for private */
}

/* Assets Status Notification */
.assets-status-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--glass-shadow);
  z-index: 9999;
  transform: translateX(100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.assets-status-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.assets-status-notification .notification-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.assets-status-notification.success .notification-icon {
  color: #4ade80;
}

.assets-status-notification.private .notification-icon {
  color: #f87171;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 2rem;
}

.load-more-btn {
  padding: 1rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.load-more-btn:hover {
  background: transparent;
  color: var(--primary-pink);
  border-color: var(--primary-pink);
}

/* Assets Empty State */
.assets-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  min-height: 400px;
}

.empty-state-icon {
  margin-bottom: 2rem;
  opacity: 0.6;
  color: var(--text-tertiary);
  animation: float 3s ease-in-out infinite;
}

.empty-state-icon svg {
  width: 64px;
  height: 64px;
  stroke-width: 1.5;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.empty-state-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 400px;
  line-height: 1.6;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Light theme adjustments */
[data-theme="light"] .empty-state-icon {
  color: var(--text-tertiary);
  opacity: 0.7;
}

/* Dark theme adjustments */
[data-theme="dark"] .empty-state-icon {
  color: var(--text-tertiary);
  opacity: 0.6;
}

/* No Content Message (fallback) */
.no-content {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
}

/* Responsive Assets Grid */
@media (max-width: 1600px) {
  .assets-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 1200px) {
  .assets-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .assets-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .assets-date-group {
    margin-bottom: 1.5rem;
  }

  .assets-date-label {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .assets-filter-buttons {
    gap: 0.25rem;
    flex-wrap: wrap;
  }

  .assets-filter-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    min-width: 50px;
  }

  .assets-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .batch-action-buttons {
    gap: 0.125rem;
  }

  .batch-action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .batch-select-btn {
    padding: 0.25rem 0.625rem;
    font-size: 0.8rem;
    min-width: 60px;
  }

  /* Empty state responsive */
  .assets-empty-state {
    padding: 4rem 1rem;
    min-height: 300px;
  }

  .empty-state-icon svg {
    width: 48px;
    height: 48px;
  }

  .empty-state-title {
    font-size: 1.25rem;
  }

  .empty-state-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .assets-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .assets-date-group {
    margin-bottom: 1rem;
  }

  .assets-date-label {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .assets-type-icon {
    width: 20px;
    height: 20px;
    top: 6px;
    right: 6px;
  }

  /* Empty state mobile */
  .assets-empty-state {
    padding: 3rem 1rem;
    min-height: 250px;
  }

  .empty-state-icon svg {
    width: 40px;
    height: 40px;
  }

  .empty-state-title {
    font-size: 1.125rem;
  }

  .empty-state-description {
    font-size: 0.875rem;
  }
}

/* Liquid Glass Menu for Content Cards */
.more-wrapper {
  position: relative;
}

/* Action Buttons Wrapper */
.action-buttons-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Admin Button Styles */
.admin-wrapper {
  position: relative;
}

.admin-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  transition: all 0.2s ease;
}

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

/* Different states for admin button */
.admin-btn-none {
  color: #888; /* Gray for no status */
}

.admin-btn-hot {
  color: #ff6b35; /* Orange/red for hot */
}

.admin-btn-featured {
  color: #ffd700; /* Gold for featured */
}

.admin-btn-both {
  color: #ff6b35; /* Hot color with featured star */
  position: relative;
}

.admin-btn-both::after {
  content: '★';
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 8px;
  color: #ffd700;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

/* 防止快速点击时选中文本 */
.grid-item-image-wrapper {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.interaction-buttons {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.grid-item-image-wrapper {
  position: relative;
}

/* Admin menu positioning */
.liquid-glass-menu.admin-menu {
  right: 44px; /* Position relative to admin button */
}

/* User menu positioning */
.liquid-glass-menu.user-menu {
  right: 12px; /* Position relative to more button */
}

/* Combine positioning and styling */
.liquid-glass-menu {
  position: absolute;
  bottom: 88px;
  right: 12px;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(110%);
  -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(110%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  overflow: hidden;
}

.liquid-glass-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.liquid-glass-menu.animate-in {
  animation: liquidGlassSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes liquidGlassSlideIn {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.liquid-glass-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.liquid-glass-menu-inner {
  padding: 0.375rem 0;
  position: relative;
  z-index: 2;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.menu-item-content {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.875rem;
  position: relative;
  z-index: 2;
}

.menu-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.menu-text {
  font-weight: var(--font-weight-medium);
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
  transition: left 0.5s ease;
  z-index: 1;
}

.menu-item:hover::before {
  left: 100%;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.menu-item:hover .menu-item-content {
  color: var(--text-primary);
}

/* Light Theme Adaptations for Liquid Glass Menu */
[data-theme="light"] .liquid-glass-menu {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(130%);
  -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(130%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .menu-item-content {
  color: rgba(0, 0, 0, 0.9);
  font-weight: 500;
}

[data-theme="light"] .menu-item:hover .menu-item-content {
  color: #000;
}

[data-theme="light"] .menu-text {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .liquid-glass-menu::before {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%);
}

[data-theme="light"] .menu-item::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 50%,
    transparent 100%);
}

[data-theme="light"] .menu-item:hover::before {
  left: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 50%,
    transparent 100%);
}

[data-theme="light"] .menu-item:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Dark Theme Adaptations for Liquid Glass Menu */
[data-theme="dark"] .liquid-glass-menu {
  background: rgba(40, 40, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(160%) contrast(110%) brightness(95%);
  -webkit-backdrop-filter: blur(30px) saturate(160%) contrast(110%) brightness(95%);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .menu-item::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
}

[data-theme="dark"] .menu-item:hover::before {
  left: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%);
}

[data-theme="dark"] .menu-item-content {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

[data-theme="dark"] .menu-item:hover .menu-item-content {
  color: #fff;
}

[data-theme="dark"] .menu-text {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Notification Styles */
.tdp-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(110%);
  -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(110%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%) translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 10000;
  overflow: hidden;
}

.tdp-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(0) scale(1);
}

.tdp-notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.tdp-notification .notification-content {
  padding: 1rem 1.25rem;
  position: relative;
  z-index: 2;
  min-height: auto;
  height: auto;
}

.notification-text {
  color: var(--text-secondary); /* 修改为次要颜色，与导航菜单一致 */
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  margin: 0;
  padding: 0;
  display: inline;
  transition: color 0.2s ease; /* 添加颜色过渡效果 */
}

/* Notification Types */
.tdp-notification-success {
  border-left: 3px solid #10b981;
}

.tdp-notification-error {
  border-left: 3px solid #ef4444;
}

.tdp-notification-info {
  border-left: 3px solid #3b82f6;
}

/* Light Theme Adaptations for Notifications */
[data-theme="light"] .tdp-notification {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .tdp-notification::before {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 100%);
}

/* Light Theme Notification Types with Left Border */
[data-theme="light"] .tdp-notification-success {
  border-left: 3px solid #10b981;
}

[data-theme="light"] .tdp-notification-error {
  border-left: 3px solid #ef4444;
}

[data-theme="light"] .tdp-notification-info {
  border-left: 3px solid #3b82f6;
}

/* Mobile Creation page notification positioning */
@media (max-width: 768px) {
  .tdp-notification.mobile-creation-adjusted {
    bottom: 220px !important;
    right: 1rem !important;
  }
}

/* Creation Page Styles */
.creation-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - var(--header-height) - 4rem);
  padding: 2rem;
  padding-top: 8vh; /* 从顶部8%的位置开始，让内容更靠近垂直中心 */
}

.creation-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.creation-header {
  text-align: center;
  margin-bottom: 2rem; /* 减少标题下方间距 */
}

.creation-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.creation-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
}

.creation-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.creation-input-wrapper {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: visible;
}

/* 上传图片和输入框的主要布局容器 */
.main-input-row {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: stretch;
}

/* 上传图片独立容器 */
.upload-container {
  width: 67px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 输入框独立容器 */
.input-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  margin-left: 1.5rem; /* 增加左边距防止被图片堆叠覆盖 */
}

/* 下拉框选择器和提交按钮容器 */
.selectors-container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  overflow: visible;
}

/* 左侧选择器组 */
.selectors-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  flex: 1;
  overflow: visible;
}

/* 提交按钮容器 */
.submit-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

/* 重置图片默认样式 */
.image-upload-area img,
.image-preview img {
  vertical-align: top !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

.image-upload-area {
  width: 67px;
  height: 100px;
  background: var(--glass-bg);
  border: 2px dashed var(--glass-border);
  border-radius: var(--border-radius-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.image-upload-area:hover {
  border-color: var(--primary-pink);
  background: rgba(255, 107, 157, 0.05);
}

/* 当有图片预览时隐藏虚线边框 */
.image-upload-area.has-image {
  border: 1px solid var(--glass-border);
  background: transparent;
}

.image-upload-area.has-image:hover {
  border-color: var(--primary-pink);
}

/* 强制图片预览完全覆盖 */
.image-upload-area.has-image .image-preview {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.image-upload-area.has-image .image-preview img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.upload-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.upload-placeholder svg {
  opacity: 0.6;
  width: 16px;
  height: 16px;
}

.image-preview {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  background: transparent;
  z-index: 5;
}

.image-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--border-radius-medium);
  display: block;
  margin: 0;
  padding: 0;
}

.remove-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  z-index: 100;
  transition: background-color 0.2s ease;
  margin: 0;
  padding: 0;
}

.remove-image-btn:hover {
  background: var(--primary-pink);
}

/* 生成类型选择 */
.generation-type-selection {
  width: auto;
  position: relative;
  z-index: 10001;
  flex-shrink: 0;
}

/* 生成类型按钮 */
.generation-type-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  min-width: fit-content;
  height: 40px; /* 与model-selection-btn保持一致的高度 */
  position: relative; /* 为弹窗定位提供基准 */
  overflow: visible; /* 确保弹窗可以显示在按钮外面 */
}

.generation-type-btn:hover {
  border-color: var(--primary-pink);
  background: rgba(255, 107, 157, 0.05);
}

.generation-type-btn:focus {
  outline: none;
  border-color: var(--primary-pink);
}

.generation-type-icon-display {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.generation-type-icon-display svg {
  width: 16px;
  height: 16px;
}

.generation-type-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.generation-type-btn.active .generation-type-arrow {
  transform: rotate(180deg);
}

/* 生成类型弹窗 */
.generation-type-modal {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0; /* 左对齐 */
  transform: none; /* 移除居中变换 */
  z-index: 10002;
  width: auto;
  min-width: 160px;
}

.generation-type-modal-content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideUpSmall 0.2s ease-out;
}

/* 深色模式下的弹窗背景加深 */
[data-theme="dark"] .generation-type-modal-content,
[data-theme="dark"] .model-selection-modal-content {
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .generation-type-option,
[data-theme="dark"] .model-selection-option {
  background: transparent;
}

[data-theme="dark"] .generation-type-option:hover,
[data-theme="dark"] .model-selection-option:hover {
  background: rgba(255, 107, 157, 0.1);
}

@keyframes slideUpSmall {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.generation-type-modal-header {
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.generation-type-modal-header h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  text-align: center;
}

.generation-type-options {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.generation-type-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: all 0.2s ease;
}

.generation-type-option:hover {
  background: rgba(255, 107, 157, 0.05);
}

.generation-type-option.selected {
  background: rgba(255, 107, 157, 0.1);
}

.generation-type-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.generation-type-option.selected .generation-type-option-icon {
  color: var(--primary-pink);
}

.generation-type-option-text {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  white-space: nowrap;
}



/* 输入框聚焦状态 */
.creation-textarea:focus {
  outline: none;
  box-shadow: none;
}

/* 输入框滚动优化 */
.creation-textarea.has-scroll {
  /* 当内容可滚动时的视觉提示 */
  background-image: linear-gradient(to bottom, transparent 85%, rgba(255, 107, 157, 0.05) 100%);
}

.creation-textarea.has-scroll:focus {
  background-image: none;
}

.creation-textarea {
  width: 100%;
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  padding: 1rem;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-medium);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-primary);
  line-height: 1.5;
  resize: none;
  outline: none;
  overflow-y: auto;
  overflow-x: hidden;
  /* 自定义滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
}

.creation-textarea::placeholder {
  color: var(--text-secondary);
}

/* Webkit浏览器滚动条样式 */
.creation-textarea::-webkit-scrollbar {
  width: 6px;
}

.creation-textarea::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.creation-textarea::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.creation-textarea::-webkit-scrollbar-thumb:hover {
  background: var(--primary-pink);
}

/* Firefox滚动条样式 */
.creation-textarea {
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
}

/* 深色主题滚动条调整 */
[data-theme="dark"] .creation-textarea::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .creation-textarea::-webkit-scrollbar-thumb:hover {
  background: var(--primary-pink);
}

[data-theme="dark"] .creation-textarea {
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* 浅色主题滚动条调整 */
[data-theme="light"] .creation-textarea::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .creation-textarea::-webkit-scrollbar-thumb:hover {
  background: var(--primary-pink);
}

[data-theme="light"] .creation-textarea {
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* 禁用状态的输入框样式 */
.creation-textarea:disabled {
  background: var(--glass-bg) !important;
  color: var(--text-secondary) !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
  border: 1px dashed var(--glass-border) !important;
  border-radius: var(--border-radius-medium) !important;
}

.creation-textarea:disabled::placeholder {
  color: var(--text-tertiary) !important;
  font-style: italic;
}

/* 深色模式下禁用状态 */
[data-theme="dark"] .creation-textarea:disabled {
  background: rgba(30, 30, 30, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 浅色模式下禁用状态 */
[data-theme="light"] .creation-textarea:disabled {
  background: rgba(240, 240, 240, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* 禁用状态的style按钮样式 */
.model-selection-btn.disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background: var(--glass-bg) !important;
  border: 1px dashed var(--glass-border) !important;
}

.model-selection-btn.disabled:hover {
  border-color: var(--glass-border) !important;
  background: var(--glass-bg) !important;
  transform: none !important;
}

.model-selection-btn.disabled .style-text,
.model-selection-btn.disabled .style-icon {
  color: var(--text-tertiary) !important;
  opacity: 0.6 !important;
}

/* 禁用状态的style选项样式 */
#style-options .aspect-ratio-option.disabled {
  cursor: not-allowed !important;
  opacity: 0.3 !important;
  pointer-events: none !important;
}

#style-options .aspect-ratio-option.disabled:hover {
  border-color: var(--glass-border) !important;
  background: var(--glass-bg) !important;
  transform: none !important;
}

#style-options .aspect-ratio-option.disabled .aspect-ratio-option-label {
  color: var(--text-tertiary) !important;
}

/* 深色模式下禁用状态 */
[data-theme="dark"] .model-selection-btn.disabled {
  background: rgba(30, 30, 30, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] #style-options .aspect-ratio-option.disabled {
  background: rgba(30, 30, 30, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 浅色模式下禁用状态 */
[data-theme="light"] .model-selection-btn.disabled {
  background: rgba(240, 240, 240, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] #style-options .aspect-ratio-option.disabled {
  background: rgba(240, 240, 240, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}





.model-selection {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 10001;
  overflow: visible;
}

/* 模型选择按钮 */
.model-selection-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  min-width: fit-content;
  height: 40px; /* 与generation-type-btn保持一致的高度 */
  position: relative; /* 为弹窗定位提供基准 */
  overflow: visible; /* 确保弹窗可以显示在按钮外面 */
}

.model-selection-btn:hover {
  border-color: var(--primary-pink);
  background: rgba(255, 107, 157, 0.05);
}

.model-selection-btn:focus {
  outline: none;
  border-color: var(--primary-pink);
}

.model-selection-text {
  white-space: nowrap;
  flex: 1;
}

.model-selection-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.model-selection-btn.active .model-selection-arrow {
  transform: rotate(180deg);
}

/* 风格按钮中的迷你预览图样式 */
.model-selection-btn .style-icon img {
  width: 20px !important;
  height: 20px !important;
  border-radius: 3px !important;
  object-fit: cover !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

/* 模型选择弹窗 */
.model-selection-modal {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  z-index: 10002;
  width: auto;
  min-width: 280px;
  pointer-events: auto; /* 确保弹窗可以接收点击事件 */
}

.model-selection-modal-content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideUpSmall 0.2s ease-out;
}

.model-selection-modal-header {
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.model-selection-modal-header h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  text-align: center;
}

.model-selection-options {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.model-selection-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-selection-option:hover {
  background: rgba(255, 107, 157, 0.05);
}

.model-selection-option.selected {
  background: rgba(255, 107, 157, 0.1);
}

.model-selection-option-text {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  white-space: nowrap;
}

.model-select {
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: menulist;
  width: auto;
  min-width: fit-content;
  max-width: none;
}

.model-select:focus {
  outline: none;
  border-color: var(--primary-pink);
}

.model-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
  pointer-events: auto;
}

/* 确保下拉菜单在所有浏览器中都能正常工作 */
select.model-select {
  pointer-events: auto !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  appearance: menulist !important;
  background-image: none;
}

/* 修复可能的层级问题 */
.generation-type-selection select,
.model-selection select {
  position: relative;
  z-index: 100;
  pointer-events: auto !important;
}



.creation-submit-btn {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.creation-submit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.creation-submit-btn:active {
  transform: scale(0.95);
}

/* Points display in submit button */
.creation-submit-btn .submit-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
}

.creation-submit-btn .submit-btn-content .points-cost {
  font-size: 12px;
  font-weight: 600;
  color: white;
  line-height: 1;
}

.creation-submit-btn .submit-btn-content .points-badge {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  flex-shrink: 0;
}

/* Loading spinner for points calculation */
.points-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: pointsSpinner 0.8s linear infinite;
}

@keyframes pointsSpinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Creation Results */
.creation-results {
  margin-top: 3rem;
}

.results-header {
  margin-bottom: 1.5rem;
}

.results-header h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.result-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  transition: all 0.2s ease;
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.result-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.result-info {
  padding: 1rem;
}

.result-prompt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.result-btn {
  flex: 1;
  padding: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.result-btn:hover {
  background: transparent;
  color: var(--primary-pink);
  border-color: var(--primary-pink);
}

/* Creation Loading */
.creation-loading {
  text-align: center;
  padding: 3rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top: 3px solid var(--primary-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.creation-loading p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* Light Theme Adjustments */
[data-theme="light"] .creation-input-wrapper,
[data-theme="light"] .result-item {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .generation-type-btn,
[data-theme="light"] .model-selection-btn {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .generation-type-modal-content,
[data-theme="light"] .model-selection-modal-content {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .generation-type-option,
[data-theme="light"] .model-selection-option {
  background: transparent;
  border-color: transparent;
}

[data-theme="light"] .model-select {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .model-select option {
  background: #ffffff;
  color: #000000;
}

[data-theme="light"] .result-btn {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .loading-spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary-pink);
}

/* Creation页面移动端保持桌面端布局 - 只缩放不重构 */
@media (max-width: 768px) {
  /* 只针对Creation页面的容器进行缩放调整 */
  .creation-container {
    padding-top: 4vh; /* 移动端减少顶部间距 */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .creation-content {
    padding: 0.5rem;
    transform-origin: top left;
  }

  .creation-input-wrapper {
    padding: 1rem; /* 减少内边距 */
    gap: 1rem; /* 减少间距 */
  }

  .creation-title {
    font-size: 1.8rem;
  }

  .creation-header {
    margin-bottom: 1.5rem; /* 移动端进一步减少标题间距 */
  }

  /* 保持桌面端的flex布局，只调整尺寸 */
  .main-input-row {
    gap: 1rem; /* 稍微减少间距 */
  }

  .upload-container {
    width: 60px; /* 等比例缩小 */
    flex-shrink: 0; /* 确保不被压缩 */
  }

  .input-container {
    flex: 1; /* 确保占满剩余空间 */
    min-width: 0; /* 允许收缩但保持flex: 1的效果 */
  }

  .image-upload-area {
    width: 60px;  /* 等比例缩小 */
    height: 90px; /* 等比例缩小 */
  }

  .creation-textarea {
    width: 100%; /* 确保占满父容器宽度 */
    height: 90px;     /* 等比例缩小 */
    min-height: 90px;
    max-height: 90px;
    font-size: 0.9rem;
    padding: 0.75rem; /* 稍微减少内边距 */
    box-sizing: border-box; /* 确保padding不影响总宽度 */
  }

  /* 保持底部选择器区域的水平布局 */
  .selectors-container {
    gap: 0.5rem; /* 进一步减少间距 */
    flex-wrap: nowrap; /* 确保不换行 */
    overflow: visible; /* 确保弹窗可见 */
  }

  .selectors-group {
    gap: 0.5rem; /* 进一步减少间距 */
    flex: 1; /* 确保占据可用空间 */
    min-width: 0; /* 允许收缩 */
    overflow-x: auto; /* 添加水平滚动 */
    overflow-y: visible; /* 确保弹窗可见 */
    padding-bottom: 2px; /* 为滚动条留出空间 */
  }

  /* 隐藏滚动条但保持滚动功能 */
  .selectors-group::-webkit-scrollbar {
    height: 2px;
  }

  .selectors-group::-webkit-scrollbar-track {
    background: transparent;
  }

  .selectors-group::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
  }

  .selectors-group::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  /* 确保内部元素不换行 */
  .selectors-group .generation-type-selection,
  .selectors-group .model-aspect-row {
    flex-shrink: 0; /* 防止压缩 */
  }

  .model-aspect-row {
    flex-wrap: nowrap; /* 确保不换行 */
    gap: 0.5rem;
  }

  .model-aspect-row > * {
    flex-shrink: 0; /* 防止子元素被压缩 */
  }

  /* 移动端滚动提示 */
  .selectors-group::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 2px;
    width: 20px;
    background: linear-gradient(to left, var(--glass-bg) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  /* 当内容可滚动时显示渐变提示 */
  .selectors-group.scrollable::after {
    opacity: 1;
  }

  /* 确保提交按钮不被挤出 */
  .submit-container {
    flex-shrink: 0; /* 防止被压缩 */
    margin-left: 0.5rem; /* 减少左边距 */
  }

  .model-select,
  .model-selection-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    height: 32px;
    min-width: auto;
  }

  .generation-type-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    height: 32px;
    min-width: auto;
  }

  /* 移动端模型选择按钮文字缩短 */
  .model-selection-text {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px; /* 限制最大宽度 */
  }

  .generation-type-icon-display svg {
    width: 14px;
    height: 14px;
  }

  .creation-submit-btn {
    width: 36px;  /* 进一步缩小 */
    height: 36px;
    flex-shrink: 0; /* 防止被压缩 */
  }

  .creation-submit-btn .submit-btn-content .points-cost {
    font-size: 10px;
  }

  .creation-submit-btn .submit-btn-content .points-badge {
    width: 12px;
    height: 12px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  /* 移动端弹窗位置优化 - 只调整位置不影响宽度 */
  .model-selection-modal,
  .aspect-ratio-selection .model-selection-modal {
    position: fixed !important; /* 使用fixed定位避免滚动问题 */
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 80px !important; /* 更靠近按钮 */
    transform: translateX(-50%) !important; /* 水平居中 */
    z-index: 9999 !important; /* 确保在最顶层 */
  }

  /* 创作类型弹窗左对齐 */
  .generation-type-modal {
    position: fixed !important; /* 使用fixed定位避免滚动问题 */
    left: 20px !important; /* 左对齐 */
    right: auto !important;
    top: auto !important;
    bottom: 80px !important; /* 更靠近按钮 */
    transform: none !important; /* 不居中 */
    z-index: 9999 !important; /* 确保在最顶层 */
  }

  .model-selection-modal-content,
  .aspect-ratio-modal-content,
  .generation-type-modal-content {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* 极小屏幕的额外优化 */
  @media (max-width: 480px) {
    .selectors-group {
      gap: 0.25rem;
    }

    .model-selection-text {
      max-width: 100px; /* 进一步限制宽度 */
    }

    .generation-type-btn,
    .model-selection-btn {
      padding: 0.25rem 0.4rem;
      font-size: 0.7rem;
    }

    .creation-submit-btn {
      width: 32px;
      height: 32px;
    }

    .creation-submit-btn .submit-btn-content .points-cost {
      font-size: 9px;
    }

    .creation-submit-btn .submit-btn-content .points-badge {
      width: 10px;
      height: 10px;
    }

    /* 极小屏幕弹窗位置调整 */
    .model-selection-modal,
    .aspect-ratio-selection .model-selection-modal {
      bottom: 70px !important; /* 更靠近按钮 */
    }

    /* 极小屏幕创作类型弹窗位置调整 */
    .generation-type-modal {
      left: 10px !important; /* 极小屏幕更靠左 */
      bottom: 70px !important; /* 更靠近按钮 */
    }



    /* 极小屏幕滚动条优化 */
    .selectors-group::-webkit-scrollbar {
      height: 1px; /* 更细的滚动条 */
    }

    .generation-type-options {
      padding: 8px !important;
    }

    .generation-type-option {
      padding: 8px 12px !important;
      font-size: 0.8rem !important;
    }

    .aspect-ratio-options {
      padding: 8px 8px 24px !important;
      gap: 6px !important;
      row-gap: 20px !important;
    }

    .aspect-ratio-option {
      min-height: 50px !important;
      padding: 8px 6px !important;
    }

    .aspect-ratio-option-label {
      bottom: -16px !important;
      font-size: 10px !important;
    }
  }
}



.interaction-buttons {
  display: flex;
  gap: 8px;
  padding: 4px 12px 12px;
}

.btn-holder {
  flex: 1;
}

.btn-common {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-remix {
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.15) 100%
    ),
    rgba(0, 0, 0, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-remix:hover {
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.25) 100%
    ),
    rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-like {
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.1) 100%
    ),
    rgba(0, 0, 0, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-like:hover {
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.2) 100%
    ),
    rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Heart icon states for btn-like - default show outline, hide filled */
.btn-like .like-icon-extended .heart-outline {
  display: block;
}

.btn-like .like-icon-extended .heart-filled {
  display: none;
}

/* Liked state for btn-like - show filled heart, hide outline */
.btn-like.liked .like-icon-extended .heart-outline {
  display: none;
}

.btn-like.liked .like-icon-extended .heart-filled {
  display: block;
  color: #ff4757;
  fill: #ff4757;
}

.btn-like.liked {
  background:
    linear-gradient(135deg,
      rgba(255, 71, 87, 0.3) 0%,
      rgba(255, 71, 87, 0.2) 100%
    ),
    rgba(255, 71, 87, 0.15);
  border-color: rgba(255, 71, 87, 0.4);
  color: #ff4757;
}

.btn-like.liked:hover {
  background:
    linear-gradient(135deg,
      rgba(255, 71, 87, 0.4) 0%,
      rgba(255, 71, 87, 0.3) 100%
    ),
    rgba(255, 71, 87, 0.25);
  border-color: rgba(255, 71, 87, 0.5);
  color: #ff4757;
}

.like-area-extended {
  display: flex;
  align-items: center;
  gap: 4px;
}

.like-icon-extended {
  display: flex;
  align-items: center;
  justify-content: center;
}

.like-icon-extended svg {
  width: 14px;
  height: 14px;
}

.like-count-extended {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}

/* Additional liked state styles for better visibility */
.like-area.liked .like-count,
.btn-like.liked .like-count-extended {
  color: #ff4757;
  font-weight: 600;
}

/* Ensure liked state works in both light and dark themes */
[data-theme="light"] .like-area.liked .heart-filled,
[data-theme="light"] .btn-like.liked .heart-filled {
  color: #ff4757;
  fill: #ff4757;
}

[data-theme="dark"] .like-area.liked .heart-filled,
[data-theme="dark"] .btn-like.liked .heart-filled {
  color: #ff6b7a;
  fill: #ff6b7a;
}

[data-theme="light"] .like-area.liked,
[data-theme="light"] .btn-like.liked {
  color: #ff4757;
}

[data-theme="dark"] .like-area.liked,
[data-theme="dark"] .btn-like.liked {
  color: #ff6b7a;
}

/* Animation for like action */
.like-area.liking,
.btn-like.liking {
  transform: scale(0.95);
  opacity: 0.7;
  pointer-events: none;
}

/* Pulse animation for newly liked items */
@keyframes likePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.like-area.liked.just-liked,
.btn-like.liked.just-liked {
  animation: likePulse 0.3s ease-out;
}

/* Profile content loading states */
.profile-posts-grid .loading-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-secondary);
  font-style: italic;
}

.profile-posts-grid .loading-placeholder p {
  margin: 0;
  padding: 20px;
  background: var(--glass-bg);
  border-radius: var(--border-radius);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
}

/* Content filter buttons */
.content-filter-btn {
  transition: all 0.2s ease;
}

.content-filter-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Grid Item Image with loading animation - 只影响主图片，不影响头像 */
.grid-item-image-wrapper img.grid-item-image {
  width: 100% !important;
  height: auto !important; /* 强制覆盖内联样式，确保图片高度100%自适应 */
  aspect-ratio: auto !important; /* 移除WordPress设置的固定宽高比 */
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(1.05);
  /* transition: transform var(--transition-speed) ease; 已禁用 */
}

.grid-item-image-wrapper img.grid-item-image.loaded {
  opacity: 1;
  transform: scale(1);
  animation: imageSlideIn 0.6s ease-out;
}

/* 确保头像始终可见 */
.grid-item-image-wrapper img.avatar-image,
.grid-item-image-wrapper img.panel-avatar-image,
.card-footer .user-avatar .avatar-image,
.panel-user-avatar .panel-avatar-image {
  opacity: 1 !important;
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

/* Single Post Styles */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* AI Artwork Layout Styles */
.single-post.ai-artwork-layout {
  max-width: 1200px;
  padding: 1rem;
}

.ai-artwork-container {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
}

.ai-artwork-image {
  flex: 0 0 72%;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.ai-artwork-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease;
}

.ai-artwork-image:hover img {
  transform: scale(1.02);
}

/* Single Page Content Type Icon */
.single-content-type-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* 浅色模式也使用白色图标 */
[data-theme="light"] .single-content-type-icon {
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.ai-artwork-content {
  flex: 1;
  min-width: 0;
}

.ai-artwork-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.ai-artwork-content .post-content-wrapper {
  background: transparent;
  border: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ai-artwork-content .post-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.ai-artwork-content .post-title {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.ai-artwork-content .post-excerpt {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

.ai-artwork-content .post-meta-items {
  gap: 1rem;
  margin-top: 0.75rem;
}

.ai-artwork-content .post-meta-items span {
  font-size: 0.8rem;
}

/* Private Post Indicator */
.post-title {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.private-eye-icon {
  color: #ef4444;
  stroke: #ef4444;
  flex-shrink: 0;
  margin-right: 0.25rem;
  margin-top: 0.1rem;
}

/* Private Indicator Row */
.private-indicator-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}



/* 确保标题文本可以换行 */
.post-title {
  width: 100%;
  max-width: 100%;
}

.ai-artwork-content .post-title,
.single-post .post-title {
  font-size: 0.95rem;
  font-weight: normal;
  color: var(--text-primary);
  margin: 0;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Prompt Container */
.prompt-container {
  margin-top: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

/* Prompt Header */
.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.prompt-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

/* Download button in header */
.download-in-header {
  flex-shrink: 0;
}

.download-in-header svg {
  color: #10b981;
  stroke: #10b981;
}

.prompt-divider {
  width: 100%;
  height: 1px;
  background: var(--glass-border);
  margin: 1rem 0;
}

.prompt-content {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.prompt-content p {
  margin-bottom: 1rem;
}

.prompt-content p:last-child {
  margin-bottom: 0;
}

/* Featured Image Grid (仅对3D Models) */
.featured-image-grid {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.featured-image-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-image-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.featured-grid-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  transition: transform 0.2s ease;
}

.featured-image-item:hover .featured-grid-image {
  transform: scale(1.02);
}

.creation-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.7rem;
  border-radius: var(--border-radius-small);
  font-weight: 500;
}

/* Default layout private indicator */
.single-post:not(.ai-artwork-layout) .post-title {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  width: 100%;
  max-width: 100%;
}

.single-post:not(.ai-artwork-layout) .private-eye-icon {
  width: 20px;
  height: 20px;
  color: #ef4444;
  stroke: #ef4444;
  flex-shrink: 0;
  margin-right: 0.25rem;
  margin-top: 0.15rem;
}

/* Light mode private indicator (确保红色在浅色模式下也清晰显示) */
[data-theme="light"] .private-eye-icon {
  color: #dc2626 !important;
  stroke: #dc2626 !important;
}

[data-theme="dark"] .private-eye-icon {
  color: #ef4444 !important;
  stroke: #ef4444 !important;
}



.ai-artwork-content .post-content {
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.ai-artwork-content .post-footer {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}

/* AI Artwork Action Buttons */
.ai-artwork-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.artwork-action-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.artwork-action-btn:hover {
  color: var(--text-secondary);
  border-color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Like Button Specific Styles */
.artwork-action-btn.like-btn:hover {
  color: #ff4757;
  border-color: #ff4757;
}

.artwork-action-btn.like-btn.liked {
  color: #ff4757;
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
}

.artwork-action-btn.like-btn.liked .heart-outline {
  display: none;
}

.artwork-action-btn.like-btn.liked .heart-filled {
  display: block !important;
  fill: #ff4757;
}

.artwork-action-btn.like-btn:not(.liked) .heart-filled {
  display: none;
}

/* Like Count Color Styles */
.artwork-action-btn .like-count {
  color: inherit;
  font-weight: inherit;
}

/* Style Button Specific Styles - Temporarily Disabled */
/*
.artwork-action-btn.style-btn:hover {
  color: var(--primary-pink);
  border-color: var(--primary-pink);
}
*/

/* Make Public Button Specific Styles */
.artwork-action-btn.make-public-btn .eye-closed {
  color: #ff4757;
  stroke: #ff4757;
}

.artwork-action-btn.make-public-btn .eye-open {
  display: none;
  color: #10b981;
  stroke: #10b981;
}

.artwork-action-btn.make-public-btn:hover {
  color: #10b981;
  border-color: #10b981;
}

.artwork-action-btn.make-public-btn:hover .eye-closed {
  display: none;
}

.artwork-action-btn.make-public-btn:hover .eye-open {
  display: block;
}

/* Public Button Success State */
.artwork-action-btn.make-public-btn.success-state {
  color: #10b981;
  border-color: #10b981;
}

.artwork-action-btn.make-public-btn.success-state .eye-closed {
  display: none;
}

.artwork-action-btn.make-public-btn.success-state .eye-open {
  display: block;
  color: #10b981;
  stroke: #10b981;
}

/* Animation for like action */
.artwork-action-btn.like-btn.liking {
  transform: scale(0.95);
  opacity: 0.7;
  pointer-events: none;
}

/* Pulse animation for newly liked items */
@keyframes artworkLikePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.artwork-action-btn.like-btn.liked.just-liked {
  animation: artworkLikePulse 0.3s ease-out;
}



/* AI Artwork Author Info Styles */
.artwork-author-info {
  margin-bottom: 1rem;
}

.author-profile {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
  width: 100%;
}

.author-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex: none;
  min-width: 0;
  width: auto;
  padding: 0.5rem;
  border-radius: var(--border-radius-small);
  transition: background-color 0.2s ease;
}



.author-avatar {
  flex-shrink: 0;
}

.author-avatar .avatar-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
}

.author-details {
  flex: 1;
  min-width: 0;
}

.author-name {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.author-follower-count {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}

.follower-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.follower-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.follow-author-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  min-width: 80px;
  justify-content: center;
  margin-left: auto;
}

.follow-author-btn.following:hover {
  background: rgba(255, 0, 0, 0.1) !important;
  border-color: rgba(255, 0, 0, 0.3) !important;
  color: #ff4444 !important;
}

.follow-author-btn:not(.following):hover {
  background: var(--gradient-primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

/* 3D Model Layout Styles */
.single-post.td-model-layout {
  max-width: 1200px;
  padding: 1rem;
}

.td-model-container {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
}

.td-model-image {
  flex: 0 0 72%;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.td-model-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease;
}

.td-model-image:hover img {
  transform: scale(1.02);
}

.td-model-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.td-model-content .post-content-wrapper {
  background: transparent;
  border: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.td-model-content .post-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.td-model-content .post-title {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.td-model-content .post-excerpt {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

.td-model-content .post-meta-items {
  gap: 1rem;
  margin-top: 0.75rem;
}

.td-model-content .post-meta-items span {
  font-size: 0.8rem;
}

.td-model-content .post-content {
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.td-model-content .post-footer {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}

/* 3D Model Action Buttons */
.td-model-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.model-action-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.model-action-btn:hover {
  color: var(--text-secondary);
  border-color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Download STL Button Specific Styles */
.model-action-btn.download-btn svg {
  color: #10b981;
  stroke: #10b981;
}

.model-action-btn.download-btn:hover {
  color: #10b981;
  border-color: #10b981;
}

/* Like Button Specific Styles for 3D Model */
.model-action-btn.like-btn:hover {
  color: #ff4757;
  border-color: #ff4757;
}

.model-action-btn.like-btn.liked {
  color: #ff4757;
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
}

.model-action-btn.like-btn.liked .heart-outline {
  display: none;
}

.model-action-btn.like-btn.liked .heart-filled {
  display: block !important;
  fill: #ff4757;
}

.model-action-btn.like-btn:not(.liked) .heart-filled {
  display: none;
}

/* Like Count Color Styles for 3D Model */
.model-action-btn .like-count {
  color: inherit;
  font-weight: inherit;
}

/* Make Public Button Specific Styles for 3D Model */
.model-action-btn.make-public-btn .eye-closed {
  color: #ff4757;
  stroke: #ff4757;
}

.model-action-btn.make-public-btn .eye-open {
  display: none;
  color: #10b981;
  stroke: #10b981;
}

.model-action-btn.make-public-btn:hover {
  color: #10b981;
  border-color: #10b981;
}

.model-action-btn.make-public-btn:hover .eye-closed {
  display: none;
}

.model-action-btn.make-public-btn:hover .eye-open {
  display: block;
}

/* Public Button Success State for 3D Model */
.model-action-btn.make-public-btn.success-state {
  color: #10b981;
  border-color: #10b981;
}

.model-action-btn.make-public-btn.success-state .eye-closed {
  display: none;
}

.model-action-btn.make-public-btn.success-state .eye-open {
  display: block;
  color: #10b981;
  stroke: #10b981;
}



/* Animation for like action in 3D Model */
.model-action-btn.like-btn.liking {
  transform: scale(0.95);
  opacity: 0.7;
  pointer-events: none;
}

/* Pulse animation for newly liked 3D models */
.model-action-btn.like-btn.liked.just-liked {
  animation: artworkLikePulse 0.3s ease-out;
}

/* Tablet Layout */
@media (max-width: 1024px) {
  .single-post.ai-artwork-layout,
  .single-post.td-model-layout {
    max-width: 900px;
    padding: 1rem;
  }
  
  .ai-artwork-container,
  .td-model-container {
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .ai-artwork-image,
  .td-model-image {
    flex: 0 0 68%;
  }
  
  .single-content-type-icon {
    top: 7px;
    left: 7px;
    width: 19px;
    height: 19px;
  }
  
  .ai-artwork-content .post-title,
  .td-model-content .post-title {
    font-size: 0.95rem;
  }
  
  .private-eye-icon {
    width: 18px;
    height: 18px;
    margin-top: 0.08rem;
  }
  
  /* Large screen default layout title */
  .single-post:not(.ai-artwork-layout) .post-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  /* Tablet title wrapping */
  .post-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  
  /* Tablet Author Info Styles */
  .author-avatar .avatar-image {
    width: 38px;
    height: 38px;
  }
  
  .author-name {
    font-size: 0.98rem;
  }
  
  .follower-number {
    font-size: 0.95rem;
  }
  
  .follow-author-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    margin-left: auto;
    min-width: 75px;
  }
  
  .author-link {
    padding: 0.35rem;
    gap: 0.5rem;
  }
  
  .author-header {
    gap: 0.75rem;
  }
  
  /* Tablet Prompt Container */
  .prompt-container {
    margin-top: 1.4rem;
    padding: 1.4rem;
  }
  
  /* Tablet Prompt Header */
  .prompt-header {
    gap: 0.875rem;
  }
  
  .prompt-title {
    font-size: 1.05rem;
  }
  
  .download-in-header {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
  }
  
  .download-in-header svg {
    width: 13px;
    height: 13px;
  }
  
  .prompt-content {
    font-size: 0.92rem;
  }
  
  /* Tablet Featured Image Grid */
  .featured-image-grid {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.875rem;
  }
  
  .meta-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
  
  /* Tablet Action Buttons */
  .ai-artwork-actions,
  .td-model-actions {
    margin-top: 1.4rem;
    margin-bottom: 0.9rem;
    gap: 0.45rem;
  }
  
  .artwork-action-btn,
  .model-action-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
  }
  
  .artwork-action-btn svg,
  .model-action-btn svg {
    width: 13px;
    height: 13px;
  }
  

}

/* Mobile Layout */
@media (max-width: 768px) {
  .single-post.ai-artwork-layout {
    max-width: 100%;
    padding: 0.5rem;
  }
  
  .ai-artwork-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .ai-artwork-image {
    flex: none;
    position: relative;
    width: 100%;
    max-width: 100%;
  }
  
  .ai-artwork-image img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
  }
  
  /* 3D Model Mobile Layout */
  .single-post.td-model-layout {
    max-width: 100%;
    padding: 0.5rem;
  }
  
  .td-model-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  /* 3D模型查看器在移动端的样式 */
  .td-model-image {
    flex: none;
    position: relative;
    width: 100%;
    max-width: 100%;
    order: 1; /* 放在第一位 */
  }
  
  /* 3D模型内容区域 */
  .td-model-content {
    width: 100%;
    order: 2; /* 放在第二位 */
  }
  
  /* 在移动端重新排列内容顺序 */
  .td-model-content .post-content-wrapper {
    display: flex;
    flex-direction: column;
  }
  
  /* 作者信息在3D查看器下方 */
  .td-model-content .artwork-author-info {
    order: 1;
    margin-bottom: 1.5rem;
  }
  
  /* 标题区域 */
  .td-model-content .post-header {
    order: 2;
    margin-bottom: 1rem;
  }
  
  /* Prompt容器 */
  .td-model-content .prompt-container {
    order: 3;
  }
  
  /* 操作按钮 */
  .td-model-content .td-model-actions {
    order: 4;
  }
  
  /* 页脚 */
  .td-model-content .post-footer {
    order: 5;
  }
  
  /* 确保3D查看器容器在移动端是正方形 */
  .td-model-viewer-container {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1; /* 强制1:1宽高比 */
  }
  
  /* 移动端3D模型标题调整 */
  .td-model-content .post-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  
  /* 移动端3D模型摘要调整 */
  .td-model-content .post-excerpt {
    font-size: 0.95rem;
  }
  
  /* 移动端3D模型内容调整 */
  .td-model-content .post-content {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .single-content-type-icon {
    top: 6px;
    left: 6px;
    width: 18px;
    height: 18px;
  }
  
  .ai-artwork-content {
    width: 100%;
  }
  
  .ai-artwork-content .post-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  
  .private-eye-icon {
    width: 16px;
    height: 16px;
    margin-top: 0.05rem;
  }
  
  /* Mobile title wrapping */
  .post-title {
    font-size: 0.95rem;
    line-height: 1.25;
  }
  
  .ai-artwork-content .post-excerpt {
    font-size: 0.95rem;
  }
  
  .ai-artwork-content .post-content {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .ai-artwork-content .post-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .ai-artwork-content .post-footer {
    margin-top: 1rem;
    padding-top: 1rem;
  }
  
  /* Mobile Author Info Styles */
  .artwork-author-info {
    margin-bottom: 1rem;
  }
  
  .author-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .author-link {
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
  }
  
  .author-avatar .avatar-image {
    width: 36px;
    height: 36px;
  }
  
  .author-name {
    font-size: 0.95rem;
  }
  
  .author-follower-count {
    margin-right: 0.5rem;
    margin-left: 0.5rem;
  }
  
  .follower-number {
    font-size: 0.9rem;
  }
  
  .follower-label {
    font-size: 0.7rem;
  }
  
  .follow-author-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    min-width: 80px;
    margin-left: auto;
  }
  
  .author-link {
    padding: 0.4rem;
  }
  

  

  
  /* Mobile Prompt Container */
  .prompt-container {
    margin-top: 1.25rem;
    padding: 1.25rem;
  }
  
  /* Mobile Prompt Header - Download按钮显示在prompt标题上面 */
  .prompt-header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .prompt-title {
    font-size: 1rem;
    margin-bottom: 0;
  }
  
  .download-in-header {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  
  .prompt-content {
    font-size: 0.9rem;
  }
  
  /* Mobile Featured Image Grid */
  .featured-image-grid {
    margin-top: 1rem;
    margin-bottom: 1rem;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .featured-image-item:hover {
    transform: none;
  }
  
  .creation-meta {
    gap: 0.5rem;
  }
  
  .meta-tag {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }
  
  /* Mobile Action Buttons */
  .ai-artwork-actions,
  .td-model-actions {
    margin-top: 1.25rem;
    margin-bottom: 0.8rem;
    gap: 0.4rem;
  }
  
  .artwork-action-btn,
  .model-action-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .artwork-action-btn svg,
  .model-action-btn svg {
    width: 12px;
    height: 12px;
  }
  

}

/* Small Mobile Layout */
@media (max-width: 480px) {
  .single-post.ai-artwork-layout {
    padding: 0.25rem;
  }
  
  .ai-artwork-container {
    gap: 1rem;
    padding: 1rem;
  }
  
  .ai-artwork-image img {
    max-height: 50vh;
  }
  
  /* 3D Model Ultra Small Mobile Layout */
  .single-post.td-model-layout {
    padding: 0.25rem;
  }
  
  .td-model-container {
    gap: 1rem;
    padding: 1rem;
  }
  
  /* 确保超小屏幕上3D查看器仍然是正方形 */
  .td-model-viewer-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  /* 超小屏幕上的作者信息调整 */
  .td-model-content .artwork-author-info {
    margin-bottom: 1rem;
  }
  
  .single-content-type-icon {
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
  }
  
  .ai-artwork-content .post-title {
    font-size: 0.95rem;
  }
  
  .private-eye-icon {
    width: 14px;
    height: 14px;
    margin-top: 0.03rem;
  }
  
  /* Small mobile title wrapping */
  .post-title {
    font-size: 0.95rem;
    line-height: 1.2;
  }
  
  /* Small mobile default layout title */
  .single-post:not(.ai-artwork-layout) .post-title {
    font-size: 0.95rem;
    line-height: 1.2;
  }
  
  .ai-artwork-content .post-excerpt {
    font-size: 0.9rem;
  }
  
  .ai-artwork-content .post-content {
    font-size: 0.9rem;
  }
  
  .ai-artwork-content .post-meta-items {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Small Mobile Author Info Styles */
  .author-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .author-avatar .avatar-image {
    width: 32px;
    height: 32px;
  }
  
  .author-name {
    font-size: 0.9rem;
  }
  
  .uid-clickable {
    font-size: 0.75rem;
  }
  
  .author-follower-count {
    align-self: center;
    margin: 0;
  }
  
  .follower-number {
    font-size: 0.85rem;
  }
  
  .follower-label {
    font-size: 0.65rem;
  }
  
  .follow-author-btn {
    width: auto;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    justify-content: center;
    min-width: 75px;
    margin-left: auto;
  }
  
  .author-link {
    padding: 0.3rem;
  }
  
  /* Small Mobile Prompt Container */
  .prompt-container {
    margin-top: 1rem;
    padding: 1rem;
  }
  
  /* Small Mobile Prompt Header */
  .prompt-header {
    gap: 0.5rem;
  }
  
  .prompt-title {
    font-size: 0.95rem;
    margin-bottom: 0;
  }
  
  .download-in-header {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .download-in-header svg {
    width: 11px;
    height: 11px;
  }
  
  .prompt-content {
    font-size: 0.85rem;
  }
  
  /* Small Mobile Featured Image Grid */
  .featured-image-grid {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }
  
  .creation-meta {
    gap: 0.4rem;
  }
  
  .meta-tag {
    font-size: 0.55rem;
    padding: 0.15rem 0.35rem;
  }
  
  /* Small Mobile Action Buttons */
  .ai-artwork-actions,
  .td-model-actions {
    margin-top: 1rem;
    margin-bottom: 0.7rem;
    gap: 0.35rem;
  }
  
  .artwork-action-btn,
  .model-action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .artwork-action-btn svg,
  .model-action-btn svg {
    width: 11px;
    height: 11px;
  }
  

}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content-wrapper {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.post-meta {
  margin-bottom: 1rem;
}

.post-meta-items {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.post-meta-items span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.post-title {
  font-size: 0.95rem;
  font-weight: normal;
  color: var(--text-primary);
  margin: 1rem 0;
  line-height: 1.2;
}

.post-excerpt {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 1rem;
}

.post-content {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-small);
  margin: 1.5rem 0;
}

.post-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.post-tags h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.like-btn,
.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Related Posts */
.related-posts {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
}

.related-posts h3 {
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.related-post-item {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-small);
  overflow: hidden;
  transition: transform var(--transition-speed) ease;
}

.related-post-item:hover {
  /* Removed transform to prevent flickering */
}

.related-post-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-post-content {
  padding: 1rem;
}

.related-post-title {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.related-post-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.related-post-title a:hover {
  color: var(--primary-pink);
}

.related-post-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* Load More and Pagination */
.load-more-container {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0;
}

.pagination-wrapper {
  margin-top: 3rem;
  text-align: center;
}

.page-numbers {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-speed) ease;
}

.page-numbers a:hover,
.page-numbers .current {
  background: var(--gradient-primary);
  color: white;
}

.page-numbers .prev,
.page-numbers .next {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
}

/* Archive Header */
.archive-header {
  padding: 2rem;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  margin: 2rem;
}

.archive-description {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.archive-stats {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: var(--font-weight-medium);
}

/* No Results Styles */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results-content {
  max-width: 500px;
  margin: 0 auto;
}

.no-results-icon {
  margin-bottom: 2rem;
  opacity: 0.5;
}

.no-results-icon svg {
  stroke: var(--text-tertiary);
}

.suggested-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.search-form-wrapper {
  max-width: 400px;
  margin: 2rem auto;
}

.search-form-wrapper .search-form {
  width: 100%;
}

.search-form-wrapper .search-field {
  width: 100%;
}

/* Theme Transition */
.theme-transitioning * {
  transition: background-color var(--transition-speed) ease, 
              color var(--transition-speed) ease,
              border-color var(--transition-speed) ease !important;
}

/* Loading States */
.btn.loading {
  position: relative;
  color: transparent !important;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Accessibility Improvements */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999999;
  padding: 8px 16px;
  background: var(--bg-primary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--border-radius-small);
}

.skip-link:focus {
  left: 6px;
  top: 7px;
}

/* Focus Styles - Removed outline for cleaner UI */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: none;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .single-post {
    padding: 1rem;
  }

  .post-content-wrapper {
    padding: 1.5rem;
  }

  .post-title {
    font-size: 2rem;
  }
  
  .single-post:not(.ai-artwork-layout) .private-eye-icon {
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
  }
  
  /* Default layout desktop title */
  .single-post:not(.ai-artwork-layout) .post-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .related-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .post-meta-items {
    gap: 1rem;
  }

  .post-title {
    font-size: 0.95rem;
  }
  
  .single-post:not(.ai-artwork-layout) .private-eye-icon {
    width: 18px;
    height: 18px;
    margin-top: 0.08rem;
  }
  
  /* Default layout tablet title */
  .single-post:not(.ai-artwork-layout) .post-title {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .post-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .related-posts {
    padding: 1.5rem;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .single-post {
    padding: 0.5rem;
  }

  .post-content-wrapper {
    padding: 1rem;
  }

  .post-title {
    font-size: 0.95rem;
  }
  
  .single-post:not(.ai-artwork-layout) .private-eye-icon {
    width: 16px;
    height: 16px;
    margin-top: 0.05rem;
  }
  
  /* Default layout mobile title */
  .single-post:not(.ai-artwork-layout) .post-title {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .post-meta-items {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Print Styles */
@media print {
  .sidebar,
  .banner-section,
  .theme-toggle,
  .search-form,
  .language-toggle {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  .grid-item {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* Card Footer Mobile Responsive */
@media (max-width: 768px) {
  /* 确保card-footer在移动端正确显示 */
  .card-footer {
    display: block !important;
    position: absolute !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* 强制覆盖任何可能的冲突样式 */
  .grid-item .card-footer .footer-content,
  .card-footer .footer-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    height: 44px !important;
    min-height: 44px !important;
  }
  .card-footer {
    height: 44px; /* 稍微减小移动端高度 */
  }

  .footer-content {
    padding: 0 10px; /* 减少移动端内边距 */
    display: flex !important; /* 强制显示flex布局 */
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important; /* 强制水平布局 */
    height: 44px !important; /* 确保高度与card-footer一致 */
    min-height: 44px !important; /* 最小高度保证 */
  }

  .user-info {
    margin-left: -10px; /* 移动端减少左边距 */
    gap: 6px; /* 减少头像和名字之间的间距 */
  }

  .card-footer .user-avatar {
    width: 18px; /* 移动端稍小的头像 */
    height: 18px;
  }

  .card-footer .user-name {
    font-size: 11px; /* 移动端稍小的字体 */
    max-width: 100px; /* 减少最大宽度 */
  }

  .card-actions {
    gap: 10px; /* 减少操作按钮间距 */
    display: flex !important; /* 强制显示 */
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .like-area {
    display: flex !important; /* 强制显示 */
    align-items: center !important;
    gap: 4px !important;
  }

  .like-icon {
    display: flex !important; /* 强制显示 */
    align-items: center !important;
    justify-content: center !important;
  }

  .like-icon svg {
    width: 12px; /* 移动端稍小的图标 */
    height: 12px;
    display: block !important; /* 强制显示 */
  }

  .like-count {
    font-size: 10px; /* 移动端稍小的字体 */
    min-width: 14px;
    display: block !important; /* 强制显示 */
  }
}

@media (max-width: 480px) {
  .card-footer {
    height: 40px; /* 小屏幕进一步减小高度 */
  }

  /* 强制覆盖任何可能的冲突样式 */
  .grid-item .card-footer .footer-content,
  .card-footer .footer-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  .footer-content {
    padding: 0 8px; /* 进一步减少内边距 */
    display: flex !important; /* 强制显示flex布局 */
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important; /* 强制水平布局 */
    height: 40px !important; /* 确保高度与card-footer一致 */
    min-height: 40px !important; /* 最小高度保证 */
  }

  .user-info {
    margin-left: -8px; /* 小屏幕进一步减少左边距 */
    gap: 4px; /* 进一步减少间距 */
  }

  .card-footer .user-avatar {
    width: 16px; /* 小屏幕更小的头像 */
    height: 16px;
  }

  .card-footer .user-name {
    font-size: 10px; /* 小屏幕更小的字体 */
    max-width: 80px; /* 进一步减少最大宽度 */
  }

  .card-actions {
    gap: 8px; /* 进一步减少操作按钮间距 */
    display: flex !important; /* 强制显示 */
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .like-area {
    display: flex !important; /* 强制显示 */
    align-items: center !important;
    gap: 3px !important;
  }

  .like-icon {
    display: flex !important; /* 强制显示 */
    align-items: center !important;
    justify-content: center !important;
  }

  .like-icon svg {
    width: 11px; /* 小屏幕更小的图标 */
    height: 11px;
    display: block !important; /* 强制显示 */
  }

  .like-count {
    font-size: 9px; /* 小屏幕更小的字体 */
    min-width: 12px;
    display: block !important; /* 强制显示 */
  }
}

/* 超小屏幕和高缩放级别 */
@media (max-width: 360px) {
  .card-footer {
    height: 36px; /* 超小屏幕最小高度 */
  }

  /* 强制覆盖任何可能的冲突样式 */
  .grid-item .card-footer .footer-content,
  .card-footer .footer-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .footer-content {
    padding: 0 6px; /* 最小内边距 */
    display: flex !important; /* 强制显示flex布局 */
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important; /* 强制水平布局 */
    height: 36px !important; /* 确保高度与card-footer一致 */
    min-height: 36px !important; /* 最小高度保证 */
  }

  .user-info {
    margin-left: -6px; /* 超小屏幕最小左边距 */
    gap: 3px; /* 最小间距 */
  }

  .card-footer .user-avatar {
    width: 14px; /* 超小屏幕最小头像 */
    height: 14px;
  }

  .card-footer .user-name {
    font-size: 9px; /* 超小屏幕最小字体 */
    max-width: 60px; /* 最小最大宽度 */
  }

  .card-actions {
    gap: 6px; /* 最小操作按钮间距 */
    display: flex !important; /* 强制显示 */
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .like-area {
    display: flex !important; /* 强制显示 */
    align-items: center !important;
    gap: 2px !important;
  }

  .like-icon {
    display: flex !important; /* 强制显示 */
    align-items: center !important;
    justify-content: center !important;
  }

  .like-icon svg {
    width: 10px; /* 超小屏幕最小图标 */
    height: 10px;
    display: block !important; /* 强制显示 */
  }

  .like-count {
    font-size: 8px; /* 超小屏幕最小字体 */
    min-width: 10px;
    display: block !important; /* 强制显示 */
  }
}

/* Featured Tabs Responsive Styles */
@media (max-width: 768px) {
  .featured-tabs-container {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .featured-tabs {
    justify-content: center;
    flex-wrap: wrap;
  }

  .featured-tab-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }

  /* Assets Tabs Responsive */
  .assets-tabs-container {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .assets-tabs {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .assets-tab-btn {
    flex: none; /* 不拉伸 */
    min-width: 120px;
    text-align: center;
  }

  .search-tab {
    width: 100%;
  }

  .search-form {
    width: 100%;
  }

  .search-field {
    width: 100%;
  }

  .shimmer-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .featured-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .featured-tab-btn {
    width: 100%;
    min-width: auto;
  }

  /* Assets Tabs Mobile */
  .assets-tabs {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .assets-tab-btn {
    flex: none; /* 不拉伸 */
    width: auto; /* 自动宽度 */
    min-width: 120px;
  }

  .shimmer-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
  }

  .shimmer-item {
    aspect-ratio: 4/5;
  }
}

/* ===== PROFILE PAGE STYLES ===== */

/* Profile Container */
.profile-container {
  display: flex;
  gap: 0;
  width: 100%;
  min-height: calc(100vh - 120px);
}

/* Profile Sidebar */
.profile-sidebar {
  width: 300px;
  min-width: 300px;
  position: fixed;
  left: var(--sidebar-width); /* 使用CSS变量，贴着左侧菜单栏 */
  top: var(--header-height); /* 使用CSS变量，贴着顶部菜单栏 */
  bottom: 0; /* 延伸到屏幕底部 */
  height: calc(100vh - var(--header-height)); /* 从顶部菜单到屏幕底部 */
  overflow-y: auto;
  z-index: 10;
  padding: 0; /* 移除内边距，让卡片完全贴边 */
  background: transparent; /* 背景透明，让卡片自己的背景显示 */
  transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); /* 平滑过渡动画 */
}

/* 当侧边栏收缩时，Profile卡片也要相应调整位置 */
.sidebar.collapsed ~ .main-content .profile-sidebar,
html.sidebar-collapsed-init .profile-sidebar {
  left: 72px; /* 收缩后的侧边栏宽度 */
}

/* 当侧边栏收缩时，Profile内容区域也要相应调整位置 */
.sidebar.collapsed ~ .main-content .profile-content,
html.sidebar-collapsed-init .profile-content {
  left: calc(72px + 300px + 1rem); /* 收缩后的侧边栏宽度 + Profile卡片宽度 + 间距 */
}

.profile-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 0; /* 移除圆角，让卡片完全贴边 */
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  height: 100%; /* 填满整个侧边栏高度 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 内容从顶部开始排列 */
  border-left: none; /* 移除左边框，贴着侧边栏 */
  border-top: none; /* 移除顶边框，贴着顶部菜单 */
  border-bottom: none; /* 移除底边框，延伸到底部 */
}

/* Profile Info */
.profile-info {
  margin-bottom: 2rem;
  text-align: center; /* 整体居中 */
}

/* Profile Header - 头像和用户名在一行，可居中 */
.profile-header {
  display: inline-flex; /* 改为inline-flex，让整体可以居中 */
  align-items: center;
  gap: 0.5rem; /* 进一步减少间距 */
  margin-bottom: 1rem;
}

/* Profile Avatar - 缩小尺寸 */
.profile-avatar {
  flex-shrink: 0;
}

.profile-avatar .avatar-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--glass-border);
  object-fit: cover;
}

/* Profile Name - 调整字体大小 */
.profile-name {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-display: swap; /* 优化字体加载 */
}

/* Profile Stats */
.profile-stats {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.125rem;
  padding: 0;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.stat-number {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: capitalize;
  letter-spacing: 0.025em;
  line-height: 1;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-medium);
  font-weight: var(--font-weight-medium);
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  text-decoration: none;
}

.profile-actions .btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.profile-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.profile-actions .btn-secondary {
  background: transparent;
  color: var(--text-primary);
}

.profile-actions .btn-secondary:hover {
  background: transparent;
  transform: translateY(-2px);
}

/* Profile Content */
.profile-content {
  position: fixed;
  left: calc(var(--sidebar-width) + 300px + 1rem); /* 从侧边栏+Profile卡片右边开始 + 舒适间距 */
  right: 1.5rem; /* 右边留出更多间距 */
  top: var(--header-height); /* 紧贴顶部菜单栏，移除额外间距 */
  bottom: 0; /* 到屏幕底部 */
  padding: 1rem 0 2rem 0; /* 增加顶部内边距提供合适间距 */
  overflow-y: auto; /* 允许垂直滚动 */
  transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); /* 添加过渡动画以适应侧边栏变化 */
}

/* Profile Content Header */
.profile-content-header {
  margin-bottom: 1.5rem;
  margin-left: 0; /* 移除左边距调整，保持自然对齐 */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem; /* 添加按钮之间的间距 */
}

/* Content Filter Button - 与assets页面按钮保持一致 */
.content-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-small);
  padding: 0.5rem 1rem;
  color: var(--text-tertiary);
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-width: 60px;
  text-align: center;
  text-decoration: none;
}

.content-filter-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.content-filter-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid var(--primary-pink);
}

.content-filter-btn.active:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.content-filter-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Profile内容区域固定定位，不受侧边栏状态影响 */



/* Profile Posts Grid - 使用CSS columns实现瀑布流效果 */
.profile-posts-grid {
  column-count: 5; /* 默认5列 */
  column-gap: 6px;
  column-fill: balance;
  margin-left: 0; /* 移除左边距调整，与按钮自然对齐 */
  width: 100%; /* 使用全部可用宽度 */
  position: relative; /* 为绝对定位的no-content提供定位上下文 */
  min-height: 400px; /* 确保有足够高度显示居中内容 */
}

/* Profile页面的grid-item需要立即显示，适配CSS columns布局 */
.profile-posts-grid .grid-item {
  opacity: 1 !important; /* 覆盖masonry的初始隐藏 */
  width: 100% !important; /* 填满列宽 */
  margin-bottom: 6px !important; /* 卡片之间的垂直间距 */
  display: block !important;
  break-inside: avoid; /* 防止卡片被分割到两列 */
  page-break-inside: avoid; /* 兼容性 */
  transition: all 0.2s ease !important; /* 恢复过渡动画 */
}

/* Profile页面的图片样式 */
.profile-posts-grid .grid-item-image {
  opacity: 1 !important; /* 确保图片立即显示 */
}

/* Profile页面的悬停效果 */
.profile-posts-grid .grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 添加更大屏幕的响应式列数 */
@media (max-width: 1400px) {
  .profile-posts-grid {
    column-count: 4; /* 大屏幕4列 */
  }
}

/* No Content State */
.no-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 2rem;
  color: var(--text-secondary);
  grid-column: 1 / -1;
  gap: 0.75rem;
  min-height: 300px;
  width: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.no-content-icon {
  margin-bottom: 0;
  opacity: 0.5;
  flex-shrink: 0;
}

.no-content-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.no-content p {
  font-size: 0.875rem;
  margin: 0;
  white-space: nowrap;
}

/* Share Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-large);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
}

.share-url-container {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.share-url-container input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-medium);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.share-url-container input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.copy-url-btn {
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-medium);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-url-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Light theme copy button adjustments */
[data-theme="light"] .copy-url-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

/* Follow Button States */
.follow-user-btn.following {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border-color: var(--glass-border) !important;
}

.follow-user-btn.following:hover {
  background: rgba(255, 0, 0, 0.1) !important;
  border-color: rgba(255, 0, 0, 0.3) !important;
  color: #ff4444 !important;
}

/* Profile Page Mobile Responsive */
@media (max-width: 1024px) {
  .profile-container {
    flex-direction: column;
    gap: 0;
  }

  .profile-sidebar {
    position: static;
    width: 100%;
    min-width: auto;
    left: auto;
    top: auto;
    height: auto;
    order: 1;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .profile-content {
    position: static; /* 移动端恢复正常文档流 */
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    padding: 1rem 1rem 1rem; /* 移动端保持原有内边距 */
    order: 2;
    min-height: auto;
    overflow-y: visible;
  }

  .profile-content-header {
    margin-bottom: 1.5rem;
  }

  .content-filter-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }

  .profile-card {
    padding: 1.5rem;
    height: auto; /* 移动端恢复自动高度 */
    border-radius: var(--border-radius-large); /* 移动端恢复圆角 */
    border: 1px solid var(--glass-border); /* 移动端恢复边框 */
  }

  .profile-posts-grid {
    column-count: 3; /* 中等屏幕3列 */
    column-gap: 6px;
  }

  .profile-posts-grid .grid-item {
    margin-bottom: 6px !important;
  }
}

@media (max-width: 768px) {
  .profile-card {
    padding: 1rem;
  }

  .profile-avatar .avatar-image {
    width: 50px;
    height: 50px;
    border-width: 2px;
  }

  .profile-name {
    font-size: 1.1rem;
  }

  .profile-header {
    gap: 0.4rem; /* 进一步减少间距 */
  }

  .profile-info {
    text-align: center; /* 确保移动端也居中 */
  }

  .profile-stats {
    gap: 0.25rem;
    margin-top: 0.25rem;
    margin-bottom: 0.0625rem;
  }

  .profile-bio {
    margin-top: 0.0625rem;
    margin-bottom: 0.75rem;
  }

  .profile-tags {
    gap: 0.3rem;
    margin-top: -0.5rem; /* 移动端2倍负边距大幅上移 */
    justify-content: center;
  }

  .profile-tag {
    padding: 0.1875rem 0.375rem;
    font-size: 0.6875rem;
    border-radius: 10px;
  }

  .profile-tag svg {
    width: 10px;
    height: 10px;
  }

  .stat-number {
    font-size: 0.875rem;
  }

  .stat-label {
    font-size: 0.625rem;
  }

  .profile-posts-grid {
    column-count: 2; /* 小屏幕2列 */
    column-gap: 6px;
  }

  .profile-posts-grid .grid-item {
    margin-bottom: 6px !important;
  }

  .modal-content {
    width: 95%;
  }

  .modal-header,
  .modal-body {
    padding: 1rem 1.5rem;
  }

  .share-url-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .copy-url-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .profile-container {
    padding: 0 0.25rem;
  }

  .profile-card {
    padding: 0.75rem;
  }

  .profile-avatar .avatar-image {
    width: 45px;
    height: 45px;
    border-width: 2px;
  }

  .profile-name {
    font-size: 1rem;
  }

  .profile-header {
    gap: 0.4rem; /* 最小间距 */
  }

  .profile-info {
    text-align: center; /* 确保小屏幕也居中 */
  }

  .profile-stats {
    gap: 0.125rem;
    margin-top: 0.125rem;
    margin-bottom: 0.0625rem;
  }

  .profile-bio {
    margin-top: 0.0625rem;
    margin-bottom: 0.5rem;
  }

  .profile-tags {
    gap: 0.25rem;
    margin-top: -0.6rem; /* 小屏幕2倍负边距大幅上移 */
    justify-content: center;
  }

  .profile-tag {
    padding: 0.125rem 0.25rem;
    font-size: 0.625rem;
    border-radius: 8px;
  }

  .profile-tag svg {
    width: 8px;
    height: 8px;
  }

  .stat-number {
    font-size: 0.8rem;
  }

  .stat-label {
    font-size: 0.55rem;
  }

  .profile-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .profile-posts-grid {
    column-count: 1; /* 超小屏幕1列 */
    column-gap: 6px;
  }

  .profile-posts-grid .grid-item {
    margin-bottom: 6px !important;
  }

  .no-content {
    padding: 1.5rem 1rem;
    justify-content: center;
  }

  .no-content-icon svg {
    width: 28px;
    height: 28px;
  }

  .no-content p {
    font-size: 0.8125rem;
  }
}

/* ===== FOLLOW SYSTEM STYLES ===== */

/* Follow Stats Styling - Only clickable on own profile page */
.follow-stat {
    cursor: pointer;
    transition: all 0.2s ease;
}

.follow-stat:hover {
    opacity: 0.8;
}

[data-theme="light"] .follow-stat:hover {
    opacity: 0.8;
}

/* Remove hover effects for non-clickable stats on public profiles */
.stat-item:not(.follow-stat) {
    cursor: default;
}

.stat-item:not(.follow-stat):hover {
    transform: none;
    background: none;
}

/* Follow Modal Styling */
.follow-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.follow-modal {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(110%);
    -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(110%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    to {
        transform: scale(1) translateY(0);
    }
}

.follow-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.follow-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.follow-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.follow-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.follow-modal-content {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.follow-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.follow-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.follow-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-small);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.follow-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.follow-item-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.follow-item-info {
    flex: 1;
}

.follow-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.follow-item-uid {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.follow-item-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.follow-item-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 80px;
}

.no-follow-data {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

/* Light mode adjustments */
[data-theme="light"] .follow-modal {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .follow-modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .follow-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .follow-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .follow-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Prevent body scroll when modal is open on mobile */
@media (max-width: 1024px) {
    body.modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* Dark mode follow item stats - match UID color */
[data-theme="dark"] .follow-item-stats {
    color: #e0e0e0 !important;
}

/* Light mode follow item stats - match UID color */
[data-theme="light"] .follow-item-stats {
    color: #4a4a4a !important;
}

/* Feedback弹窗图片上传样式 - 与Creation页面保持一致 */
.feedback-upload-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feedback-upload-container .image-upload-area {
  width: 67px;
  height: 100px;
  background: var(--glass-bg);
  border: 2px dashed var(--glass-border);
  border-radius: var(--border-radius-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.feedback-upload-container .image-upload-area:hover {
  border-color: var(--primary-pink);
  background: rgba(255, 107, 157, 0.05);
}

.feedback-upload-container .image-upload-area.has-image {
  border: 1px solid var(--glass-border);
  background: transparent;
}

.feedback-upload-container .image-upload-area.has-image:hover {
  border-color: var(--primary-pink);
}

.feedback-upload-container .upload-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.feedback-upload-container .upload-placeholder:hover {
  color: var(--primary-pink);
}

.feedback-upload-container .upload-placeholder svg {
  width: 16px;
  height: 16px;
}

.feedback-upload-container .image-preview {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.feedback-upload-container .image-preview img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  vertical-align: top !important;
  line-height: 0 !important;
  font-size: 0 !important;
  border-radius: var(--border-radius-medium);
}

.feedback-upload-container .remove-image-btn {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 20px !important;
  height: 20px !important;
  background: rgba(0, 0, 0, 0.7) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  line-height: 1 !important;
  z-index: 10 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: background-color 0.2s ease;
}

.feedback-upload-container .remove-image-btn:hover {
  background: rgba(0, 0, 0, 0.9) !important;
}

/* 多图上传样式 - Creation页面 */
.multi-image-upload-area {
  width: 67px;
  height: 100px;
  position: relative;
  cursor: pointer;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.multi-image-upload-area .upload-placeholder {
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  border: 2px dashed var(--glass-border);
  border-radius: var(--border-radius-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.multi-image-upload-area .upload-placeholder:hover {
  border-color: var(--primary-pink);
  background: rgba(255, 107, 157, 0.05);
  color: var(--primary-pink);
}

.multi-image-upload-area .upload-placeholder svg {
  width: 16px;
  height: 16px;
}

/* 多图预览容器 */
.multi-image-preview {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-card {
  position: absolute;
  width: 67px;
  height: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100 !important;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  vertical-align: top;
  line-height: 0;
  font-size: 0;
}

.image-card .remove-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  z-index: 10;
  margin: 0;
  padding: 0;
  transition: all 0.2s ease;
  opacity: 0;
}

.image-card:hover .remove-image-btn {
  opacity: 1;
}

.image-card .remove-image-btn:hover {
  background: rgba(220, 50, 50, 0.9);
  transform: scale(1.1);
}

/* 图片计数器 */
.image-counter {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  white-space: nowrap;
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
}

.image-counter .current-count {
  color: var(--primary-pink);
  font-weight: var(--font-weight-semibold);
}

/* 添加更多按钮 */
.add-more-btn {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 24px;
  height: 24px;
  background: var(--primary-pink);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  z-index: 50;
  margin: 0;
  padding: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(255, 107, 157, 0.3);
}

.add-more-btn:hover {
  background: var(--primary-pink-dark, #e85d9a);
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(255, 107, 157, 0.4);
}

.add-more-btn svg {
  width: 12px;
  height: 12px;
}

/* 深色模式适配 */
[data-theme="dark"] .image-card {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .image-counter {
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

/* 浅色模式适配 */
[data-theme="light"] .image-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .image-counter {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .multi-image-upload-area {
    width: 60px; /* 与creation页面上传区域保持一致 */
    height: 90px; /* 与creation页面上传区域保持一致 */
  }

  .image-card {
    width: 60px; /* 与creation页面上传区域保持一致 */
    height: 90px; /* 与creation页面上传区域保持一致 */
  }

  .image-counter {
    bottom: -18px; /* 调整位置适应较小的高度 */
    font-size: 10px; /* 进一步缩小字体 */
    padding: 2px 6px; /* 减少内边距 */
    border-radius: 8px; /* 稍微减小圆角 */
  }

  .add-more-btn {
    width: 20px; /* 进一步缩小 */
    height: 20px;
    top: -6px; /* 调整位置 */
    left: -6px;
  }

  .add-more-btn svg {
    width: 10px; /* 进一步缩小图标 */
    height: 10px;
  }

  .image-card .remove-image-btn {
    width: 18px; /* 进一步缩小 */
    height: 18px;
    font-size: 10px;
    top: -6px; /* 调整位置 */
    right: -6px;
  }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
  .multi-image-upload-area {
    width: 50px; /* 进一步缩小以适应超小屏幕 */
    height: 75px;
  }

  .image-card {
    width: 50px; /* 进一步缩小以适应超小屏幕 */
    height: 75px;
  }

  .image-counter {
    bottom: -15px; /* 调整位置 */
    font-size: 9px; /* 进一步缩小字体 */
    padding: 1px 4px; /* 减少内边距 */
    border-radius: 6px; /* 进一步减小圆角 */
  }

  .add-more-btn {
    width: 16px; /* 进一步缩小 */
    height: 16px;
    top: -4px;
    left: -4px;
  }

  .add-more-btn svg {
    width: 8px; /* 进一步缩小图标 */
    height: 8px;
  }

  .image-card .remove-image-btn {
    width: 14px; /* 进一步缩小 */
    height: 14px;
    font-size: 8px;
    top: -4px;
    right: -4px;
  }
}

/* 模型选择选项描述样式 */
.model-selection-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.model-selection-option-text {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  line-height: 1.2;
  flex-shrink: 0;
}

.model-selection-option-description {
  font-size: 11px;
  font-weight: var(--font-weight-normal);
  color: var(--text-secondary);
  line-height: 1.2;
  opacity: 0.7;
  text-align: right;
  flex-shrink: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 移动端模型选择选项适配 */
@media (max-width: 768px) {
  .model-selection-option {
    padding: 8px 12px; /* 减少内边距 */
    gap: 8px; /* 减少间距 */
  }

  .model-selection-option-text {
    font-size: 12px; /* 缩小字体 */
  }

  .model-selection-option-description {
    font-size: 9px; /* 缩小描述字体 */
  }
}

/* 超小屏幕模型选择选项适配 */
@media (max-width: 480px) {
  .model-selection-option {
    padding: 6px 10px; /* 进一步减少内边距 */
    gap: 6px; /* 进一步减少间距 */
  }

  .model-selection-option-text {
    font-size: 11px; /* 进一步缩小字体 */
  }

  .model-selection-option-description {
    font-size: 8px; /* 进一步缩小描述字体 */
  }
}

.model-selection-option:hover .model-selection-option-description {
  opacity: 0.9;
}

/* 深色模式适配 */
[data-theme="dark"] .model-selection-option-text {
  color: var(--text-primary);
}

[data-theme="dark"] .model-selection-option-description {
  color: var(--text-secondary);
}

/* 浅色模式适配 */
[data-theme="light"] .model-selection-option-text {
  color: var(--text-primary);
}

[data-theme="light"] .model-selection-option-description {
  color: var(--text-secondary);
}

/* 模型和比例选择器行布局 */
.model-aspect-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.model-aspect-row .model-selection,
.model-aspect-row .aspect-ratio-selection {
  position: relative;
  display: inline-block;
}

/* 比例选择器使用与模型选择器相同的样式 */
.aspect-ratio-selection .model-selection-btn {
  min-width: 50px;
}

/* 比例选择器弹窗位置调整 - 在按钮上方 */
.aspect-ratio-selection .model-selection-modal {
  position: absolute;
  bottom: calc(100% + 8px);
  top: auto;
  left: 0;
  z-index: 1000;
  min-width: 280px;
}

/* 比例选择器弹窗内容使用与模型选择器相同的样式 */
.aspect-ratio-modal-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-large);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideUpSmall 0.2s ease-out;
}

.aspect-ratio-modal-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--glass-border);
}

.aspect-ratio-modal-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.aspect-ratio-options {
  padding: 12px 12px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 8px;
  row-gap: 28px;
  max-height: 212px;
  overflow-y: auto;
}

.aspect-ratio-option {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-medium);
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  position: relative;
}

.aspect-ratio-option:hover {
  border-color: var(--primary-pink);
  background: rgba(255, 107, 157, 0.05);
}

.aspect-ratio-option.selected {
  border-color: var(--primary-pink);
  background: rgba(255, 107, 157, 0.1);
}

.aspect-ratio-option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 有图片的选项内容占满整个选项框 */
.aspect-ratio-option-content img {
  width: 100% !important;
  height: 100% !important;
  border-radius: var(--border-radius-medium) !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

.aspect-ratio-option-content svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.aspect-ratio-option:hover .aspect-ratio-option-content svg,
.aspect-ratio-option.selected .aspect-ratio-option-content svg {
  color: var(--primary-pink);
}

.aspect-ratio-option-label {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* None样式的特殊显示（ID: 10001） */
.aspect-ratio-option[data-style-id="10001"] {
  flex-direction: column;
  justify-content: center;
}

.aspect-ratio-option[data-style-id="10001"] .aspect-ratio-option-content {
  display: none;
}

.aspect-ratio-option[data-style-id="10001"] .aspect-ratio-option-label {
  position: static;
  bottom: auto;
  left: auto;
  transform: none;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* None样式的文字变色效果 */
.aspect-ratio-option[data-style-id="10001"]:hover .aspect-ratio-option-label,
.aspect-ratio-option[data-style-id="10001"].selected .aspect-ratio-option-label {
  color: var(--primary-pink);
}

.aspect-ratio-option:hover .aspect-ratio-option-label,
.aspect-ratio-option.selected .aspect-ratio-option-label {
  color: var(--text-primary);
}

/* 禁用状态样式 */
.aspect-ratio-option.disabled {
  cursor: not-allowed !important;
  opacity: 0.3 !important;
}

.aspect-ratio-option.disabled:hover {
  border-color: var(--glass-border) !important;
  background: var(--glass-bg) !important;
}

.aspect-ratio-option.disabled .aspect-ratio-option-content svg {
  color: var(--text-secondary) !important;
}

.aspect-ratio-option.disabled .aspect-ratio-option-label {
  color: var(--text-secondary) !important;
}

/* 深色模式适配 */
[data-theme="dark"] .aspect-ratio-modal-content {
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .aspect-ratio-option {
  background: rgba(40, 40, 40, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

/* 浅色模式适配 */
[data-theme="light"] .aspect-ratio-modal-content {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .aspect-ratio-option {
  background: rgba(250, 250, 250, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Feedback弹窗图片上传样式 */
.feedback-upload-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feedback-upload-container .image-upload-area {
  width: 67px;
  height: 100px;
  background: var(--glass-bg);
  border: 2px dashed var(--glass-border);
  border-radius: var(--border-radius-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.feedback-upload-container .image-upload-area:hover {
  border-color: var(--primary-pink);
  background: rgba(255, 107, 157, 0.05);
}

.feedback-upload-container .image-upload-area.has-image {
  border: 1px solid var(--glass-border);
  background: transparent;
}

.feedback-upload-container .image-upload-area.has-image:hover {
  border-color: var(--primary-pink);
}

.feedback-upload-container .upload-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.feedback-upload-container .upload-placeholder:hover {
  color: var(--primary-pink);
}

.feedback-upload-container .upload-placeholder svg {
  width: 16px;
  height: 16px;
}

.feedback-upload-container .image-preview {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.feedback-upload-container .image-preview img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  vertical-align: top !important;
  line-height: 0 !important;
  font-size: 0 !important;
  border-radius: var(--border-radius-medium);
}

.feedback-upload-container .remove-image-btn {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 20px !important;
  height: 20px !important;
  background: rgba(0, 0, 0, 0.7) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  line-height: 1 !important;
  z-index: 10 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: background-color 0.2s ease;
}

.feedback-upload-container .remove-image-btn:hover {
  background: rgba(0, 0, 0, 0.9) !important;
}
