
/* 基础样式 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #87CEEB, #6A5ACD);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', cursive;
  color: #FFA500;
}

a {
  color: #FFD700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* 导航栏 */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav a {
  color: #333;
  font-size: 18px;
  margin: 0 15px;
}

nav a:hover {
  color: #FFA500;
}

/* 按钮样式 */
button {
  background-color: #FFA500;
  border: none;
  padding: 10px 20px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #FFD700;
  transform: scale(1.1);
}

button:hover::after {
  content: '✨';
  font-size: 1.2em;
  opacity: 0.8;
  margin-left: 10px;
}

/* 网格布局 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 80px;
}

.grid-item {
  background-color: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-10px);
}

/* 响应式图片 */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

/* 动画效果 */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* 故事板样式 */
.story-board {
  background-color: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 10px;
  margin-top: 40px;
}

.story-card {
  background-color: #fff;
  color: #333;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.story-card:hover {
  background-color: #FFFAF0;
  transform: scale(1.05);
}

/* 媒体查询 */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

