:root {
  /* 马卡龙色系 - 童趣化视觉体系 */
  --primary: #4A90E2;        /* 天空蓝 - 主色 */
  --primary-light: #7BB3F0;
  --primary-soft: #E8F4FF;
  --secondary: #FF6B8B;      /* 嫩粉 - 辅助色 */
  --secondary-light: #FFB3C1;
  --accent: #FFD166;          /* 鹅黄 */
  --accent-light: #FFE9A8;
  --mint: #06D6A0;           /* 薄荷绿 */
  --mint-light: #A8EDD4;
  --purple: #9B5DE5;         /* 薰衣草紫 */
  --purple-light: #D4B8F0;
  
  --bg: #FAFBFF;
  --bg-warm: #FFF9F0;
  --bg-card: rgba(255, 255, 255, 0.95);
  --text: #2D3748;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E9F0;
  --shadow: 0 8px 32px rgba(74, 144, 226, 0.12);
  --shadow-hover: 0 16px 48px rgba(74, 144, 226, 0.2);
  --shadow-glow: 0 0 30px rgba(74, 144, 226, 0.4);
  
  /* 圆角系统 */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 9999px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========== 通用工具类 ========== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hidden { display: none; }

/* 按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(74, 144, 226, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 139, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 107, 139, 0.5);
}

.btn-success {
  background: linear-gradient(135deg, var(--mint) 0%, #4ADE80 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(6, 214, 160, 0.4);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-pink {
  background: linear-gradient(135deg, var(--secondary) 0%, #FF8FA3 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 139, 0.4);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 107, 139, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(255, 107, 139, 0.6); }
}

/* 卡片系统 */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* 页面容器 */
.page {
  min-height: 100vh;
  position: relative;
}

/* ========== 页面0: 产品展示页面 ========== */
.product-showcase-page {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-warm) 50%, var(--mint-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* 装饰性背景元素 */
.product-showcase-page::before {
  content: '✨';
  position: absolute;
  top: 10%;
  left: 5%;
  font-size: 4rem;
  opacity: 0.2;
  animation: float-bg 15s ease-in-out infinite;
}

.product-showcase-page::after {
  content: '🎨';
  position: absolute;
  bottom: 15%;
  right: 8%;
  font-size: 5rem;
  opacity: 0.15;
  animation: float-bg 18s ease-in-out infinite reverse;
}

.showcase-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 2rem;
  z-index: 1;
}

/* 产品标题区域 */
.product-title-wrapper {
  text-align: center;
  animation: slide-up 0.8s ease-out;
}

.product-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 4.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
  letter-spacing: 0.1em;
}

.product-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* 立即进入按钮 */
.enter-button-wrapper {
  animation: slide-up 0.8s ease-out 0.2s both;
}

.btn-enter {
  padding: 1.25rem 3.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 30px rgba(74, 144, 226, 0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-enter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-enter:hover::before {
  opacity: 1;
}

.btn-enter:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 40px rgba(74, 144, 226, 0.5);
}

.btn-enter:active {
  transform: translateY(-2px) scale(1);
}

.enter-icon {
  font-size: 1.75rem;
}

.enter-text {
  letter-spacing: 0.1em;
}

/* 展示图片区域 */
.showcase-images {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 80vw;
  max-width: 1200px;
  animation: slide-up 0.8s ease-out 0.4s both;
}

.showcase-image-item {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  position: relative;
  animation: image-appear 0.8s ease-out both;
}

/* 四张图片依次出现的动画延迟 */
.showcase-image-item:nth-child(1) { animation-delay: 0.1s; }
.showcase-image-item:nth-child(2) { animation-delay: 0.25s; }
.showcase-image-item:nth-child(3) { animation-delay: 0.4s; }
.showcase-image-item:nth-child(4) { animation-delay: 0.55s; }

@keyframes image-appear {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.showcase-image-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(74, 144, 226, 0.3);
}

.showcase-image-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
  pointer-events: none;
}

.showcase-image-item:hover::before {
  opacity: 1;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-image-item:hover .showcase-img {
  transform: scale(1.05);
}

/* 图片装饰边框效果 */
.showcase-image-item::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--purple), var(--secondary));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}

.showcase-image-item:hover::after {
  opacity: 0.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .product-title {
    font-size: 2.5rem;
  }

  .product-subtitle {
    font-size: 1rem;
  }

  .btn-enter {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .showcase-images {
    width: 90vw;
    max-width: 100%;
    gap: 1.2rem;
  }

  .showcase-image-item {
    border-radius: var(--radius-lg);
  }

  .showcase-image-item::after {
    inset: -2px;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 页面1: 登录页面 ========== */
.login-page {
  background: linear-gradient(180deg, #E8F4FF 0%, #FFF9F0 50%, #F0FFF4 100%);
  position: relative;
  overflow: hidden;
}

.login-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-element {
  position: absolute;
  font-size: 3rem;
  opacity: 0.15;
  animation: float-bg 20s ease-in-out infinite;
}

.bg-element:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.bg-element:nth-child(2) { top: 20%; right: 10%; animation-delay: 3s; }
.bg-element:nth-child(3) { top: 60%; left: 15%; animation-delay: 6s; }
.bg-element:nth-child(4) { top: 70%; right: 20%; animation-delay: 9s; }
.bg-element:nth-child(5) { top: 40%; left: 8%; animation-delay: 12s; }
.bg-element:nth-child(6) { bottom: 20%; right: 5%; animation-delay: 15s; }

@keyframes float-bg {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(10deg); }
  50% { transform: translateY(-15px) rotate(-5deg); }
  75% { transform: translateY(-25px) rotate(5deg); }
}

.login-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.login-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: slide-up 0.8s ease-out;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.logo-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 30px rgba(74, 144, 226, 0.4);
  animation: logo-float 3s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.logo-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(74, 144, 226, 0.2);
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.login-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: slide-up 0.8s ease-out 0.2s both;
}

.login-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--bg);
  padding: 0.375rem;
  border-radius: var(--radius-full);
}

.login-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.login-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.3s;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
  transform: scale(1.01);
}

.form-input::placeholder {
  color: var(--text-light);
}

.code-input-group {
  display: flex;
  gap: 0.75rem;
}

.code-input-group .form-input {
  flex: 1;
}

.send-code-btn {
  padding: 0 1.25rem;
  background: var(--primary-soft);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.send-code-btn:hover {
  background: var(--primary);
  color: white;
}

.social-login {
  margin-top: 1.5rem;
}

.social-login-text {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.social-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn:hover {
  border-color: var(--primary);
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow);
}

.login-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.login-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  position: relative;
  transition: color 0.3s;
}

.login-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.login-footer a:hover {
  color: var(--primary);
}

.login-footer a:hover::after {
  width: 100%;
}

/* 作品展示轮播 */
.works-showcase {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  animation: slide-up 0.8s ease-out 0.4s both;
}

.showcase-title {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.showcase-carousel {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
  perspective: 1000px;
}

.showcase-card {
  flex: 0 0 200px;
  height: 260px;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotateY(5deg) rotateX(2deg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.showcase-card:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-15px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.showcase-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--purple-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.showcase-card-info {
  padding: 1rem;
  text-align: center;
}

.showcase-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.showcase-card-author {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========== 页面2: 新手引导 ========== */
.onboarding-page {
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.onboarding-progress {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
  z-index: 100;
}

.progress-star {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.5s;
}

.progress-star.active {
  background: linear-gradient(135deg, var(--accent) 0%, #FFA500 100%);
  animation: star-pop 0.5s;
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.6);
}

@keyframes star-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.progress-bar {
  width: 200px;
  height: 8px;
  background: var(--bg);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s ease-out;
}

.onboarding-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 2rem;
}

.onboarding-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow);
  position: relative;
  animation: card-enter 0.6s ease-out;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.onboarding-step {
  display: none;
}

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

.step-icon {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.step-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text);
}

.step-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* 虚拟向导绘绘 */
.huihui-guide {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  animation: bounce-subtle 2s ease-in-out infinite;
}

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

.huihui-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FFE4C4 0%, #FFD4A8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border: 4px solid white;
  cursor: pointer;
  transition: all 0.3s;
}

.huihui-avatar:hover {
  transform: scale(1.1);
}

.huihui-bubble {
  position: absolute;
  bottom: 90px;
  right: 0;
  background: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  max-width: 280px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: bubble-pop 0.3s ease-out;
}

@keyframes bubble-pop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.huihui-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 30px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}

/* 步骤1: 欢迎与命名 */
.name-input-wrapper {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.name-input-wrapper .form-input {
  flex: 1;
}

.random-name-btn {
  padding: 0 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, #FFA500 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.random-name-btn:hover {
  transform: rotate(360deg);
}

/* 步骤2: 功能认知 */
.feature-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-item {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.feature-item:hover {
  border-color: var(--primary-light);
  transform: scale(1.05);
}

.feature-item.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.feature-item-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.feature-item-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.feature-item-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* 步骤3: 主题选择 */
.theme-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.theme-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.theme-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.theme-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: scale(1.05);
}

.theme-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.theme-card-name {
  font-weight: 600;
  font-size: 0.9rem;
}

/* 步骤4: 角色设置 */
.role-customizer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.role-preview {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--purple-light) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.role-preview-character {
  font-size: 6rem;
  transition: all 0.3s;
}

.role-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.role-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
}

.role-option:hover {
  background: var(--primary-soft);
}

.role-option-icon {
  font-size: 1.5rem;
}

.role-option-name {
  font-weight: 500;
}

/* 步骤5: 作品生成 */
.generating-animation {
  text-align: center;
  padding: 3rem;
}

.magic-wand {
  font-size: 5rem;
  animation: wave-wand 1s ease-in-out infinite;
}

@keyframes wave-wand {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}

.generate-progress {
  margin-top: 2rem;
}

.generate-progress-bar {
  width: 100%;
  height: 12px;
  background: var(--bg);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.generate-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--mint));
  background-size: 300% 100%;
  animation: gradient-slide 2s linear infinite;
  border-radius: var(--radius-full);
  transition: width 0.3s;
}

@keyframes gradient-slide {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.generate-text {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 步骤6: 保存完成 */
.save-complete {
  text-align: center;
  padding: 2rem;
}

.success-badge {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--mint) 0%, #4ADE80 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem;
  animation: badge-spin 0.6s ease-out;
}

@keyframes badge-spin {
  from { transform: scale(0) rotate(-180deg); }
  to { transform: scale(1) rotate(0deg); }
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(400px) rotate(720deg);
    opacity: 0;
  }
}

/* 引导按钮 */
.onboarding-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.onboarding-actions .btn {
  min-width: 140px;
}

/* ========== 页面3: 学生端工作台 ========== */
.workspace-page {
  min-height: 100vh;
  background: var(--bg);
}

/* 顶部栏 */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 100;
  transition: all 0.3s;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.top-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  animation: logo-float 3s ease-in-out infinite;
}

.top-logo-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-bar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-link-item {
  padding: 0.625rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.nav-link-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.discover-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--bg);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
}

.discover-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.discover-btn-icon {
  font-size: 1.25rem;
  transition: transform 0.3s;
}

.discover-btn:hover .discover-btn-icon {
  transform: rotate(15deg);
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: var(--primary-soft);
  transform: scale(1.1);
}

/* 新手教程按钮 - 美观设计 */
.tutorial-btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 2px 8px rgba(255, 209, 102, 0.3);
  position: relative;
  overflow: hidden;
}

.tutorial-btn::before {
  content: '❓';
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.4);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--secondary-light) 100%);
}

.tutorial-btn:active {
  transform: translateY(0);
}

.tutorial-btn .btn-text {
  display: inline;
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

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

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid white;
}

.user-avatar:hover {
  transform: scale(1.1) rotate(10deg);
}

/* 主体区域 */
.workspace-main {
  display: flex;
  padding-top: 70px;
  min-height: calc(100vh - 50px);
}

/* 左侧功能栏 */
.sidebar {
  width: 200px;
  background: white;
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  position: fixed;
  top: 70px;
  bottom: 50px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: width 0.3s;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar-toggle {
  position: absolute;
  top: 1rem;
  right: -15px;
  width: 30px;
  height: 30px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.sidebar-toggle:hover {
  background: var(--primary-soft);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  text-decoration: none;
  color: var(--text);
}

.nav-item:hover {
  background: var(--primary-soft);
  transform: scale(1.02);
}

.nav-item.active {
  background: var(--primary-soft);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: 0 4px 4px 0;
}

.nav-item-icon {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.nav-item:hover .nav-item-icon {
  transform: rotate(15deg);
}

.nav-item-text {
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.sidebar.collapsed .nav-item-text {
  opacity: 0;
  width: 0;
}

/* 右侧内容区 */
.content-area {
  flex: 1;
  margin-left: 200px;
  padding: 2rem;
  transition: margin-left 0.3s;
}

.sidebar.collapsed ~ .content-area {
  margin-left: 70px;
}

/* 工作台首页 */
.workspace-home {
  animation: fade-in 0.5s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-section {
  margin-bottom: 2rem;
}

.welcome-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.welcome-subtitle {
  color: var(--text-secondary);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.quick-action-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.quick-action-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.quick-action-card:nth-child(1):hover { border-color: var(--primary); }
.quick-action-card:nth-child(2):hover { border-color: var(--secondary); }
.quick-action-card:nth-child(3):hover { border-color: var(--mint); }

.quick-action-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.quick-action-card:nth-child(2) .quick-action-icon { animation-delay: 0.5s; }
.quick-action-card:nth-child(3) .quick-action-icon { animation-delay: 1s; }

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

.quick-action-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.quick-action-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 最近作品 */
.recent-works {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.work-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.work-card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.work-card:nth-child(1) .work-card-img { background: linear-gradient(135deg, var(--primary-soft), var(--purple-light)); }
.work-card:nth-child(2) .work-card-img { background: linear-gradient(135deg, var(--secondary-light), var(--accent-light)); }
.work-card:nth-child(3) .work-card-img { background: linear-gradient(135deg, var(--mint-light), var(--primary-soft)); }
.work-card:nth-child(4) .work-card-img { background: linear-gradient(135deg, var(--accent-light), var(--secondary-light)); }

.work-card-info {
  padding: 1rem;
}

.work-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.work-card-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========== 故事创作器 ========== */
.story-creator {
  animation: fade-in 0.5s ease-out;
}

.creator-header {
  margin-bottom: 2rem;
}

.creator-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-indicator {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}

.step-dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 5px;
}

.step-dot.completed {
  background: var(--mint);
}

.story-creator-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.creator-step {
  display: none;
}

.creator-step.active {
  display: block;
  animation: fade-in 0.4s ease-out;
}

.step-header {
  margin-bottom: 1.5rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.option-card {
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.option-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-5px);
}

.option-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.option-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.option-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.option-desc {
  font-size: 0.8rem;
  color: var(--text-light);
}

.custom-input {
  margin-top: 1.5rem;
}

.custom-input .form-input {
  border-style: dashed;
}

.creator-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.creator-footer-left,
.creator-footer-right {
  display: flex;
  gap: 1rem;
}

/* ========== 绘本生成器 ========== */
.picture-book-creator {
  animation: fade-in 0.5s ease-out;
}

.canvas-layout {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: 1.5rem;
  min-height: calc(100vh - 200px);
}

.canvas-tools {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.canvas-tool-btn {
  width: 56px;
  height: 56px;
  border: none;
  background: var(--bg);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-tool-btn:hover {
  background: var(--primary-soft);
  transform: scale(1.1);
}

.canvas-tool-btn.active {
  background: var(--primary);
  color: white;
}

.canvas-main {
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.canvas-toolbar {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.canvas-pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.8rem;
}

.page-btn:hover {
  border-color: var(--primary);
}

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

.canvas-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 29px,
    #E5E9F0 29px,
    #E5E9F0 30px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 29px,
    #E5E9F0 29px,
    #E5E9F0 30px
  );
  background-size: 30px 30px;
  position: relative;
}

.book-page {
  width: 400px;
  height: 500px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 2rem;
  position: relative;
  transition: transform 0.3s;
}

.book-page:hover {
  transform: scale(1.02);
}

.page-content {
  text-align: center;
}

.page-illustration {
  font-size: 6rem;
  margin-bottom: 1.5rem;
}

.page-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.canvas-settings {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

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

.settings-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.style-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.style-option {
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.style-option:hover {
  border-color: var(--primary-light);
}

.style-option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.style-option-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.style-option-label {
  font-size: 0.8rem;
  font-weight: 500;
}

.canvas-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ========== 角色工坊 ========== */
.character-studio {
  animation: fade-in 0.5s ease-out;
}

.character-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.character-preview-panel {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--purple-light) 50%, var(--accent-light) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
}

.character-display {
  font-size: 12rem;
  transition: all 0.5s;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.character-actions-float {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
}

.character-config-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.config-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg);
  padding: 0.375rem;
  border-radius: var(--radius-full);
}

.config-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.config-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.config-content {
  display: none;
}

.config-content.active {
  display: block;
  animation: fade-in 0.3s;
}

.config-group {
  margin-bottom: 1.5rem;
}

.config-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.config-option {
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.config-option:hover {
  border-color: var(--primary-light);
}

.config-option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.config-option.custom {
  border-style: dashed;
  color: var(--text-secondary);
  background: var(--bg);
}

.config-option.custom:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.color-swatch.custom {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.color-swatch.custom:hover {
  border-color: var(--primary);
  transform: scale(1.1);
}

.color-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  border: 3px solid transparent;
}

.color-swatch:hover {
  transform: scale(1.2);
}

.color-swatch.selected {
  border-color: var(--text);
  box-shadow: 0 0 0 3px white, 0 0 0 5px var(--text);
}

/* ========== 发现精彩 ========== */
.discover-page {
  animation: fade-in 0.5s ease-out;
}

.discover-header {
  text-align: center;
  margin-bottom: 3rem;
}

.discover-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.discover-subtitle {
  color: var(--text-secondary);
}

.discover-section {
  margin-bottom: 3rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
}

.filter-tab {
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-secondary);
}

.filter-tab:hover {
  background: var(--primary-soft);
}

.filter-tab.active {
  background: var(--primary);
  color: white;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: var(--shadow-hover);
}

.event-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.event-card:nth-child(1) .event-cover { background: linear-gradient(135deg, var(--primary-soft), var(--primary)); }
.event-card:nth-child(2) .event-cover { background: linear-gradient(135deg, var(--secondary-light), var(--secondary)); }
.event-card:nth-child(3) .event-cover { background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.event-card:nth-child(4) .event-cover { background: linear-gradient(135deg, var(--mint-light), var(--mint)); }
.event-card:nth-child(5) .event-cover { background: linear-gradient(135deg, var(--purple-light), var(--purple)); }
.event-card:nth-child(6) .event-cover { background: linear-gradient(135deg, #FFE4E1, #FFB3C1); }

.event-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
}

.event-info {
  padding: 1.25rem;
}

.event-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
}

.event-reward {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent);
}

/* 倒计时 */
.countdown-section {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--purple-light) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.countdown-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.countdown-display {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.countdown-item {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  min-width: 80px;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.countdown-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ========== 个人中心 ========== */
.profile-page {
  animation: fade-in 0.5s ease-out;
}

.profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border: 4px solid rgba(255,255,255,0.3);
}

.profile-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.profile-info p {
  opacity: 0.9;
  font-size: 0.95rem;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.profile-stat {
  text-align: center;
}

.profile-stat-number {
  font-size: 2rem;
  font-weight: 700;
}

.profile-stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.profile-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: white;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
}

.profile-nav-item {
  flex: 1;
  padding: 1rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-secondary);
}

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

.profile-nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.profile-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.profile-section {
  display: none;
}

.profile-section.active {
  display: block;
  animation: fade-in 0.3s;
}

/* 成就徽章 */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.achievement-badge {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.achievement-badge.unlocked {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.achievement-badge:hover {
  transform: scale(1.05);
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.achievement-badge.unlocked .achievement-icon {
  animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 209, 102, 0.5)); }
  50% { filter: drop-shadow(0 0 15px rgba(255, 209, 102, 0.8)); }
}

.achievement-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.achievement-badge.locked {
  opacity: 0.5;
  filter: grayscale(1);
}

/* 成长数据 */
.growth-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.growth-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.growth-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.growth-card-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.growth-card-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 雷达图容器 */
.radar-chart {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.radar-placeholder {
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.radar-placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

/* ========== 模板中心 ========== */
.templates-page {
  animation: fade-in 0.5s ease-out;
}

.templates-header {
  margin-bottom: 2rem;
}

.templates-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.templates-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}

.templates-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.template-category {
  margin-bottom: 1rem;
}

.category-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

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

.category-option {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text);
}

.category-option:hover {
  background: var(--primary-soft);
}

.category-option.active {
  background: var(--primary);
  color: white;
}

.templates-main {
  flex: 1;
}

.templates-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: var(--primary);
}

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

.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.template-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: var(--shadow-hover);
}

.template-cover {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.template-card:nth-child(1) .template-cover { background: linear-gradient(135deg, var(--primary-soft), var(--primary)); }
.template-card:nth-child(2) .template-cover { background: linear-gradient(135deg, var(--secondary-light), var(--secondary)); }
.template-card:nth-child(3) .template-cover { background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.template-card:nth-child(4) .template-cover { background: linear-gradient(135deg, var(--mint-light), var(--mint)); }
.template-card:nth-child(5) .template-cover { background: linear-gradient(135deg, var(--purple-light), var(--purple)); }
.template-card:nth-child(6) .template-cover { background: linear-gradient(135deg, #FFE4E1, #FFB3C1); }
.template-card:nth-child(7) .template-cover { background: linear-gradient(135deg, #E0F7FA, #80DEEA); }
.template-card:nth-child(8) .template-cover { background: linear-gradient(135deg, #F3E5F5, #CE93D8); }

.template-use-btn {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  padding: 0.5rem 1.25rem;
  background: white;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.template-card:hover .template-use-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.template-info {
  padding: 1rem;
}

.template-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.template-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========== 底部栏 ========== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  z-index: 100;
}

.bottom-bar a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.bottom-bar a:hover {
  color: var(--primary);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .templates-grid { grid-template-columns: repeat(3, 1fr); }
  .achievements-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .canvas-layout { grid-template-columns: 1fr; }
  .canvas-tools { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .character-layout { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .growth-cards { grid-template-columns: repeat(2, 1fr); }
  .templates-layout { grid-template-columns: 1fr; }
  .templates-sidebar { display: none; }
}

@media (max-width: 768px) {
  .top-bar-center { display: none; }
  .sidebar { width: 70px; }
  .sidebar .nav-item-text { display: none; }
  .content-area { margin-left: 70px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .templates-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-stats { display: none; }
  .options-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 热门赛事页面 ========== */
.competition-page,
.activity-page,
.growth-report-page {
  padding: 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.competition-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.competition-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.competition-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.competition-cover {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.competition-info {
  flex: 1;
}

.competition-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.competition-org {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.competition-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.competition-deadline {
  font-size: 0.85rem;
  color: var(--text-light);
}

.competition-btn {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.competition-btn:hover {
  background: var(--purple);
  transform: scale(1.05);
}

/* ========== 主题活动页面 ========== */
.activity-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.activity-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.activity-card.featured {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--purple-light) 100%);
  border-color: var(--primary);
}

.activity-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--secondary);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.activity-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.activity-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.activity-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.activity-countdown {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.countdown-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.activity-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.activity-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.activity-btn.secondary {
  background: var(--bg);
  color: var(--primary);
  border: 2px solid var(--border);
}

.activity-btn.secondary:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

/* ========== 作品与成长页面 ========== */
.growth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: white;
  padding: 0.5rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.growth-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-secondary);
}

.growth-tab.active {
  background: var(--primary);
  color: white;
}

.growth-tab:hover:not(.active) {
  background: var(--primary-soft);
}

.growth-content {
  display: none;
}

.growth-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.works-stats {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.works-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.works-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.works-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.mini-works-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mini-work-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  transition: all 0.3s;
  cursor: pointer;
}

.mini-work-card:hover {
  background: var(--primary-soft);
  transform: translateX(5px);
}

.mini-work-icon {
  font-size: 1.5rem;
}

.mini-work-title {
  font-size: 0.9rem;
  font-weight: 500;
}

/* 成长报告样式 */
.growth-intro {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
}

.growth-days {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.days-icon {
  font-size: 2.5rem;
}

.days-num {
  font-size: 2rem;
  font-weight: 700;
}

.section-sub-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.achievements-wall {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.achievements-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.achievement-badge {
  text-align: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.achievement-badge.earned {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.achievement-badge:hover {
  transform: scale(1.05);
}

.badge-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.badge-name {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
}

.badge-desc {
  font-size: 0.75rem;
  color: var(--text-light);
}

.creation-preference {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.preference-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.preference-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.preference-label {
  width: 80px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.preference-fill {
  height: 20px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  border-radius: var(--radius-full);
  transition: width 0.5s ease-out;
}

.preference-count {
  font-size: 0.85rem;
  color: var(--text-light);
  width: 40px;
}

.highlights {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.highlight-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.highlight-tag {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--mint-light), var(--mint));
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
}

.recommendation {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.recommendation-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.recommendation-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.recommendation-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

/* ========== 个人中心页面 ========== */
.user-avatar-btn {
  cursor: pointer;
  transition: transform 0.3s;
}

.user-avatar-btn:hover {
  transform: scale(1.1);
}

.user-avatar-small {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid white;
}

.profile-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  box-shadow: var(--shadow);
  z-index: 100;
}

.profile-top-bar h1 {
  margin-left: auto;
  margin-right: auto;
  font-size: 1.3rem;
  color: var(--text);
}

.profile-top-bar .back-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.profile-top-bar .back-btn:hover {
  background: var(--primary-soft);
}

.profile-container {
  display: flex;
  padding-top: 60px;
  min-height: 100vh;
  background: var(--bg);
}

.profile-nav {
  width: 250px;
  background: white;
  padding: 2rem 1rem;
  box-shadow: var(--shadow);
  min-height: calc(100vh - 60px);
}

.profile-nav-item {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.3s;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-nav-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.profile-nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.profile-content-area {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.profile-section {
  display: none;
}

.profile-section.active {
  display: block;
  animation: fade-in 0.3s;
}

.profile-form-card,
.feedback-card,
.parent-mode-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
}

.profile-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.profile-form {
  max-width: 500px;
}

.form-group-row {
  display: flex;
  gap: 1rem;
}

.form-group-row .form-group {
  flex: 1;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.save-btn {
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

.save-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
}

/* 家长模式 */
.parent-intro {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.parent-verify {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.verify-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.verify-box h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.password-inputs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pwd-input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  transition: all 0.3s;
}

.pwd-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.verify-hint {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.verify-btn {
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.verify-btn:hover {
  background: var(--purple);
}

.parent-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius-md);
}

.control-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-icon {
  font-size: 1.5rem;
}

.control-text {
  display: flex;
  flex-direction: column;
}

.control-name {
  font-weight: 600;
  font-size: 1rem;
}

.control-desc {
  font-size: 0.85rem;
  color: var(--text-light);
}

.save-settings-btn {
  margin-top: 1.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}

.save-settings-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
}

/* 意见反馈 */
.feedback-intro {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.feedback-form {
  max-width: 500px;
}

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

.star-rating {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.star {
  font-size: 2rem;
  color: var(--border);
  cursor: pointer;
  transition: all 0.3s;
}

.star:hover,
.star.filled {
  color: var(--accent);
  transform: scale(1.2);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.upload-icon {
  font-size: 2rem;
}

.uploaded-files {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.uploaded-file {
  width: 60px;
  height: 60px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.submit-feedback-btn {
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
  width: 100%;
}

.submit-feedback-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.4);
}
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 600px;
}

.profile-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.profile-name-area h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.member-badge {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.profile-card-body {
  padding: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.info-label {
  color: var(--text-secondary);
}

.info-value {
  color: var(--text);
  font-weight: 500;
}

/* 订阅页面 */
.subscription-page {
  max-width: 900px;
  margin: 0 auto;
}

.subscription-page .section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.pricing-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  position: relative;
  border: 2px solid var(--border);
}

.pricing-card.vip {
  border-color: var(--primary);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.price-period {
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

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

.feature-icon {
  font-size: 1.2rem;
}

.feature-name {
  flex: 1;
  color: var(--text);
}

.feature-limit {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.feature-item.included .feature-check {
  color: var(--mint);
  font-weight: 700;
  font-size: 1.2rem;
}

.payment-methods {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.payment-title {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.payment-options {
  display: flex;
  gap: 1rem;
}

.payment-btn {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid var(--border);
  background: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.payment-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.subscribe-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

/* 支付模态框 */
.payment-modal-content {
  max-width: 400px;
  text-align: center;
}

.payment-qr-container {
  padding: 1rem;
}

.payment-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-tab {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid var(--border);
  background: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.payment-tab.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.payment-qr {
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
}

.payment-amount {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.payment-amount .amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

@media (max-width: 768px) {
  .pricing-table {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.vip {
    transform: none;
  }
  
  .profile-container {
    flex-direction: column;
  }
  
  .profile-nav {
    width: 100%;
    min-height: auto;
    display: flex;
    overflow-x: auto;
    padding: 1rem;
  }
  
  .profile-nav-item {
    white-space: nowrap;
    margin-bottom: 0;
    margin-right: 0.5rem;
  }
}

/* 加载动画 */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Toast 提示 */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--mint);
}

.toast.error {
  background: var(--secondary);
}

/* Switch 开关 */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.4s;
  border-radius: 28px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background: linear-gradient(135deg, var(--mint) 0%, #4ADE80 100%);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* 星星评分 */
.star {
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 0.25rem;
}

.star:hover {
  transform: scale(1.2);
}

.star:last-child {
  margin-right: 0;
}

/* 上传区域 */
.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* 星级评分 */
.star {
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 0.25rem;
  opacity: 0.3;
}

.star.filled {
  opacity: 1;
  animation: starPop 0.3s;
}

.star:hover {
  transform: scale(1.3);
}

@keyframes starPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Switch 开关 */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.4s;
  border-radius: 28px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background: linear-gradient(135deg, var(--mint) 0%, #4ADE80 100%);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* 价格卡片悬停效果 */
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* 作品网格 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ========== 模态框样式 ========== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: auto;
  box-shadow: var(--shadow-hover);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: var(--secondary);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* 故事列表 */
.story-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.story-item:hover {
  background: var(--primary-soft);
  border-color: var(--primary-light);
  transform: translateX(5px);
}

.story-item.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* 角色标签 */
.character-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.character-tag:hover {
  border-color: var(--primary-light);
}

.character-tag.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* 导入卡片 */
.import-card {
  border: 2px solid transparent;
}
.import-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

/* 画风卡片 */
.style-card {
  transition: all 0.3s ease;
}
.style-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 画风选择界面 */
.style-selection {
  padding: 2rem;
}

/* 画风网格布局 */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 高级画风卡片 */
.style-card-advanced {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 3px solid transparent;
}

.style-card-advanced:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.style-card-advanced.selected {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.25);
  transform: translateY(-4px) scale(1.01);
}

/* 画风预览区域 */
.style-preview {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.style-icon {
  font-size: 4rem;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 0.3s;
}

.style-card-advanced:hover .style-icon {
  transform: scale(1.2) rotate(5deg);
}

/* 样本角色装饰 */
.style-sample-characters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.style-sample-characters span {
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.style-sample-characters span:nth-child(2) {
  animation-delay: 0.5s;
}

.style-sample-characters span:nth-child(3) {
  animation-delay: 1s;
}

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

/* 画风信息区域 */
.style-info {
  padding: 1.2rem 1.5rem 1.5rem;
  background: linear-gradient(to bottom, white, var(--bg));
}

.style-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.style-name::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}

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

/* 确保hidden类优先级高于modal类 */
.modal.hidden {
  display: none !important;
}

/* ========== 作品展示页面样式 ========== */

/* 作品概览统计卡片 */
.works-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 作品分类区块 */
.works-categories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.category-section {
  margin-bottom: 3rem;
}

.category-section:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-title::before {
  content: '';
  width: 6px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: 3px;
}

.category-count {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  min-width: 40px;
  text-align: center;
}

/* 作品网格 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* 作品卡片 */
.work-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.work-cover {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.work-cover-image {
  background: none;
}

.work-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.work-card:hover .work-cover-image img {
  transform: scale(1.05);
}

.cover-fallback {
  position: absolute;
  inset: 0;
}

.work-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.1));
  pointer-events: none;
}

.work-cover span {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 0.3s;
}

.work-card:hover .work-cover span {
  transform: scale(1.2);
}

.work-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.work-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-info p {
  margin: 0;
  line-height: 1.5;
}

/* 空状态提示 */
.works-grid p {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
  font-size: 1rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .works-overview {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

