/* ===== 法言法语 | 法律人的假面舞会 ===== */

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

:root {
  --color-primary: #1a365d;
  --color-primary-light: #2d4a7a;
  --color-accent: #2b6cb0;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-bg-card: #ffffff;
  --color-text: #1a202c;
  --color-text-secondary: #4a5568;
  --color-text-muted: #718096;
  --color-border: #e2e8f0;
  --color-border-light: #edf2f7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 960px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--color-primary);
}

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

/* ===== Header ===== */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
}

.header-text {
  flex: 1;
  min-width: 0;
}

.site-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-title a {
  color: #fff;
}
.site-title a:hover {
  color: rgba(255,255,255,0.85);
}

.site-subtitle {
  font-size: 0.8rem;
  opacity: 0.75;
  font-weight: 400;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-cover {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-host {
  font-size: 0.95rem;
  opacity: 0.85;
}

.hero-desc {
  max-width: 600px;
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-rss {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-rss:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ===== Main Content ===== */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
}

/* ===== Episode Cards ===== */
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.episode-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.episode-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
  transform: translateY(-1px);
}

.episode-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.episode-number {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.episode-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.episode-card-title a {
  color: var(--color-text);
}
.episode-card-title a:hover {
  color: var(--color-accent);
}

.episode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.episode-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.episode-summary {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-light);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

.pagination a,
.pagination span {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
}

.pagination a {
  background: var(--color-bg-alt);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.pagination a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pagination .current {
  background: var(--color-primary);
  color: #fff;
}

/* ===== Episode Page (Love Thy Lawyer style) ===== */
.ep-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.ep-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.ep-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.ep-cover {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ep-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.ep-audio {
  margin-bottom: 2rem;
}

.ep-audio audio {
  width: 100%;
  height: 48px;
  border-radius: 8px;
}

.ep-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.ep-meta-row .episode-number {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ===== Guest Card ===== */
.guest-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.guest-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.guest-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.guest-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Tabs */
.tabs {
  margin-bottom: 2rem;
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  gap: 0;
}

.tab-btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  color: var(--color-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

.tab-content {
  display: none;
  padding: 1.5rem 0;
}

.tab-content.active {
  display: block;
}

/* Show Notes Content */
.show-notes {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.show-notes h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 1.5rem 0 0.75rem;
}

.show-notes h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.2rem 0 0.5rem;
}

.show-notes p {
  margin-bottom: 0.75rem;
}

.show-notes ul,
.show-notes ol {
  margin: 0.5rem 0 0.75rem 1.5rem;
}

.show-notes li {
  margin-bottom: 0.3rem;
}

.show-notes a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(43,108,176,0.3);
}
.show-notes a:hover {
  text-decoration-color: var(--color-accent);
}

.show-notes blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text-secondary);
}

.show-notes img {
  border-radius: var(--radius);
  margin: 1rem 0;
}

.show-notes hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

/* Transcript Content */
.transcript-content {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text-secondary);
}

.transcript-content h1 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.transcript-content h2 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 1.5rem 0 0.75rem;
}

.transcript-content p {
  margin-bottom: 0.75rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-section p,
.footer-section a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}
.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero-cover {
    width: 120px;
    height: 120px;
  }
  .episode-card {
    padding: 1rem;
  }
  .episode-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-inner {
    flex-direction: column;
  }
  .guest-card {
    flex-direction: column;
    text-align: center;
  }
  .ep-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .ep-hero-cover {
    width: 140px;
    height: 140px;
  }
  .ep-hero-title {
    font-size: 1.4rem;
  }
  .ep-hero-meta {
    justify-content: center;
  }
  .ep-player {
    flex-direction: column;
    text-align: center;
  }
}
