/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
}

/* 导航栏样式 */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.logo img {
  height: 50px;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #c41230;
}

.nav-links a.active {
  color: #c41230;
}

/* 轮播图样式 */
.banner-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
}

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

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  width: 80%;
  max-width: 800px;
}

.slide-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.slide-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.banner-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border: 2px solid white;
  border-radius: 30px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.banner-btn:hover {
  background: white;
  color: #333;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.slider-controls {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.prev-slide,
.next-slide {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-slide:hover,
.next-slide:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.slide-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: white;
}

/* 故事卡片样式 */
.latest-stories {
  padding: 4rem 2rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.story-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.story-card:hover {
  transform: translateY(-5px);
}

.story-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.story-content {
  padding: 1.5rem;
  display: none;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: #c41230;
  text-decoration: none;
}

/* 特色栏目样式 */
.featured {
  background: #f5f5f5;
  padding: 4rem 2rem;
}

.feature-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
footer {
  background: #333;
  color: white;
  padding: 2rem;
}

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

.footer-links a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
}

/* 页面标题样式 */
.page-header {
  height: 60vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/banner/banner1.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 70px;
}

.header-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.header-content p {
  font-size: 1.5rem;
  opacity: 0.9;
}

/* 文化遗产分类样式 */
.heritage-categories {
  padding: 4rem 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
}

.learn-more {
  display: inline-block;
  margin-top: 1rem;
  color: white;
  text-decoration: none;
  border-bottom: 2px solid white;
  padding-bottom: 2px;
  transition: all 0.3s;
}

.learn-more:hover {
  transform: translateX(10px);
}

/* 文化遗产展示样式 */
.heritage-showcase {
  padding: 4rem 2rem;
  background: #f5f5f5;
}

.heritage-showcase h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.heritage-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.heritage-item:hover {
  transform: translateY(-5px);
}

.heritage-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.heritage-info {
  padding: 1.5rem;
}

.heritage-info h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.heritage-info p {
  color: #666;
  line-height: 1.6;
}

/* 科技创新页面样式 */
.innovation-header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/banner/banner2.jpg");
}

/* 创新领域展示 */
.innovation-showcase {
  padding: 4rem 2rem;
  background: #f9f9f9;
}

.innovation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.innovation-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.innovation-card:hover {
  transform: translateY(-10px);
}

.innovation-card i {
  font-size: 3rem;
  color: #c41230;
  margin-bottom: 1rem;
}

/* 时间线样式 */
.timeline-section {
  padding: 4rem 2rem;
  background: white;
}

.timeline-section h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: #c41230;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  background: #c41230;
  border-radius: 50%;
  top: 15px;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::after {
  right: -17px;
}

.right::after {
  left: -17px;
}

.timeline-content {
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  display: inline-block;
  padding: 5px 15px;
  background: #c41230;
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.timeline-content img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-top: 15px;
}

/* 最新科技成果 */
.latest-achievements {
  padding: 4rem 2rem;
  background: #f9f9f9;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.achievement-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.achievement-card:hover {
  transform: translateY(-5px);
}

.achievement-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.achievement-content {
  padding: 1.5rem;
}

/* 民间故事页面样式 */
.stories-header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/banner/banner3.jpg");
}

/* 故事书展示样式 */
.storybook-showcase {
  padding: 4rem 2rem;
  background: #f5f5f5;
}

.book-shelf {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.book {
  position: relative;
  width: 300px;
  height: 400px;
  perspective: 1500px;
  cursor: pointer;
}

.book-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
  background: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 999;
}

.book:hover .book-cover {
  transform: rotateY(-140deg);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.book-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
}

.book-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  background: #f8f8f8;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.read-story {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: #c41230;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s;
}

.read-story:hover {
  background: #a30f27;
  transform: translateY(-2px);
}

/* 故事分类样式 */
.story-categories {
  padding: 4rem 2rem;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.tab {
  padding: 1rem 2rem;
  background: white;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.tab.active {
  background: #c41230;
  color: white;
}

.tab i {
  margin-right: 0.5rem;
}

.story-list {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.story-list.active {
  display: grid;
}

.story-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  margin: 0 auto;
}

.story-item:hover {
  transform: translateY(-5px);
}

/* 互动区域样式 */
.story-interaction {
  padding: 4rem 2rem;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/interaction-bg.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.interaction-content {
  max-width: 800px;
  margin: 0 auto;
}

.share-btn {
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 2px solid white;
  color: white;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.share-btn:hover {
  background: white;
  color: #333;
}

.share-btn i {
  margin-right: 0.5rem;
}
.story-image img {
  max-width: 640px;
  margin: 0 auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}
/* .story-brief{
    max-width: 800px;
    margin: 0 auto;
} */
/* 网站标题样式 */
.site-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
  padding: 0;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 网站标题样式 */
.site-title {
  font-size: 24px;
  font-weight: bold;
  color: #c41230;
  margin: 0 0 0 0.2rem;
  padding: 0;
}

/* 调整导航栏布局 */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.logo {
  margin-right: 0.5rem;
}

.nav-links {
  margin-left: auto;
}
