/* 首页特定样式 */

/* 导航栏样式 */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--chinese-red);
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 30px;
  position: relative;
}

.nav-menu a {
  font-size: 18px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--chinese-red);
  transition: width 0.3s;
}

.nav-menu a:hover {
  color: var(--chinese-red);
}

.nav-menu a:hover:after {
  width: 100%;
}

.nav-tools {
  display: flex;
  align-items: center;
}

.search-box {
  margin-right: 15px;
  position: relative;
}

.search-box input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  width: 180px;
  transition: width 0.3s;
}

.search-box input:focus {
  width: 200px;
  border-color: var(--tibetan-blue);
}

.lang-switch {
  position: relative;
}

.lang-switch select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  outline: none;
}

/* 汉堡菜单（移动端） */
.hamburger {
  display: none;
  cursor: pointer;
}

/* 全屏轮播图 */
.hero-slider {
  position: relative;
  height: calc(100vh - 80px); /* 导航栏高度约为80px，轮播图占据剩余高度 */
  margin-top: 80px; /* 为固定导航栏留出空间 */
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.slide-title {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-btn {
  background-color: var(--chinese-red);
  border: none;
  color: white;
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slide-btn:hover {
  background-color: #a71d21;
}

/* 文化矩阵入口 */
.culture-matrix {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--chinese-red);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.matrix-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.matrix-item {
  width: calc(33.333% - 30px);
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
}

.matrix-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.matrix-item:hover .matrix-card {
  transform: rotateY(180deg);
}

.matrix-front, .matrix-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.matrix-front {
  background-size: cover;
  background-position: center;
}

.matrix-back {
  background-color: var(--tibetan-blue);
  color: white;
  transform: rotateY(180deg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.matrix-title {
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: white;
  font-size: 1.2rem;
}

.matrix-back h3 {
  color: white;
  margin-bottom: 15px;
  text-align: center;
}

.matrix-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

.matrix-more {
  margin-top: 15px;
  text-align: center;
  color: var(--earth-yellow);
  font-weight: bold;
}

/* 数据墙 */
.data-wall {
  background-color: #f2f2f2;
  padding: 80px 0;
}

.data-container {
  display: flex;
  gap: 30px;
}

.festival-section {
  flex: 1;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 25px;
}

.festival-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--chinese-red);
  display: flex;
  align-items: center;
}

.festival-title span {
  margin-left: 10px;
  font-size: 0.9rem;
  color: #666;
}

.festival-list {
  max-height: 400px;
  overflow-y: auto;
}

.festival-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.festival-item:last-child {
  border-bottom: none;
}

.festival-date {
  width: 80px;
  font-size: 0.9rem;
  color: #666;
}

.festival-info {
  flex: 1;
}

.festival-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.festival-desc {
  font-size: 0.9rem;
  color: #666;
}

.stats-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--tibetan-blue);
}

.stat-title {
  font-size: 1.1rem;
  color: #666;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .matrix-item {
    width: calc(50% - 30px);
  }
  
  .data-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-tools {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .matrix-item {
    width: 100%;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .slide-description {
    font-size: 1rem;
  }
} 