/* 文化介绍页样式 */

/* 导航栏样式 */
.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;
}

/* 页面头部 */
.page-header {
  background-color: var(--tibetan-blue);
  color: white;
  text-align: center;
  padding: 100px 0 60px;
  margin-top: 80px; /* 为固定导航栏留出空间 */
  margin-bottom: 50px;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 15px;
  color: white;
}

.page-subtitle {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* 交互式地图 */
.culture-map-section {
  padding: 60px 0;
}

.map-container {
  position: relative;
  height: 600px;
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.china-map {
  width: 100%;
  height: 100%;
}

.map-tooltip {
  position: absolute;
  padding: 15px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 100;
  max-width: 300px;
}

.map-tooltip h3 {
  margin-bottom: 10px;
  color: var(--chinese-red);
}

.map-tooltip p {
  font-size: 0.9rem;
}

.map-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.map-button {
  background-color: white;
  border: 1px solid #ddd;
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.map-button:hover {
  background-color: var(--earth-yellow);
  color: white;
  border-color: var(--earth-yellow);
}

.map-button.active {
  background-color: var(--tibetan-blue);
  color: white;
  border-color: var(--tibetan-blue);
}

/* 民族时间轴 */
.timeline-section {
  padding: 80px 0;
  background-color: #f9f8f6;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--tibetan-blue);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--chinese-red);
  border-radius: 50%;
  top: 20px;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  padding: 20px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.timeline-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--tibetan-blue);
}

.timeline-text {
  font-size: 1rem;
  line-height: 1.6;
}

.timeline-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

/* 民族语言视听墙 */
.audio-wall-section {
  padding: 80px 0;
}

.audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.audio-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.audio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.audio-flag {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.audio-info {
  padding: 15px;
}

.audio-name {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--tibetan-blue);
}

.audio-population {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 15px;
}

.audio-play {
  background-color: var(--chinese-red);
  color: white;
  border: none;
  width: 100%;
  padding: 8px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.audio-play:hover {
  background-color: #a71d21;
}

/* 统计信息 */
.stats-section {
  padding: 80px 0;
  background-color: var(--tibetan-blue);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--earth-yellow);
}

.stat-label {
  font-size: 1.1rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .timeline-line {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0;
    padding-left: 70px;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-dot {
    right: auto;
    left: 20px;
  }
  
  .map-container {
    height: 450px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
} 