/* 播客网站 - 绿色少女风主题 */

:root {
  --primary: #2dd4bf;      /* 薄荷绿 */
  --primary-dark: #0d9488;
  --primary-light: #ccfbf1;
  --secondary: #f0fdfa;    /* 浅绿背景 */
  --accent: #f9a8d4;       /* 粉色点缀 */
  --accent-light: #fce7f3;
  --bg: #fafafa;
  --bg-white: #ffffff;
  --text: #374151;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(45, 212, 191, 0.15);
  --radius: 20px;
}

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

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, sans-serif;
  background: linear-gradient(135deg, #f0fdfa 0%, #fafafa 50%, #fce7f3 100%);
  min-height: 100vh;
  color: var(--text);
}

/* 导航栏 */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary-light);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s;
}

.nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Hero 区 */
.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-dark), #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* 主要内容区 */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* 筛选器 */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--primary-light);
  background: var(--bg-white);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.3);
}

/* 播客卡片网格 - 类似 Lex Fridman */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.episode-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.episode-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(45, 212, 191, 0.25);
}

.card-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
}

.card-content {
  padding: 1.25rem;
}

.card-number {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--text);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

.card-tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.tag-zh { background: var(--primary-light); color: var(--primary-dark); }
.tag-en { background: #dbeafe; color: #6366f1; }
.tag-both { background: var(--accent-light); color: #db2777; }

/* 单集详情页 */
.episode-detail {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.detail-header {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .detail-header {
    grid-template-columns: 1fr;
  }
}

.detail-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.detail-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.detail-description {
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* 按钮 */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.4);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 操作按钮组 */
.detail-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--border);
  background: var(--bg-white);
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.action-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.action-btn.liked {
  background: var(--accent-light);
  border-color: var(--accent);
  color: #db2777;
}

/* 播放器 */
.audio-player {
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.audio-player audio {
  width: 100%;
  border-radius: 10px;
}

/* 评论区域 */
.comments-section {
  margin-top: 2rem;
}

.comments-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-form {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.comment-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.comment-form input {
  padding: 0.6rem 1rem;
  border: 2px solid var(--border);
  border-radius: 20px;
  margin-right: 0.5rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment {
  background: var(--bg-white);
  padding: 1.25rem;
  border-radius: 16px;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.comment:hover {
  border-color: var(--primary-light);
}

.comment.pinned {
  border-color: var(--accent);
  background: var(--accent-light);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.comment-author {
  font-weight: 600;
  color: var(--primary-dark);
}

.comment-time {
  font-size: 0.8rem;
  color: var(--text-light);
}

.comment-content {
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.comment-actions {
  display: flex;
  gap: 1rem;
}

.comment-action {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s;
}

.comment-action:hover {
  color: var(--primary);
}

/* 收藏提示 */
.favorite-hint {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  padding: 1.25rem;
  border-radius: 16px;
  text-align: center;
  margin-top: 2rem;
  color: var(--primary-dark);
  font-weight: 500;
}

/* 全局播放器 */
.global-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--primary-light);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  box-shadow: 0 -4px 30px rgba(45, 212, 191, 0.2);
}

.player-cover {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s;
}

.player-controls {
  display: flex;
  gap: 0.5rem;
}

.control-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--primary-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s;
}

.control-btn:hover {
  background: var(--primary);
  color: white;
}

.control-btn.play {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.4);
}

.control-btn.play:hover {
  transform: scale(1.05);
}

/* 管理后台 */
.admin-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.admin-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -0.6rem;
  transition: all 0.3s;
}

.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 表格 */
.admin-table {
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--secondary);
  font-weight: 600;
  color: var(--primary-dark);
}

.admin-table tr:hover {
  background: var(--primary-light);
}

/* 表单 */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* 登录页 */
.login-container {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: var(--bg-white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 2px solid var(--primary-light);
}

.login-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .episode-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar {
    padding: 0.5rem 1rem;
  }
  .navbar-content {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
  }
  
  .global-player {
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
  }
  
  .player-cover {
    width: 40px;
    height: 40px;
  }
}

/* 隐藏 */
.hidden {
  display: none !important;
}

/* 加载 */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.episode-card {
  animation: fadeIn 0.4s ease-out;
}

.episode-card:nth-child(1) { animation-delay: 0.05s; }
.episode-card:nth-child(2) { animation-delay: 0.1s; }
.episode-card:nth-child(3) { animation-delay: 0.15s; }
.episode-card:nth-child(4) { animation-delay: 0.2s; }
.episode-card:nth-child(5) { animation-delay: 0.25s; }
.episode-card:nth-child(6) { animation-delay: 0.3s; }
