/* 将乐县旅游景点语音导览系统 CSS 样式 - 自然大地主题 */

/* 基础样式设置 - 自然大地色调 */
:root {
  --primary-color: #2D5A27; /* 深森林绿 - 主色调 */
  --secondary-color: #F7F4F0; /* 米白色背景 */
  --accent-color: #6B8E23; /* 橄榄绿 */
  --water-color: #4682B4; /* 钢蓝色 */
  --earth-color: #8B7355; /* 大地棕色 */
  --text-color: #2F4F2F; /* 深橄榄绿文字 */
  --light-text: #556B2F; /* 暗橄榄绿文字 */
  --bg-color: #FAF8F5; /* 象牙白背景 */
  --card-bg: #FFFFFF; /* 纯白卡片 */
  --border-color: #D2B48C; /* 棕褐色边框 */
  --shadow: 0 4px 12px rgba(45, 90, 39, 0.15); /* 自然绿色阴影 */
  --gradient-bg: linear-gradient(135deg, #FAF8F5 0%, #F5F2ED 30%, #F0EDE7 70%, #EBE8E1 100%); /* 自然渐变 */
  --nature-accent: #CD853F; /* 秘鲁色点缀 */
  --sky-blue: #87CEEB; /* 天空蓝 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--gradient-bg);
  color: var(--text-color);
  line-height: 1.6;
  padding-bottom: 80px;
  min-height: 100vh;
  position: relative;
}

/* 添加自然纹理背景 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(139, 115, 85, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(107, 142, 35, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(135, 206, 235, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
}

/* 页头样式 - 自然山水风格 */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 30%, var(--water-color) 70%, var(--sky-blue) 100%);
  color: white;
  padding: 3rem 1rem 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 30px rgba(45, 90, 39, 0.25);
  overflow: hidden;
}

/* 山峦轮廓效果 */
.header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.15)"/><path d="M0,80 C300,40 600,120 900,80 C1050,60 1150,100 1200,80 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

/* 云朵装饰 */
.header::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 10%;
  width: 80px;
  height: 25px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  box-shadow: 
    -30px 10px 0 -5px rgba(255, 255, 255, 0.15),
    30px 15px 0 -8px rgba(255, 255, 255, 0.1);
}

.header h1 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}

.header p {
  font-size: 1.1rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* 页面内容布局 */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

/* 景点列表样式 */
.scenic-list {
  margin-top: 2.5rem;
}

.scenic-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  position: relative;
  backdrop-filter: blur(10px);
}

/* 自然装饰边框 */
.scenic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, 
    var(--primary-color) 0%, 
    var(--accent-color) 25%, 
    var(--nature-accent) 50%, 
    var(--water-color) 75%, 
    var(--sky-blue) 100%);
  border-radius: 20px 20px 0 0;
}

.scenic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(45, 90, 39, 0.2);
  border-color: var(--accent-color);
}

.scenic-card:active {
  transform: scale(0.98);
}

.scenic-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid rgba(210, 180, 140, 0.3);
  background: linear-gradient(135deg, 
    rgba(247, 244, 240, 0.6), 
    rgba(245, 242, 237, 0.4));
  position: relative;
}

/* 添加自然纹理 */
.scenic-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 30% 70%, rgba(107, 142, 35, 0.05) 0%, transparent 30%);
  pointer-events: none;
}

.scenic-title {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

.scenic-title h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.scenic-number {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 3px 12px rgba(45, 90, 39, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* 音频播放按钮 - 自然主题 */
.audio-btn {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.audio-btn:hover {
  background: linear-gradient(135deg, var(--nature-accent), var(--primary-color));
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(45, 90, 39, 0.4);
}

.audio-btn i {
  font-size: 1.2rem;
}

/* 景点详情内容 */
.scenic-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-out;
  background: linear-gradient(135deg, 
    rgba(247, 244, 240, 0.8), 
    rgba(250, 248, 245, 0.6));
}

.scenic-content.active {
  max-height: 2500px;
  transition: max-height 1.2s ease-in;
}

.scenic-detail {
  padding: 2.5rem;
  font-size: 1rem;
  line-height: 1.8;
  position: relative;
}

/* 自然装饰背景 */
.scenic-detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(139, 115, 85, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(107, 142, 35, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.scenic-detail h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 1.8rem 0 1rem 0;
  font-weight: 600;
  position: relative;
  z-index: 1;
  padding-left: 1.5rem;
}

.scenic-detail h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent-color), var(--nature-accent));
  border-radius: 2px;
}

.scenic-detail h3:first-child {
  margin-top: 0;
}

.scenic-detail p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  position: relative;
  z-index: 1;
  text-align: justify;
}

.toggle-icon {
  color: var(--accent-color);
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.toggle-icon.active {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.decorative-line {
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--border-color), 
    var(--accent-color), 
    var(--border-color), 
    transparent);
  margin: 2rem 0;
}

.footer {
  text-align: center;
  padding: 2rem;
  color: var(--light-text);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .header {
    padding: 2rem 1rem 1.5rem;
  }

  .header h1 {
    font-size: 1.6rem;
  }

  .scenic-title h2 {
    font-size: 1.2rem;
  }

  .scenic-detail {
    padding: 1.5rem;
  }

  .scenic-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .audio-btn {
    width: 40px;
    height: 40px;
  }
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--primary-color);
}

.loading-spinner {
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.playing .audio-btn {
  background: linear-gradient(135deg, var(--nature-accent), var(--water-color));
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
  }
  50% {
    box-shadow: 0 6px 25px rgba(205, 133, 63, 0.5);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
  }
}

/* 纸质纹理背景效果 */
.paper-bg {
  position: relative;
}

.paper-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(139, 115, 85, 0.01) 2px,
      rgba(139, 115, 85, 0.01) 4px
    );
  pointer-events: none;
  z-index: -2;
} 