/* ============================================
   91吃瓜 - 播客网络与音频内容平台
   全局样式表
   ============================================ */

/* CSS Variables */
:root {
  --color-primary: #FF6B6B;
  --color-secondary: #4ECDC4;
  --color-bg: #F7F1E3;
  --color-card: #FFFFFF;
  --color-text: #2F3542;
  --color-text-light: #57606f;
  --color-border: #e8e0d0;
  --font-heading: "Noto Serif SC", "Source Han Serif CN", serif;
  --font-body: "Noto Sans SC", "Source Han Sans CN", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(47, 53, 66, 0.08);
  --shadow-hover: 0 8px 40px rgba(255, 107, 107, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --player-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  padding-bottom: var(--player-height);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #e55a5a;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 241, 227, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-menu a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg) 0%, #fff5e6 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url('../images/sound-wave-abstract.webp');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 60px 24px;
}

.hero-vinyl {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 40px;
  overflow: hidden;
  animation: spin 8s linear infinite;
  box-shadow: 0 0 60px rgba(255, 107, 107, 0.3);
}

.hero-vinyl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.hero .cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: #e55a5a;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-mint {
  background: var(--color-secondary);
  color: white;
}

.btn-mint:hover {
  background: #3dbdb5;
  color: white;
  transform: translateY(-2px);
}

/* Section */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header .section-desc {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-more {
  text-align: center;
  margin-top: 40px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.card-body p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(78, 205, 196, 0.1);
  color: var(--color-secondary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Episode List */
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.episode-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.episode-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.episode-cover {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.episode-info {
  flex: 1;
}

.episode-info h4 {
  margin-bottom: 4px;
}

.episode-info .episode-show {
  font-size: 0.85rem;
  color: var(--color-primary);
}

.episode-info .episode-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.episode-duration {
  font-size: 0.85rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  border: none;
  font-size: 1rem;
}

.play-btn:hover {
  background: #e55a5a;
  transform: scale(1.1);
}

/* Host Grid */
.host-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.host-card {
  text-align: center;
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.host-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.host-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--color-primary);
}

.host-card h4 {
  margin-bottom: 4px;
}

.host-card .host-role {
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.host-card .host-bio {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Sponsor Section */
.sponsor-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  text-align: center;
  background: var(--color-card);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* Audio Player (Global Persistent) */
.global-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background: rgba(47, 53, 66, 0.97);
  backdrop-filter: blur(12px);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 250px;
}

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

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

.player-show {
  font-size: 0.8rem;
  opacity: 0.7;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
}

.player-controls button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.8;
  transition: var(--transition);
}

.player-controls button:hover {
  opacity: 1;
  transform: scale(1.1);
}

.player-controls .play-pause {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.player-progress {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  width: 35%;
  transition: width 0.1s linear;
}

.player-time {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 120px;
}

/* Waveform Visualizer */
.waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 0 16px;
}

.waveform .bar {
  width: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.waveform .bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.waveform .bar:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.waveform .bar:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.waveform .bar:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.waveform .bar:nth-child(5) { height: 60%; animation-delay: 0.4s; }
.waveform .bar:nth-child(6) { height: 80%; animation-delay: 0.5s; }
.waveform .bar:nth-child(7) { height: 45%; animation-delay: 0.6s; }
.waveform .bar:nth-child(8) { height: 65%; animation-delay: 0.7s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

/* Subscribe Badges */
.subscribe-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.badge-apple {
  background: #7C3AED;
  color: white;
}

.badge-xiaoyuzhou {
  background: #FF9500;
  color: white;
}

.badge-netease {
  background: #C20C0C;
  color: white;
}

.badge-rss {
  background: var(--color-secondary);
  color: white;
}

.badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Timestamp / Shownotes */
.shownotes {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.timestamp-list {
  list-style: none;
}

.timestamp-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

.timestamp-item:hover {
  background: rgba(255, 107, 107, 0.05);
  padding-left: 8px;
}

.timestamp-item:last-child {
  border-bottom: none;
}

.timestamp-time {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
  min-width: 60px;
}

.timestamp-text {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Page Header (Inner Pages) */
.page-header {
  background: linear-gradient(135deg, var(--color-bg) 0%, #fff5e6 100%);
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header .page-desc {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb span {
  color: var(--color-text-light);
}

/* Content Area */
.content-area {
  padding: 60px 0;
}

.content-main {
  max-width: 800px;
  margin: 0 auto;
}

.content-main h2 {
  margin: 32px 0 16px;
  font-size: 1.5rem;
}

.content-main h3 {
  margin: 24px 0 12px;
  font-size: 1.25rem;
}

.content-main ul, .content-main ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-main li {
  margin-bottom: 8px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Search Page */
.search-box {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 16px 24px;
  padding-right: 60px;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--color-card);
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
}

/* 404 Page */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page h1 {
  font-size: 8rem;
  color: var(--color-primary);
  opacity: 0.3;
}

.error-page h2 {
  margin-bottom: 16px;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--color-card);
  transition: var(--transition);
}

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

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-vinyl {
    width: 140px;
    height: 140px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .episode-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .player-info {
    flex: 0 0 auto;
  }
  
  .player-progress {
    display: none;
  }
  
  .player-volume {
    display: none;
  }
  
  .global-player {
    padding: 0 12px;
  }
  
  .sponsor-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .host-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .hero .cta-group {
    flex-direction: column;
    align-items: center;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
