/* 播客App基础样式 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/3.3.0/tailwind.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

html, body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8fafc;
  height: 100%;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* iPhone 15 Pro 模拟器容器 */
.iphone-container {
  width: 393px;
  height: 852px;
  background: #000;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  margin: 20px auto;
  position: relative;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

/* iOS状态栏 */
.status-bar {
  height: 54px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}

.status-left {
  display: flex;
  align-items: center;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* App导航栏 */
.app-header {
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #f1f5f9;
}

.app-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

/* 内容区域 */
.content-area {
  flex: 1;
  overflow-y: auto;
  background: #f8fafc;
  min-height: 0; /* 允许flexbox子元素缩小 */
  /* 隐藏滚动条但保持滚动功能 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.content-area::-webkit-scrollbar {
  display: none; /* WebKit browsers */
}

/* 底部Tab Bar */
.tab-bar {
  height: 83px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 10px 0 25px;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  text-decoration: none;
  color: #64748b;
  transition: color 0.2s;
}

.tab-item.active {
  color: #6366f1;
}

.tab-item i {
  font-size: 20px;
}

.tab-item span {
  font-size: 11px;
  font-weight: 500;
}

/* 播客卡片样式 */
.podcast-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin: 8px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  gap: 12px;
}

.podcast-cover {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.podcast-info {
  flex: 1;
}

.podcast-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
  line-height: 1.3;
}

.podcast-author {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.podcast-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #94a3b8;
}

/* 播放器样式 */
.mini-player {
  background: #fff;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
}

.player-cover {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.player-info {
  flex: 1;
}

.player-title {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 2px;
}

.player-author {
  font-size: 12px;
  color: #64748b;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-btn {
  width: 36px;
  height: 36px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* 分类标签 */
.category-tags {
  display: flex;
  gap: 8px;
  padding: 16px;
  overflow-x: auto;
}

.category-tag {
  padding: 8px 16px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  text-decoration: none;
}

.category-tag.active {
  background: #6366f1;
  color: white;
}

/* 搜索框 */
.search-box {
  margin: 16px;
  position: relative;
}

.search-input {
  width: 100%;
  height: 44px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 40px 0 16px;
  font-size: 14px;
  outline: none;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

/* 全局边距统一 */
.content-area {
  padding-right: 0 !important;
  margin-right: 0 !important;
}

/* 确保所有元素使用统一的左右边距 */
.content-area > div[style*="padding"] {
  box-sizing: border-box;
}

/* 工具类 */
.text-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.section-link {
  font-size: 13px;
  color: #6366f1;
  text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .iphone-container {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  
  .iphone-screen {
    border-radius: 0;
  }
}