/* 这是一个儿童风格的CSS样式表，可以替换原来的样式 */
/* 将这个文件命名为 kidstyle.css 并在项目中引入 */

:root {
  /* 全新活泼的色彩方案 */
  --primary-color: #FF6B6B;  /* 活泼的珊瑚红 */
  --primary-light: #FFDFDF;
  --primary-dark: #E83A3A;
  
  --secondary-color: #4ECDC4; /* 明亮的绿松石 */
  --secondary-light: #C1F6F1;
  --secondary-dark: #28A399;
  
  --accent-color: #FFD166;  /* 明亮的黄色 */
  --accent-light: #FFEEB4;
  --accent-dark: #FFBE0B;
  
  --success-color: #06D6A0;  /* 淡绿色 */
  --danger-color: #FF5E78;   /* 桃红色 */
  
  --purple-color: #7D78D1;   /* 淡紫色 */
  --purple-light: #E0DDFF;
  
  --blue-color: #5CB9FE;     /* 天蓝色 */
  --blue-light: #D9F0FF;
  
  --orange-color: #FF9A76;   /* 橙色 */
  --orange-light: #FFDCCC;
  
  --light-color: #F9FAFB;
  --dark-color: #3D405B;     /* 深蓝紫色 */
  --gray-color: #81818A;
  --border-color: #E5E7EB;
  
  /* 圆角半径增加 */
  --border-radius-sm: 10px;
  --border-radius-md: 15px;
  --border-radius-lg: 25px;
  --border-radius-xl: 35px;
  
  /* 字体 */
  --font-family-heading: 'Comic Sans MS', 'Marker Felt', cursive;
  --font-family-body: 'Arial Rounded MT Bold', 'Nunito', 'Varela Round', sans-serif;
}

/* 全局样式 */
body {
  font-family: var(--font-family-body);
  background: linear-gradient(135deg, #F5F7FF, #FFFDE8);
  color: var(--dark-color);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-family-body);
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 0 rgba(0,0,0,0.1);
  transform: translateY(0);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

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

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
}

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

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

/* 头部导航 */
.storybook-creator {
  overflow-x: hidden; /* 防止横向溢出 */
}

.creator-hero {
  background: linear-gradient(135deg, var(--blue-color), var(--purple-color));
  color: white;
  padding: 50px 0;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 50% 10%;
  border-bottom-right-radius: 50% 10%;
}

.creator-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/img/pattern-dots.svg');
  opacity: 0.1;
}

.creator-hero::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background-image: 
    radial-gradient(circle at 20px 0, transparent 20px, white 20px),
    radial-gradient(circle at 60px 0, transparent 20px, white 20px),
    radial-gradient(circle at 100px 0, transparent 20px, white 20px),
    radial-gradient(circle at 140px 0, transparent 20px, white 20px),
    radial-gradient(circle at 180px 0, transparent 20px, white 20px);
  background-size: 200px 20px;
  background-repeat: repeat-x;
}

.creator-hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 3px 3px 0 var(--primary-dark);
  position: relative;
  display: inline-block;
}

.creator-hero-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--accent-color);
  border-radius: 10px;
}

.creator-hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 700px;
}

.creator-hero-buttons .btn {
  margin: 0 10px 10px 0;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: var(--border-radius-xl);
  box-shadow: 0 6px 0 rgba(0,0,0,0.15);
}

.creator-hero-buttons .btn-primary {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.creator-hero-buttons .btn-primary:hover {
  background-color: var(--accent-dark);
}

.creator-hero-buttons .btn-outline {
  border: 3px solid white;
  color: white;
  background: transparent;
}

.creator-hero-buttons .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.creator-hero-image {
  position: relative;
  z-index: 5;
}

.creator-hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
  transform: rotate(2deg);
  transition: transform 0.5s;
}

.creator-hero-image img:hover {
  transform: rotate(-1deg) scale(1.02);
}

/* 特色部分 */
.creator-features {
  background-color: white;
  padding: 80px 0;
  position: relative;
}

.creator-features::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
  background-image: 
    linear-gradient(45deg, transparent 33.333%, white 33.333%, white 66.667%, transparent 66.667%),
    linear-gradient(-45deg, transparent 33.333%, white 33.333%, white 66.667%, transparent 66.667%);
  background-size: 30px 60px;
}

.section-title {
  font-size: 2.8rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::before {
  content: '✨';
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
}

.section-title::after {
  content: '✨';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
}

.section-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: var(--gray-color);
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.5s;
  position: relative;
  z-index: 1;
  border: 3px solid transparent;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--blue-light));
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}

.feature-card:hover {
  transform: translateY(-15px) rotate(1deg);
  border-color: var(--primary-color);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.feature-icon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 10px;
}

.feature-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.feature-description {
  color: var(--gray-color);
  line-height: 1.7;
  font-size: 1.1rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 20px;
  font-size: 1.1rem;
}

.feature-link::after {
  content: '→';
  margin-left: 8px;
  transition: transform 0.3s;
}

.feature-link:hover::after {
  transform: translateX(8px);
}

/* 工作流程 */
.how-it-works {
  background-color: var(--light-color);
  padding: 100px 0;
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/img/pattern-confetti.svg');
  opacity: 0.05;
}

.steps {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 60px;
  bottom: 60px;
  left: 50%;
  width: 8px;
  background-color: var(--purple-light);
  transform: translateX(-50%);
  border-radius: 4px;
}

.step {
  margin-bottom: 100px;
  position: relative;
  z-index: 1;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 2rem;
  margin: 0 auto 30px;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.step-number::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.2; }
  100% { transform: scale(1); opacity: 0.3; }
}

.step:nth-child(odd) .step-content {
  margin-left: 0;
  margin-right: auto;
  text-align: right;
  padding-right: 50px;
}

.step:nth-child(even) .step-content {
  margin-left: auto;
  margin-right: 0;
  text-align: left;
  padding-left: 50px;
}

.step-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.step:nth-child(odd) .step-title::before {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.step:nth-child(even) .step-title::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.step-description {
  color: var(--gray-color);
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 400px;
}

.step-image img {
  max-width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step:nth-child(odd) .step-image img {
  transform: rotate(-3deg);
}

.step:nth-child(even) .step-image img {
  transform: rotate(3deg);
}

.cta-container {
  text-align: center;
  margin-top: 80px;
}

.cta-container .btn {
  padding: 18px 40px;
  font-size: 1.3rem;
  box-shadow: 0 8px 0 rgba(0,0,0,0.1);
  animation: bounce 2s infinite;
}

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

/* 作品库 */
.gallery-section {
  background-color: white;
  padding: 100px 0;
  position: relative;
}

.gallery-section::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 30px;
  background-image: 
    linear-gradient(45deg, white 33.333%, transparent 33.333%, transparent 66.667%, white 66.667%),
    linear-gradient(-45deg, white 33.333%, transparent 33.333%, transparent 66.667%, white 66.667%);
  background-size: 30px 60px;
  z-index: 5;
}

.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-button {
  padding: 12px 25px;
  background: none;
  border: 3px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  font-family: var(--font-family-body);
}

.filter-button.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 40px;
}

.gallery-item {
  transition: all 0.5s;
}

.gallery-item:hover {
  transform: translateY(-15px);
}

.book-cover {
  position: relative;
  height: 300px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.book-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.book-cover:hover img {
  transform: scale(1.05);
}

.book-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 70%);
  opacity: 1;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  z-index: 2;
}

.book-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

.book-badge.premium {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.book-badge.vip {
  background-color: var(--primary-color);
  color: white;
}

.book-actions {
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
}

.book-cover:hover .book-actions {
  opacity: 1;
  transform: translateY(0);
}

.book-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.book-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 1.5px;
  transition: width 0.3s;
}

.gallery-item:hover .book-title::after {
  width: 100%;
}

.book-author {
  font-size: 1rem;
  color: var(--gray-color);
  margin-bottom: 10px;
}

.book-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}

.page-button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid var(--border-color);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.page-button.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* 价格区域 */
.pricing-section {
  background: linear-gradient(135deg, var(--secondary-light), var(--purple-light));
  padding: 100px 0;
  position: relative;
}

.pricing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/img/pattern-stars.svg');
  opacity: 0.05;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pricing-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.5s;
  position: relative;
  border: 5px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-15px);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  z-index: 2;
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 30px;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 5px 10px rgba(255, 107, 107, 0.2);
}

.pricing-header {
  padding: 40px 30px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-light), var(--purple-light));
  position: relative;
}

.pricing-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background-image: 
    radial-gradient(circle at 10px 0, transparent 10px, white 10px),
    radial-gradient(circle at 30px 0, transparent 10px, white 10px),
    radial-gradient(circle at 50px 0, transparent 10px, white 10px),
    radial-gradient(circle at 70px 0, transparent 10px, white 10px),
    radial-gradient(circle at 90px 0, transparent 10px, white 10px);
  background-size: 100px 15px;
  background-repeat: repeat-x;
}

.pricing-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.pricing-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 1.5px;
}

.pricing-price {
  font-size: 1.4rem;
  position: relative;
  display: inline-block;
}

.price-value {
  font-size: 4rem;
  font-weight: bold;
  color: var(--primary-dark);
  font-family: var(--font-family-heading);
}

.price-period {
  color: var(--gray-color);
  font-size: 1.2rem;
}

.pricing-features {
  padding: 40px 30px;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 12px 0;
  padding-left: 35px;
  position: relative;
  color: var(--gray-color);
  border-bottom: 2px dashed var(--border-color);
  font-size: 1.1rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.pricing-action {
  padding: 0 30px 40px;
  text-align: center;
}

.btn-block {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 1.2rem;
  border-radius: var(--border-radius-lg);
}

.pricing-note {
  text-align: center;
  margin-top: 40px;
  color: var(--dark-color);
  font-weight: 500;
  font-size: 1.1rem;
}

/* 故事创作工具样式 */
.storybook-creator-tool {
  background: linear-gradient(135deg, var(--blue-light), var(--purple-light));
  min-height: 100vh;
  position: relative;
}

.storybook-creator-tool::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/img/pattern-clouds.svg');
  opacity: 0.05;
  z-index: 0;
}

.creator-header {
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.creator-title h1 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin: 0;
  position: relative;
  display: inline-block;
}

.creator-title h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 1.5px;
}

.creator-subtitle {
  font-size: 1rem;
  color: var(--gray-color);
  margin-top: 8px;
}

.creator-actions {
  display: flex;
  gap: 15px;
}

.creator-tabs {
  display: flex;
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.creator-tab {
  flex: 1;
  padding: 20px 15px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--gray-color);
  font-family: var(--font-family-body);
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
}

.creator-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  transition: background-color 0.3s;
}

.creator-tab.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.creator-tab.active::after {
  background-color: var(--primary-color);
}

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

.creator-content {
  padding: 30px 0 80px;
  position: relative;
  z-index: 1;
}

.tab-pane {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.tab-pane::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--primary-light), transparent);
  border-radius: 0 0 0 100%;
  opacity: 0.3;
}

.pane-title {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.pane-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* 表单样式 */
.form-group {
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.form-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 15px 20px;
  border: 3px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 1.1rem;
  font-family: var(--font-family-body);
  transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* 封面上传 */
.cover-upload {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cover-preview {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius-lg);
  border: 3px dashed var(--primary-color);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cover-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.placeholder-text {
  font-size: 1.1rem;
  text-align: center;
  max-width: 80%;
}

.cover-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.hidden-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

/* 页面设计进一步美化 */
.pages-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-card {
  border: 3px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.page-card:hover {
  transform: translateY(-10px) rotate(2deg);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.page-card.selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 5px rgba(255, 107, 107, 0.2);
}

.page-preview {
  height: 250px;
  position: relative;
  background-color: #f5f5f5;
}

.page-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-color);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 1;
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.page-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.btn-icon {
  background: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.btn-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.add-page {
  border: 3px dashed var(--primary-color);
  border-radius: var(--border-radius-md);
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  cursor: pointer;
  transition: all 0.3s;
}

.add-page:hover {
  transform: scale(1.05);
  background-color: rgba(255, 107, 107, 0.2);
}

.add-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.add-text {
  color: var(--primary-color);
  font-weight: 600;
}

/* 绘本阅读器更多美化 */
.storybook-reader {
  background: linear-gradient(135deg, var(--blue-light), var(--purple-light));
  min-height: 100vh;
}

.reading-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.reading-container::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, 
    var(--primary-color) 0%, 
    var(--accent-color) 25%, 
    var(--secondary-color) 50%, 
    var(--purple-color) 75%, 
    var(--blue-color) 100%);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.page-content {
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

.page-image {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background-color: var(--primary-light);
  position: relative;
}

.page-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: 
    radial-gradient(circle at 10px 0, transparent 10px, white 10px),
    radial-gradient(circle at 30px 0, transparent 10px, white 10px),
    radial-gradient(circle at 50px 0, transparent 10px, white 10px),
    radial-gradient(circle at 70px 0, transparent 10px, white 10px),
    radial-gradient(circle at 90px 0, transparent 10px, white 10px);
  background-size: 100px 10px;
  background-repeat: repeat-x;
}

.page-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s;
}

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

.page-text-container {
  padding: 30px;
  background-color: white;
}

.page-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--dark-color);
  font-family: var(--font-family-body);
  max-width: 800px;
  margin: 0 auto;
}

/* 角色卡片美化 */
.characters-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.character-card {
  border: 3px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  background-color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.character-card:hover {
  transform: translateY(-15px) rotate(3deg);
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.character-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 5px solid var(--accent-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.character-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-name {
  font-size: 1.5rem;
  font-family: var(--font-family-heading);
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.character-role {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.character-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
}

.add-character {
  border: 3px dashed var(--primary-color);
  border-radius: var(--border-radius-lg);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  cursor: pointer;
  transition: all 0.3s;
  min-height: 250px;
}

.add-character:hover {
  transform: scale(1.05);
  background-color: rgba(255, 107, 107, 0.2);
}

/* 响应式调整 */
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    text-align: left;
    margin-bottom: 100px;
  }
  
  .step-number {
    grid-column: span 2;
  }
  
  .step:nth-child(even) {
    direction: rtl;
  }
  
  .step:nth-child(even) .step-content,
  .step:nth-child(even) .step-image {
    direction: ltr;
  }
  
  .step:nth-child(odd) .step-content,
  .step:nth-child(even) .step-content {
    padding: 0;
    margin: 0;
    text-align: left;
  }
  
  .page-content {
    flex-direction: row;
  }
  
  .page-image {
    flex: 3;
  }
  
  .page-text-container {
    flex: 2;
    display: flex;
    align-items: center;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .pricing-card.featured {
    transform: scale(1.05);
  }
  
  .pricing-card.featured:hover {
    transform: scale(1.05) translateY(-15px);
  }
}
