/* ============================================================
   enhance.css — 全局视觉增强 & 交互优化
   覆盖 / 扩展 style.css，引入更现代的设计语言
   ============================================================ */

/* === 1. CSS 变量 & 主题 Token === */
:root {
  --primary: #6366F1;
  --primary-hover: #818CF8;
  --primary-dark: #4F46E5;
  --primary-glow: rgba(99,102,241,0.35);
  --primary-subtle: rgba(99,102,241,0.12);
  --accent: #8B5CF6;
  --accent-glow: rgba(139,92,246,0.3);
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;

  --bg-base: #0F0F12;
  --bg-card: #1A1A22;
  --bg-card-hover: #202030;
  --bg-elevated: #23232F;
  --border: #2D2D3A;
  --border-subtle: rgba(255,255,255,0.06);

  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  --sidebar-width: 248px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 24px var(--primary-glow);
  --shadow-hover: 0 12px 36px rgba(0,0,0,0.45);

  --ease-out: cubic-bezier(0.4,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
}
/* === 2. 全局滚动条美化 === */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.35); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.6); }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(139,92,246,0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* === 3. Sidebar 导航增强 === */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #16161E 0%, #111118 100%);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 32px rgba(0,0,0,0.4), inset -1px 0 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
}

.logo-section {
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.logo-section::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(99,102,241,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.logo-section:hover .logo-icon {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 12px 32px rgba(99,102,241,0.55);
}

.logo-text h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.logo-text span { font-size: 11px; color: var(--text-muted); }

.nav-section {
  padding: 12px 10px;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-item {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.1px;
  border: 1px solid transparent;
  transition: all 0.22s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  background: linear-gradient(180deg, #6366F1, #8B5CF6);
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height 0.25s var(--ease-spring);
}

.nav-item:hover::before,
.nav-item.active::before { height: 60%; }

.nav-item:hover {
  color: #E0E7FF;
  background: linear-gradient(120deg, rgba(99,102,241,0.14), rgba(79,70,229,0.2));
  border-color: rgba(99,102,241,0.3);
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.15);
}

.nav-item.active {
  color: #F0F0FF;
  background: linear-gradient(120deg, rgba(99,102,241,0.22), rgba(79,70,229,0.38));
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 6px 20px rgba(99,102,241,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}

.nav-submenu-item {
  margin-left: 26px;
  padding: 9px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  color: #8E97A8;
  border: 1px solid rgba(99,102,241,0.06);
  background: rgba(255,255,255,0.025);
  transition: all 0.2s var(--ease-out);
}

.nav-submenu-item:hover {
  color: #D0D8F8;
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.22);
  transform: translateX(3px);
}

.nav-submenu-item.active {
  color: #EEF2FF;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.15));
  border-color: rgba(129,140,248,0.35);
  box-shadow: 0 4px 16px rgba(79,70,229,0.15);
}

.badge {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  box-shadow: 0 2px 8px rgba(245,158,11,0.4);
  letter-spacing: 0.3px;
  animation: badge-pulse 2.5s ease infinite;
}

@keyframes badge-pulse {
  0%,100% { box-shadow: 0 2px 8px rgba(245,158,11,0.4); }
  50% { box-shadow: 0 2px 16px rgba(245,158,11,0.7); }
}

.user-section {
  padding: 14px;
  border-top: 1px solid var(--border);
  background: linear-gradient(0deg, rgba(10,10,14,0.6) 0%, transparent 100%);
}

.user-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #374151, #4B5563);
  border-radius: 50%;
  border: 2px solid rgba(99,102,241,0.3);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-spring);
}

.user-avatar:hover { border-color: rgba(99,102,241,0.7); transform: scale(1.08); }

.credits {
  font-size: 11px;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(5,150,105,0.1));
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 99px;
  padding: 3px 10px;
  color: #34D399;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
}

.credits:hover {
  background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(5,150,105,0.2));
  box-shadow: 0 0 12px rgba(16,185,129,0.25);
}

.btn-login {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 16px rgba(79,70,229,0.35);
  letter-spacing: 0.3px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,70,229,0.5);
  background: linear-gradient(135deg, #5B52F0, #8B46F0);
}

/* === 4. 主内容区布局修正 === */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding-top: 0 !important;
  transition: margin-left 0.3s var(--ease-out);
}

/* 移动端顶部导航栏 */
.mobile-header {
  background: linear-gradient(90deg, #13131A 0%, #16161E 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 200;
}

.mobile-nav {
  height: 56px;
  padding: 0 16px;
}

.mobile-logo span {
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(90deg, #818CF8, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-credits {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #34D399;
  transition: all 0.3s ease;
}

.mobile-credits:hover {
  background: rgba(16,185,129,0.2);
  box-shadow: 0 0 12px rgba(16,185,129,0.3);
}

.mobile-menu-btn {
  width: 38px; height: 38px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-sm);
  color: #818CF8;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}

.mobile-menu-btn:hover {
  background: rgba(99,102,241,0.2);
  box-shadow: 0 0 12px rgba(99,102,241,0.3);
  transform: scale(1.05);
}

.sidebar-overlay {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

/* === 5. 首页 Banner 区域 === */
.inspiration-content {
  padding: 24px 28px 40px;
  max-width: 100%;
}

.new-layout-container { margin-bottom: 28px; }

.top-section {
  height: 420px;
  gap: 18px;
  margin-bottom: 18px;
}

.banner-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.banner-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(99,102,241,0.08) 0%,
    transparent 50%,
    rgba(139,92,246,0.05) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.banner-box:hover::after { opacity: 1; }

.banner-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.banner-box:hover img { transform: scale(1.04); }

/* Banner 左下角遮罩文字 */
.banner-box::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.video-box {
  width: 400px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.video-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99,102,241,0);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
}

.video-box:hover::after {
  border-color: rgba(99,102,241,0.4);
  box-shadow: inset 0 0 40px rgba(99,102,241,0.08);
}

.video-title-overlay {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  z-index: 2;
  background: linear-gradient(90deg, rgba(99,102,241,0.7), rgba(139,92,246,0.5));
  padding: 5px 14px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  font-size: 13px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* === 6. 功能导航卡片 === */
.bottom-nav-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.nav-card {
  height: 200px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.35s var(--ease-out);
}

.nav-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(99,102,241,0.2), var(--shadow-glow);
}

.nav-card:hover::after { opacity: 1; }

.nav-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.nav-card:hover img { transform: scale(1.08); }

/* 卡片底部渐变遮罩 */
.nav-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-card:hover::before { opacity: 1; }

/* === 7. 灵感瀑布流卡片 === */
.inspiration-card {
  background: linear-gradient(145deg, #1C1C26 0%, #171720 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  will-change: transform;
}

.inspiration-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(99,102,241,0.3);
  border-color: rgba(99,102,241,0.4);
}

.card-image-container {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-image {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.45s var(--ease-out), filter 0.3s ease;
  object-fit: cover;
}

.inspiration-card:hover .card-image {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* 图片悬浮遮罩 */
.card-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(99,102,241,0.12) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.inspiration-card:hover .card-image-container::after { opacity: 1; }

.card-content {
  padding: 14px 14px 12px;
  background: linear-gradient(0deg, rgba(10,10,16,0.3) 0%, transparent 100%);
}

.card-feature-type {
  font-size: 11px;
  color: #818CF8;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 8px;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.inspiration-card:hover .card-feature-type {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.4);
  color: #A5B4FC;
}

.card-prompt {
  font-size: 12.5px;
  color: #B0B8C8;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.inspiration-card:hover .card-prompt { color: #D0D8E8; }

.card-time {
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-time::before {
  content: '\f017';
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
  font-size: 9px;
}

/* === 8. 分类 Tab 增强 === */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 20px 0;
  background: transparent;
}

.category-tabs.fixed {
  background: rgba(15,15,18,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.category-tab {
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.category-tab::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.category-tab:hover {
  color: #C7D2FE;
  border-color: rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.2);
}

.category-tab:hover::after { opacity: 1; }

.category-tab.active {
  color: #EEF2FF;
  border-color: rgba(99,102,241,0.6);
  background: linear-gradient(120deg, rgba(99,102,241,0.25), rgba(79,70,229,0.35));
  box-shadow: 0 4px 20px rgba(99,102,241,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  font-weight: 600;
}

/* === 9. 全局按钮 & 徽章 === */
.use-feature-btn {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 6px 20px rgba(79,70,229,0.4);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.use-feature-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(79,70,229,0.55);
  background: linear-gradient(135deg, #5B52F0, #8B46F0);
}

.use-feature-btn:active { transform: translateY(-1px); }

.back-to-top {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #fff;
  border: none;
  box-shadow: 0 8px 28px rgba(99,102,241,0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: fixed;
  right: 28px;
  bottom: 36px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: all 0.3s var(--ease-spring);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 16px 40px rgba(99,102,241,0.6);
}

.copy-prompt-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(99,102,241,0.2);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 6px;
  color: #A5B4FC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.25s ease;
}

.copy-prompt-btn:hover {
  background: rgba(99,102,241,0.4);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(99,102,241,0.4);
}

/* === 10. 弹窗 & 模态框 === */
.image-modal-overlay {
  background: rgba(5,5,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.image-modal {
  background: linear-gradient(145deg, #1A1A24 0%, #141420 100%);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  max-width: 820px;
}

.image-modal-header {
  padding: 20px 28px 16px;
  border-bottom: 1px solid rgba(99,102,241,0.15);
  background: linear-gradient(90deg, rgba(99,102,241,0.06) 0%, transparent 100%);
}

.image-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #F0F0FF;
  gap: 10px;
}

.image-modal-title i {
  color: #818CF8;
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.5));
}

.image-modal-close {
  width: 34px; height: 34px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-sm);
  color: #9CA3AF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.image-modal-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.4);
  color: #EF4444;
  transform: rotate(90deg);
}

.modal-content-area { padding: 20px 28px 24px; }

.modal-image {
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  max-height: 42vh;
}

.modal-video {
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  max-height: 42vh;
}

.modal-details {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-prompt {
  background: rgba(15,15,22,0.6);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 14px 12px 14px;
  font-size: 13px;
  color: #C8D0E0;
  line-height: 1.6;
  max-height: 18vh;
  overflow-y: auto;
}

/* === 11. 加载动画 & 骨架屏 === */
.loading-indicator {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.loading-indicator i {
  font-size: 28px;
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.5));
  animation: spin 1s linear infinite;
}

.loading-indicator p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.no-data {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.no-data i {
  font-size: 52px;
  color: rgba(99,102,241,0.2);
  margin-bottom: 16px;
  display: block;
}

.no-data p {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 骨架屏（可选） */
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #1C1C26 25%, #252535 50%, #1C1C26 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

/* === 12. 移动端适配 === */
@media (max-width: 768px) {
  .main-content { margin-left: 0; }

  .inspiration-content { padding: 12px 14px 32px; }

  .top-section {
    height: auto;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }

  .banner-box { height: 190px; }

  .video-box {
    width: 100%;
    height: 210px;
  }

  .bottom-nav-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .nav-card { height: 140px; }

  .inspiration-card { width: calc(50% - 10px) !important; }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .category-tabs.fixed {
    padding: 10px 14px;
    top: 56px;
  }

  .category-tab { padding: 6px 13px; font-size: 12px; }

  .image-modal {
    width: 96%;
    border-radius: var(--radius-lg);
  }

  .image-modal-header { padding: 16px 18px 12px; }
  .modal-content-area { padding: 14px 18px 18px; }

  .back-to-top { right: 16px; bottom: 24px; width: 42px; height: 42px; font-size: 16px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .bottom-nav-section { grid-template-columns: repeat(2, 1fr); }
  .nav-card { height: 170px; }
  .inspiration-card { width: calc(33.333% - 14px) !important; }
}

/* === 13. 微交互 & 动画 === */

/* 页面淡入 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 布局稳定淡入 */
.layout-stabilizer {
  animation: fadeIn 0.4s ease forwards;
}

/* Banner 区入场动画 */
.new-layout-container {
  animation: fadeInUp 0.5s ease both;
}

/* 卡片入场（由 JS 控制 .card-animate 类） */
.inspiration-card {
  animation: scaleIn 0.4s var(--ease-out) both;
}

/* 弹窗打开动画 */
.image-modal-overlay.show .image-modal {
  animation: scaleIn 0.3s var(--ease-spring) forwards;
}

/* 涟漪点击效果（用于按钮） */
@keyframes ripple {
  from { transform: scale(0); opacity: 0.6; }
  to { transform: scale(2.5); opacity: 0; }
}

/* 选中文字颜色 */
::selection {
  background: rgba(99,102,241,0.3);
  color: #EEF2FF;
}

/* 图片懒加载淡入 */
img[loading="lazy"] {
  transition: opacity 0.4s ease;
}

/* 图标颜色统一 */
.nav-item i,
.nav-item svg { color: inherit; }

/* 焦点环（无障碍） */
:focus-visible {
  outline: 2px solid rgba(99,102,241,0.7);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* 禁用状态 */
[disabled],
.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* 玻璃拟态辅助类 */
.glass {
  background: rgba(26,26,34,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07);
}
