/* 雁山老司机播客页 - 样式表 */
/* 基础样式 */
body {
  margin: 0;
  padding: 0;
  background: #ffb6e1;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 标题样式 */
h1 {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(255, 105, 180, 0.8);
  margin-top: 5vh;
  position: relative;
  display: inline-block;
  font-weight: normal;
}

/* GitHub 图标样式 */
.github-icon {
  margin-left: 15px;
  color: #fff;
  font-size: 3rem;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
}

.github-icon:hover {
  color: #ff33cc;
}

/* 内容容器 */
.content-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2vh;
  flex: 1;
  padding: 0 20px;
}

/* 播客容器 */
.podcast-container {
  background: rgba(255, 255, 255, 0.15);
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 0 15px rgba(255, 192, 203, 0.3);
  margin-bottom: 2rem;
}

/* 播客信息 */
.podcast-info {
  margin-bottom: 2rem;
  text-align: left;
}

.podcast-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px #ff33cc;
}

.podcast-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* 播客播放器 */
.podcast-player {
  margin: 2rem 0;
  width: 100%;
}

#player-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}

#not-found-message {
  font-family: monospace;
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}

/* 订阅选项 */
.subscribe-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.subscribe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1rem;
  color: #fff;
  padding: 0.7rem 1.2rem;
  background: rgba(255, 105, 180, 0.6);
  border: none;
  border-radius: 30px;
  box-shadow: 0px 0px 8px rgba(255, 105, 180, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  margin: 0 5px;
}

.subscribe-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 105, 180, 0.8);
}

.subscribe-btn i {
  font-size: 1.3rem;
}

/* 返回按钮 */
.back-btn {
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
  color: #fff;
  padding: 0.7rem 1.2rem;
  background: rgba(255, 105, 180, 0.6);
  border: none;
  border-radius: 30px;
  box-shadow: 0px 0px 8px rgba(255, 105, 180, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  margin-top: 1.5rem;
}

.back-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 105, 180, 0.8);
}

/* 剧集列表 */
.episode-list {
  width: 100%;
  margin-top: 2rem;
  text-align: left;
}

.episode {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.episode:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.episode-image {
  flex: 0 0 80px;
}

.episode-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.episode-content {
  flex: 1;
}

.episode h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(255, 105, 180, 0.6);
}

.episode-date {
  font-size: 0.9rem;
  opacity: 0.8;
  color: #fff;
}

.episode-description {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  max-height: 4.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.episode-description img {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
}

/* 加载文本样式 */
.loading-text {
  font-size: 1.2rem;
  color: #fff;
  text-align: center;
  padding: 2rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* 页脚样式 */
footer {
  margin-top: auto;
  padding: 2vh 0;
  width: 100%;
  font-size: 0.8rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(255, 105, 180, 0.6);
}

/* 闪烁动画 */
@keyframes glitch {
  0% {
    text-shadow: 2px 2px 5px #ff33cc, -2px -2px 5px #ff66ff;
  }

  50% {
    text-shadow: -2px -2px 5px #ff33cc, 2px 2px 5px #ff66ff;
  }

  100% {
    text-shadow: 2px 2px 5px #ff33cc, -2px -2px 5px #ff66ff;
  }
}

/* 小宇宙播放器样式 */
.xiaoyuzhou-player {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.player-iframe-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

#xiaoyuzhou-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 自定义播放器样式 */
.custom-player {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.player-header {
  background: #f0f0f0;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  color: #333;
}

.planet-icon {
  color: #00a1d6;
  margin-right: 5px;
}

.player-text {
  font-weight: bold;
  margin-right: 5px;
}

.player-slogan {
  flex-grow: 1;
}

.download-btn {
  background: #00a1d6;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.player-content {
  background: white;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-image: linear-gradient(#f9f9f9 1px, transparent 1px),
    linear-gradient(90deg, #f9f9f9 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 20px;
}

.loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 150px;
  height: 150px;
}

.globe-icon {
  font-size: 40px;
  color: #00a1d6;
  opacity: 0.7;
}

.star-icon {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #00a1d6;
  font-size: 20px;
  animation: twinkle 2s infinite;
}

.player-episode {
  display: flex;
  width: 100%;
  padding: 15px;
  gap: 20px;
  align-items: flex-start;
}

.player-episode.hidden {
  display: none;
}

.episode-cover {
  flex: 0 0 120px;
}

.episode-cover img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.episode-info {
  flex: 1;
  text-align: left;
}

.episode-title {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #333;
  font-weight: bold;
}

.episode-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: #666;
  font-size: 14px;
}

.audio-player {
  width: 100%;
}

.audio-player audio {
  width: 100%;
}

.player-episode-description {
  margin-top: 15px;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 6px;
  border: 1px solid #eee;
}

.player-episode-description img {
  max-width: 100%;
  max-height: 200px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 10px auto;
  border-radius: 4px;
}

.player-episode-description a {
  color: #00a1d6;
  text-decoration: none;
}

.player-episode-description a:hover {
  text-decoration: underline;
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

/* 移动端优化 */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .podcast-container {
    padding: 1rem;
  }

  .podcast-info h2 {
    font-size: 1.5rem;
  }

  .podcast-info p {
    font-size: 1rem;
  }

  .subscribe-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  .episode h3 {
    font-size: 1.1rem;
  }

  .player-iframe-container {
    height: 180px;
  }

  .player-episode {
    flex-direction: column;
  }

  .episode-cover {
    margin: 0 auto 15px;
  }

  .player-episode-description {
    max-height: 200px;
    font-size: 13px;
  }

  .player-episode-description img {
    max-height: 150px;
  }
}

/* 鼠标宠物样式 */
#mouse-pet {
  position: fixed;
  width: 150px;
  height: auto;
  pointer-events: none;
  z-index: 9999;
  display: block;
  transition: top 0.05s linear, left 0.05s linear;
  top: -100px;
  left: -100px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

