/*
Theme Name: 3DP Worktop
Theme URI: https://3dping.com
Description: A modern AI creative workspace theme with iOS-style UI, glassmorphism effects, and left sidebar navigation. Features pink to purple gradients, dark/light mode toggle, and waterfall layout for showcasing AI-generated images and 3D models.
Author: 3DPing Team
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 3dp-worktop
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready, blog, portfolio, creative
*/

/* CSS Custom Properties for Theme Colors and Effects */
:root {
  /* Color Palette - Pink to Purple Gradient */
  --primary-pink: #ff6b9d;
  --primary-purple: #8b5cf6;
  --gradient-primary: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
  
  /* Dark Theme Colors */
  --bg-dark: #0a0a0a;
  --bg-dark-secondary: #1a1a1a;
  --bg-dark-tertiary: #2a2a2a;
  --text-dark-primary: #ffffff;
  --text-dark-secondary: #b3b3b3;
  --text-dark-tertiary: #666666;
  
  /* Light Theme Colors */
  --bg-light: #ffffff;
  --bg-light-secondary: #f8f9fa;
  --bg-light-tertiary: #e9ecef;
  --text-light-primary: #1a1a1a;
  --text-light-secondary: #4a4a4a;
  --text-light-tertiary: #999999;
  
  /* Glassmorphism Effects */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --glass-backdrop: blur(20px);
  
  /* Spacing and Layout */
  --sidebar-width: 280px;
  --header-height: 70px;
  --border-radius: 8px;
  --border-radius-small: 6px;
  --transition-speed: 0.3s;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Font loading optimization */
  font-display: swap;
}

/* Dark Theme Variables */
html[data-theme="dark"] {
  --bg-primary: var(--bg-dark);
  --bg-secondary: var(--bg-dark-secondary);
  --bg-tertiary: var(--bg-dark-tertiary);
  --text-primary: var(--text-dark-primary);
  --text-secondary: var(--text-dark-secondary);
  --text-tertiary: var(--text-dark-tertiary);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Light Theme Variables */
html[data-theme="light"] {
  --bg-primary: var(--bg-light);
  --bg-secondary: var(--bg-light-secondary);
  --bg-tertiary: var(--bg-light-tertiary);
  --text-primary: var(--text-light-primary);
  --text-secondary: var(--text-light-secondary);
  --text-tertiary: var(--text-light-tertiary);
  --glass-bg: rgba(255, 255, 255, 0.15); /* 提高透明度，更接近深色模式的效果 */
  --glass-border: rgba(0, 0, 0, 0.15); /* 浅色模式使用深色边框，提高对比度 */
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  overflow-x: hidden;
  /* 防止字体闪烁 */
  font-display: swap;
  text-rendering: optimizeSpeed;
}

/* 全局emoji预设 - 防止缩放闪烁 */
img.emoji,
img[src*="emoji"],
img[src*="twemoji"],
img[src*="s.w.org/images/core/emoji"],
.emoji,
.wp-smiley {
  width: 1.2em !important;
  height: 1.2em !important;
  min-width: 1.2em !important;
  min-height: 1.2em !important;
  max-width: 1.2em !important;
  max-height: 1.2em !important;
  display: inline-block !important;
  vertical-align: -0.1em !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  transition: none !important;
  animation: none !important;
  transform: none !important;
  /* 强制立即渲染 */
  opacity: 1 !important;
  visibility: visible !important;
  /* 防止重排重绘 */
  will-change: auto !important;
  backface-visibility: hidden !important;
  /* 确保尺寸固定 */
  box-sizing: content-box !important;
  flex-shrink: 0 !important;
}

/* Default Light Theme - Prevent dark flash */
html:not([data-theme]) {
  --bg-primary: var(--bg-light);
  --bg-secondary: var(--bg-light-secondary);
  --bg-tertiary: var(--bg-light-tertiary);
  --text-primary: var(--text-light-primary);
  --text-secondary: var(--text-light-secondary);
  --text-tertiary: var(--text-light-tertiary);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(0, 0, 0, 0.15);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-pink);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--primary-purple);
}

/* Glassmorphism Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(255, 107, 157, 0.3);
}

/* Layout Structure */
.site-container {
  min-height: 100vh;
  position: relative;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  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-right: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    2px 0 32px rgba(0, 0, 0, 0.12),
    1px 0 8px rgba(0, 0, 0, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.15),
    inset 1px 0 0 rgba(0, 0, 0, 0.05);
  z-index: 1000;
  overflow-y: auto;
  overflow-x: visible; /* 允许水平溢出，让logo可以显示在外面 */
  filter: contrast(1.1) brightness(1.05);
  /* 隐藏滚动条但保持滚动功能 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  /* 默认显示侧边栏 */
  transform: translateX(0);
}

/* 页面加载完成后才启用过渡动画 */
.page-loaded .sidebar {
  transition: width 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* 隐藏 Webkit 浏览器的滚动条 */
.sidebar::-webkit-scrollbar {
  display: none;
}

/* 侧边栏收缩状态 */
.sidebar.collapsed,
html.sidebar-collapsed-init .sidebar {
  width: 72px; /* 收缩后的宽度，适配图标大小 */
}

/* 添加遮罩层 */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.main-content {
  margin-left: var(--sidebar-width); /* 默认为完整侧边栏宽度 */
  min-height: 100vh;
  background: var(--bg-primary);
  width: calc(100% - var(--sidebar-width));
}

/* 页面加载完成后才启用过渡动画 */
.page-loaded .main-content {
  transition: margin-left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* 当侧边栏收缩时，主内容区域调整 */
.sidebar.collapsed ~ .main-content,
html.sidebar-collapsed-init .main-content {
  margin-left: 72px; /* 收缩后的侧边栏宽度 */
  width: calc(100% - 72px);
}

.content-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 999;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Header Components */
.header-left {
  display: flex;
  align-items: center;
}

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

/* Menu Toggle Button */
.menu-toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  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);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  gap: 4px;
}

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

.hamburger-line {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.menu-toggle-btn:hover .hamburger-line {
  background: white;
}

/* Sidebar open state */
.sidebar.open {
  transform: translateX(0);
}

/* Hamburger animation when sidebar is open */
.menu-toggle-btn.active .hamburger-line:nth-child(1),
html.menu-button-active-init .menu-toggle-btn .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle-btn.active .hamburger-line:nth-child(2),
html.menu-button-active-init .menu-toggle-btn .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle-btn.active .hamburger-line:nth-child(3),
html.menu-button-active-init .menu-toggle-btn .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar Enhanced Effects */
.sidebar::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%);
  pointer-events: none;
  z-index: 1;
}

.sidebar::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(180deg,
    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%);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

/* Sidebar Styles */
/* 强制覆盖sidebar-header样式 */
.sidebar .sidebar-header,
#sidebar .sidebar-header,
.sidebar-header {
  height: 70px !important; /* 直接使用70px，强制覆盖 */
  min-height: 70px !important; /* 确保最小高度 */
  max-height: 70px !important; /* 确保最大高度 */
  padding: 0 1.5rem !important; /* 强制padding */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  position: relative !important;
  z-index: 2 !important;
  display: flex !important; /* 使用flex布局 */
  align-items: center !important; /* 垂直居中 */
  box-sizing: border-box !important; /* 确保padding包含在高度内 */
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-decoration: none;
  outline: none;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: var(--border-radius-small);
  justify-content: flex-start;
  white-space: nowrap; /* 防止文本换行 */
  overflow: hidden; /* 隐藏溢出文本 */
  min-height: 64px; /* 调整最小高度以适应48px logo */
  box-sizing: border-box; /* 确保padding包含在高度内 */
}

.sidebar-logo:focus {
  outline: none;
  box-shadow: none;
}

/* 收缩状态下的logo */
.sidebar.collapsed .sidebar-logo,
html.sidebar-collapsed-init .sidebar-logo {
  justify-content: flex-start; /* 左对齐 */
  gap: 0;
  padding: 0 0.5rem; /* 减少padding，确保48px logo能完全显示在72px宽度内 */
  min-height: 70px; /* 与header高度一致 */
  box-sizing: border-box; /* 确保padding包含在高度内 */
  position: relative; /* 为logo提供参考点 */
  z-index: 10; /* 确保logo显示在最前面 */
  overflow: visible; /* 确保不裁剪溢出内容 */
}

/* 收缩状态下的logo图片 - 使用transform实现平滑收缩 */
.sidebar.collapsed .sidebar-logo .custom-logo,
html.sidebar-collapsed-init .sidebar-logo .custom-logo {
  width: 48px; /* 保持原尺寸 */
  height: 48px;
  position: relative; /* 保持相对定位 */
  z-index: 1001; /* 确保显示在最前面 */
  transform: translateX(-18px); /* 向左偏移，让logo更靠左显示 */
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); /* 平滑过渡动画 */
}

.sidebar-logo span {
  white-space: nowrap; /* 防止文本换行 */
  overflow: hidden; /* 隐藏溢出文本 */
}

.sidebar.collapsed .sidebar-logo span,
html.sidebar-collapsed-init .sidebar-logo span {
  display: none; /* 隐藏文字 */
}

/* 为收缩状态的logo添加伪元素占位，保持高度 */
.sidebar.collapsed .sidebar-logo::after,
html.sidebar-collapsed-init .sidebar-logo::after {
  content: '';
  display: inline-block;
  height: 1.5rem; /* 与logo文字相同高度 */
  width: 0;
  vertical-align: middle;
}

.sidebar-logo svg {
  width: 32px;
  height: 32px;
  fill: var(--primary-pink);
  /* 保持logo图标大小不变 */
  flex-shrink: 0;
}

/* WordPress自定义logo样式 */
.sidebar-logo .custom-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); /* 添加平滑过渡动画 */
  position: relative;
  z-index: 1001;
}

.sidebar-logo .custom-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-nav {
  padding: 1rem 0;
  position: relative;
  z-index: 2;
}

.nav-menu {
  list-style: none;
}

.nav-item {
  margin-bottom: 0.25rem;
}

/* 导航分割线 */
.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 1.5rem;
  border: none;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--border-radius-small);
  margin: 0 0.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  font-weight: var(--font-weight-medium);
  position: relative;
  overflow: hidden;
  white-space: nowrap; /* 防止文本换行 */
  justify-content: flex-start; /* 确保默认左对齐 */
  height: 44px; /* 固定高度，防止变化 */
  box-sizing: border-box; /* 确保padding包含在高度内 */
  line-height: 1.5; /* 设置行高 */
}

/* 移除扫光效果 */
.nav-link::before {
  display: none;
}

.nav-link:hover::before {
  display: none;
}

/* 收缩状态下的导航链接 */
.sidebar.collapsed .nav-link,
html.sidebar-collapsed-init .nav-link {
  justify-content: center; /* 居中对齐图标 */
  padding: 0.75rem 1rem; /* 保持与展开时相同的上下padding */
  margin: 0 0.5rem;
  gap: 0;
  height: 44px; /* 固定高度，防止高度变化 */
  line-height: 1.5; /* 保持与展开时相同的行高 */
  display: flex;
  align-items: center;
}

.sidebar.collapsed .nav-link span,
html.sidebar-collapsed-init .nav-link span {
  display: none; /* 隐藏文字 */
}

/* 收起状态下不使用伪元素占位，简化结构避免高度变化 */

/* 删除tooltip弹起效果 */
.sidebar.collapsed .nav-link {
  position: relative;
}

/* 删除收起状态下的悬浮tooltip效果 */

.nav-link:hover {
  /* 删除悬浮效果 */
}

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

.nav-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  position: relative;
  z-index: 2;
  /* 保持图标大小不变 */
  flex-shrink: 0;
  /* 确保图标位置固定 */
  margin-left: 0;
  margin-right: 0;
  /* 固定垂直对齐，防止文字消失时上移 */
  align-self: center;
}

.nav-link span {
  position: relative;
  z-index: 2;
  white-space: nowrap; /* 防止文本换行 */
  overflow: hidden; /* 隐藏溢出文本 */
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  right: 1.5rem;
}

.theme-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.theme-toggle-btn:hover {
  /* 删除主题切换按钮的悬浮效果 */
}

/* Banner Section */
.banner-section {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin: 2rem 2rem 0 2rem;
  background: var(--gradient-primary);
  z-index: 10;
  order: 1;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none; /* 禁用非活跃banner的所有点击事件 */
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto; /* 只有活跃的banner可以接收点击事件 */
}

/* 确保非活跃banner的Try Now按钮完全不可点击 */
.banner-slide:not(.active) .banner-cta {
  pointer-events: none !important;
  visibility: hidden;
}

/* 确保活跃banner的Try Now按钮可以正常点击 */
.banner-slide.active .banner-cta {
  pointer-events: auto !important;
  visibility: visible;
}

.banner-layout {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 2rem;
  gap: 2rem;
}

.banner-image-container {
  flex: 0 0 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-image-card {
  width: 100%;
  height: 320px; /* 增加高度 */
  max-width: 570px; /* 对应16:9比例的宽度 (320 * 16/9 ≈ 570) */
  border-radius: var(--border-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #ff6b9d, #c44569, #8e44ad);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  position: relative;
  z-index: 1;
}

.banner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  padding-left: 1rem;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.banner-description {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.banner-cta,
.banner-slide .banner-cta,
.banner-slide .btn.banner-cta,
.banner-slide .btn-primary.banner-cta {
  align-self: flex-start;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  text-decoration: none;
  transition: none !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 禁用banner按钮的所有悬停效果 - 使用更具体的选择器 */
.banner-slide .banner-cta:hover,
.banner-slide .btn.banner-cta:hover,
.banner-slide .btn-primary.banner-cta:hover,
.banner-cta.btn:hover,
.banner-cta.btn-primary:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

/* 移动端按钮居中 */
@media (max-width: 1024px) {
  .banner-cta {
    align-self: center;
  }
}

/* Banner Navigation */
.banner-nav {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.banner-dot.active {
  background: white;
}

/* Waterfall Layout */
.content-grid {
  padding: 2rem;
  order: 2;
  position: relative;
  z-index: 1;
}

.grid-filters-container {
  margin-bottom: 2rem;
}

.grid-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-tab {
  margin-left: 1rem;
}

.search-tab .search-form {
  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-tab .search-field {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  width: 200px;
  transition: width var(--transition-speed) ease;
}

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

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

.search-tab .search-submit {
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

.masonry-grid {
  position: relative;
  z-index: 1;
  padding: 0.375rem; /* 6px padding，与JavaScript中的计算一致 */
  /* JavaScript masonry处理布局 */
  min-height: 200px; /* 最小高度，防止布局跳动 */
}

/* 加载状态已禁用 - 不显示转圈动画 */
.masonry-grid:not(.masonry-initialized):not(:empty)::before {
  display: none;
}

/* 当显示无结果页面时，隐藏加载动画 */
.masonry-grid:empty::before {
  display: none;
}

/* 当页面包含no-results时，隐藏所有加载动画 */
.no-results {
  position: relative;
}

.no-results ~ .masonry-grid::before,
.content-grid .no-results + .masonry-grid::before {
  display: none !important;
}

/* 更通用的解决方案：当内容区域包含no-results类时 */
.content-grid .no-results ~ * .masonry-grid::before,
.content-wrapper .no-results ~ * .masonry-grid::before {
  display: none !important;
}

/* @keyframes spin 已禁用 */

/* JavaScript masonry会为grid-item设置position, left, top, width */

/* Masonry布局完成后的样式 */
.masonry-grid.masonry-initialized .grid-item {
  opacity: 1;
  /* 移除transform冲突，让masonry自己处理位置 */
  /* 简化过渡动画，只保留必要的效果 */
  transition: opacity 0.3s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* 筛选加载状态已禁用 - 不显示转圈动画 */
.masonry-grid.loading {
  position: relative;
  /* pointer-events: none; 移除以保持交互性 */
}

.masonry-grid.loading::before,
.masonry-grid.loading::after {
  display: none;
}

/* 响应式默认宽度 */
@media (max-width: 1400px) {
  .grid-item {
    width: calc(25% - 0.75rem); /* 4列布局 */
  }
}

@media (max-width: 1200px) {
  .grid-item {
    width: calc(33.333% - 0.67rem); /* 3列布局 */
  }
}

@media (max-width: 768px) {
  .grid-item {
    width: calc(50% - 0.5rem); /* 2列布局 */
  }
}

@media (max-width: 480px) {
  .grid-item {
    width: calc(100% - 1rem); /* 单列布局 */
  }

  .banner-section {
    height: 250px;
    margin: 0.5rem;
  }

  .banner-layout {
    padding: 1rem;
  }

  .banner-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
  }
}

/* 无限滚动样式 */
.infinite-scroll-container {
  margin-top: 3rem;
  text-align: center;
}

.infinite-scroll-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  color: var(--text-secondary);
}

.infinite-scroll-loading .spinner {
  display: none;
}

/* 搜索结果页面样式已移除，使用与首页相同的布局 */

/* 分页样式 */
.pagination-wrapper {
  margin-top: 3rem;
  text-align: center;
}

.page-numbers {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.page-numbers a,
.page-numbers span {
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-small);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.page-numbers a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

.page-numbers .current {
  background: var(--gradient-primary);
  color: white;
}

.grid-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);
  overflow: hidden;
  cursor: pointer;

  /* 默认样式，防止JavaScript加载前显示过大 */
  width: calc(20% - 0.8rem); /* 5列布局的默认宽度 */
  margin-bottom: 0; /* 移除margin-bottom，让JavaScript masonry完全控制间距 */
  display: inline-block;
  vertical-align: top;

  /* 初始状态隐藏，等待masonry布局 */
  opacity: 0;
  /* 移除初始transform，避免与masonry冲突 */

  /* 禁用初始的过渡动画，防止页面加载时的抖动 */
  transition: none;
}

/* 卡片悬停效果已禁用 */

.grid-item-image {
  width: 100% !important;
  height: auto !important; /* 强制覆盖内联样式，自适应高度 */
  aspect-ratio: auto !important; /* 移除固定宽高比 */
  display: block;
  transition: opacity 0.3s ease; /* 只保留透明度过渡，用于懒加载 */
}

/* 图片悬停放大效果已禁用 */

/* Lazy loading styles with enhanced animation */
.grid-item-image.lazy {
  opacity: 0;
  background: var(--glass-bg);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(1.05);
}

.grid-item-image.loaded {
  opacity: 1;
  transform: scale(1);
  animation: imageSlideIn 0.6s ease-out;
}

.grid-item-image:not(.lazy) {
  opacity: 1;
}

.grid-item-content {
  padding: 1.5rem;
}

.grid-item-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.grid-item-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.grid-item-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.grid-item-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.25rem 0.75rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

/* Loading Animation 已禁用 */
.loading-spinner {
  display: none;
}

.spinner {
  display: none;
}

/* @keyframes spin 已禁用 */

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
  }

  .content-grid {
    padding: 1rem;
  }

  .banner-section {
    margin: 1rem;
    height: 300px;
  }

  /* 移动端使用背景图片布局 */
  .banner-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .banner-layout {
    position: relative;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    padding: 1.5rem;
  }

  .banner-image-container {
    display: none;
  }

  .banner-content {
    padding-left: 0;
    align-items: center;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .banner-title,
  .banner-description {
    display: none;
  }

  .banner-cta {
    margin-bottom: 2rem;
    align-self: center;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .banner-section {
    height: 280px;
  }

  .banner-layout {
    padding: 1.5rem;
  }

  .banner-cta {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .grid-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .search-tab {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .search-tab .search-field {
    width: 100%;
  }

  .search-tab .search-field:focus {
    width: 100%;
  }

  .grid-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }

  .content-header {
    padding: 0 1rem;
  }

  .banner-content {
    padding: 1.5rem;
  }

  .grid-item-content {
    padding: 1rem;
  }
}

/* Grid Responsive Styles */
@media (max-width: 1400px) {
  .masonry-grid {
    grid-template-columns: repeat(4, 1fr); /* 4列布局 */
  }
}

@media (max-width: 1200px) {
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr); /* 3列布局 */
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr); /* 2列布局 */
    gap: 0.375rem;
    padding: 0.375rem;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    grid-template-columns: 1fr; /* 单列布局 */
    gap: 0.375rem;
    padding: 0.375rem;
  }
}

/* Mobile Menu Styles */
@media (max-width: 1024px) {
  .content-header .header-right {
    gap: 0.5rem;
  }

  .search-field {
    width: 150px;
  }

  .search-field:focus {
    width: 200px;
  }

  .language-btn {
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
  }

  .header-theme-toggle .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .btn {
    height: 36px;
    padding: 0 1rem;
    font-size: 0.8125rem;
  }

  .user-avatar-btn {
    height: 36px;
    padding: 0 0.5rem;
  }

  .avatar-img {
    width: 24px;
    height: 24px;
  }

  .dropdown-arrow {
    width: 10px;
    height: 10px;
  }
}

/* Mobile Sidebar Styles */
@media (max-width: 1024px) {
  /* 重置CSS变量，移除侧边栏占位 */
  :root {
    --sidebar-width: 0px !important;
    --sidebar-collapsed-width: 0px !important;
  }

  .sidebar {
    position: fixed !important; /* 固定定位，作为弹窗 */
    top: 0 !important;
    left: 0 !important;
    width: 320px !important; /* 移动端侧边栏宽度 */
    height: 100vh !important;
    z-index: 1050 !important; /* 高层级，显示在最前面 */
    transform: translateX(-100%) !important; /* 默认隐藏在左侧外 */
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;

    /* 增强玻璃效果 */
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(90%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(90%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow:
      4px 0 32px rgba(0, 0, 0, 0.3),
      2px 0 16px rgba(0, 0, 0, 0.2),
      inset -1px 0 0 rgba(255, 255, 255, 0.1) !important;
  }

  .sidebar.open {
    transform: translateX(0) !important; /* 打开时滑入 */
  }

  .sidebar.collapsed {
    transform: translateX(-100%) !important; /* 收缩时也隐藏 */
  }

  .main-content {
    margin-left: 0 !important; /* 主内容占满全屏 */
    width: 100% !important; /* 确保占满宽度 */
  }

  .content-header {
    margin-left: 0 !important; /* 头部占满全屏 */
    width: 100% !important; /* 确保占满宽度 */
  }

  /* 确保页面容器也占满全屏 */
  .page-container {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* 添加遮罩层 */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1049; /* 比侧边栏低一层 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* 白天模式的玻璃效果调整 */
  [data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(105%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(105%) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow:
      4px 0 32px rgba(0, 0, 0, 0.15),
      2px 0 16px rgba(0, 0, 0, 0.1),
      inset -1px 0 0 rgba(255, 255, 255, 0.8),
      inset 1px 0 0 rgba(0, 0, 0, 0.05) !important;
  }
}

/* Additional Component Styles */
.site-footer {
  margin-left: var(--sidebar-width);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-top: 1px solid var(--glass-border);
  padding: 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-info p:first-child {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .site-footer {
    margin-left: 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .language-btn {
    height: 32px;
    padding: 0 0.5rem;
    font-size: 0.75rem;
  }

  .header-theme-toggle .theme-toggle-btn {
    width: 32px;
    height: 32px;
  }

  .btn {
    height: 32px;
    padding: 0 0.75rem;
    font-size: 0.75rem;
  }

  .user-avatar-btn {
    height: 32px;
    padding: 0 0.5rem;
  }

  .avatar-img {
    width: 20px;
    height: 20px;
  }

  .dropdown-arrow {
    width: 8px;
    height: 8px;
  }
}

/* 优化主题切换性能 */
/* 只对关键元素添加主题过渡动画 */
body {
  transition: background-color 0.2s ease;
}

.sidebar,
.main-content,
.btn,
.nav-link,
.theme-toggle-btn,
.search-tab,
.filter-btn {
  transition: background-color 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-bg);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-pink);
}

/* Selection styles */
::selection {
  background: var(--primary-pink);
  color: white;
}

::-moz-selection {
  background: var(--primary-pink);
  color: white;
}

/* Hide WordPress Admin Bar */
#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

* html body {
  margin-top: 0 !important;
}

/* Sidebar Theme Adaptations */
[data-theme="dark"] .sidebar {
  background: rgba(0, 0, 0, 0.4) !important;
  border-right-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .sidebar::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%) !important;
}

[data-theme="dark"] .sidebar .sidebar-header,
[data-theme="dark"] #sidebar .sidebar-header,
[data-theme="dark"] .sidebar-header {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
  height: 70px !important; /* 强制70px高度 */
  padding: 0 1.5rem !important; /* 强制padding */
}

[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.7) !important;
  border-right-color: rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(95%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) contrast(120%) brightness(95%) !important;
  box-shadow:
    2px 0 32px rgba(0, 0, 0, 0.08),
    1px 0 8px rgba(0, 0, 0, 0.04),
    inset -1px 0 0 rgba(255, 255, 255, 0.8),
    inset 1px 0 0 rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .sidebar::before {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 100%) !important;
}

[data-theme="light"] .sidebar .sidebar-header,
[data-theme="light"] #sidebar .sidebar-header,
[data-theme="light"] .sidebar-header {
  background: rgba(0, 0, 0, 0.02) !important;
  border-bottom-color: rgba(0, 0, 0, 0.1) !important;
  height: 70px !important; /* 强制70px高度 */
  padding: 0 1.5rem !important; /* 强制padding */
}

[data-theme="light"] .nav-link:hover {
  /* 删除光主题下的悬浮效果 */
}

[data-theme="light"] .nav-link.active {
  background: var(--gradient-primary) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3) !important;
}

/* 浅色模式下增强content-header边框 */
[data-theme="light"] .content-header {
  border-bottom-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] .nav-link.active {
  background: var(--gradient-primary) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3) !important;
}

/* 菜单图标彩色样式 */
.nav-link[href*="home"] svg {
  color: #4CAF50; /* 绿色 - 家 */
}

.nav-link[href*="explore"] svg {
  color: #FF9800; /* 橙色 - 探索 */
}

.nav-link[href*="profile"] svg {
  color: #2196F3; /* 蓝色 - 用户 */
}

.nav-link[href*="assets"] svg,
.nav-link[href*="gallery"] svg {
  color: #9C27B0; /* 紫色 - 图库 */
}

.nav-link[href*="creation"] svg {
  color: #FFD700; /* 金色 - 创作 */
}

/* 订阅钻石图标样式 */
.nav-link[href*="points-recharge"] span {
  font-size: 16px !important;
  line-height: 20px !important;
  vertical-align: middle !important;
  margin-top: -2px;
}

/* 激活状态下保持白色 */
.nav-link.active svg {
  color: white !important;
}

[data-theme="light"] .nav-link::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 50%,
    transparent 100%) !important;
}

/* 浅色主题下的分割线 */
[data-theme="light"] .nav-divider {
  background: rgba(0, 0, 0, 0.25) !important;
}

/* 返回按钮样式 - 工作区左上角 */
.back-btn {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: 
    0 8px 32px rgba(255, 107, 157, 0.3),
    0 4px 16px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
}

.back-btn.fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 48px rgba(255, 107, 157, 0.5),
    0 6px 24px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.back-btn:active {
  transform: translateY(-1px);
}

.back-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-speed) ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.back-btn:hover svg {
  transform: translateX(-2px);
}

/* 添加微妙的脉冲动画 */
.back-btn.fade-in {
  animation: backBtnPulse 2s ease-in-out infinite;
}

@keyframes backBtnPulse {
  0%, 100% {
    box-shadow: 
      0 8px 32px rgba(255, 107, 157, 0.3),
      0 4px 16px rgba(139, 92, 246, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 8px 32px rgba(255, 107, 157, 0.4),
      0 4px 16px rgba(139, 92, 246, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

.back-btn:hover {
  animation: none; /* 悬停时停止脉冲动画 */
}

/* 移动端响应式 */
@media (max-width: 1024px) {
  .back-btn {
    display: none !important; /* 移动端隐藏工作区返回按钮，使用菜单按钮的返回功能 */
  }
}

@media (max-width: 768px) {
  .back-btn {
    display: none !important; /* 确保在所有移动端尺寸都隐藏 */
  }
}

/* 移动端菜单按钮变为返回按钮的样式 */
@media (max-width: 1024px) {
  .menu-toggle-btn.mobile-back-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
  }
  
  .menu-toggle-btn.mobile-back-btn:hover {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 24px rgba(255, 107, 157, 0.4);
    transform: translateY(-2px);
  }
  
  .menu-toggle-btn.mobile-back-btn svg {
    transition: transform var(--transition-speed) ease;
  }
  
  .menu-toggle-btn.mobile-back-btn:hover svg {
    transform: translateX(-2px);
  }
  
  /* 确保返回按钮图标居中 */
  .menu-toggle-btn.mobile-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 隐藏原有的hamburger线条 */
  .menu-toggle-btn.mobile-back-btn .hamburger-line {
    display: none;
  }
}

/* 移动端返回按钮主题优化 */
[data-theme="dark"] .menu-toggle-btn.mobile-back-btn {
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.4);
}

[data-theme="light"] .menu-toggle-btn.mobile-back-btn {
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.25);
}
[data-theme="dark"] .back-btn {
  box-shadow: 
    0 8px 32px rgba(255, 107, 157, 0.4),
    0 4px 16px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .back-btn {
  box-shadow: 
    0 8px 32px rgba(255, 107, 157, 0.25),
    0 4px 16px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


