/* 植物园 - 访谈风格样式 */
:root {
  --accent-color: #4a7c59;
  --accent-light: #6b9b7a;
  --accent-dark: #2d5a3d;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --bg-primary: #fff;
  --bg-secondary: #f8faf8;
  --bg-accent: #f0f5f1;
  --border-color: #e0e8e2;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 64px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

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

a:hover {
  color: var(--accent-dark);
}

/* Header */
.header {
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: "🌿";
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--accent-color);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 8px 16px;
  gap: 8px;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  width: 160px;
}

.search-box button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 32px;
  text-align: center;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Featured Card */
.featured-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.featured-card:hover {
  box-shadow: var(--shadow-hover);
}

.featured-tag {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.featured-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.featured-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.featured-desc {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.category-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.category-card:hover {
  background: var(--bg-primary);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.category-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.category-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Interview List */
.interview-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.interview-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.interview-item:hover {
  background: var(--bg-accent);
}

.interview-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.interview-content {
  flex: 1;
}

.interview-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.interview-guest {
  font-size: 14px;
  color: var(--text-secondary);
}

.interview-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

/* Sidebar Grid */
.sidebar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.sidebar-section {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

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

.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  color: var(--text-secondary);
  font-size: 14px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-list a:hover {
  color: var(--accent-color);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

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

.breadcrumb a:hover {
  color: var(--accent-color);
}

.breadcrumb span {
  margin: 0 8px;
}

/* Category Header */
.category-header {
  text-align: center;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.category-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.category-desc {
  color: var(--text-secondary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--accent-color);
  color: white;
}

.pagination .current {
  background: var(--accent-color);
  color: white;
}

/* Article Detail */
.article-header {
  text-align: center;
  margin-bottom: 32px;
}

.article-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  margin: 0 auto 24px;
}

.article-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.article-intro {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Q&A Section */
.qa-section {
  margin-bottom: 32px;
}

.qa-item {
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.qa-question {
  background: var(--bg-accent);
  padding: 20px 24px;
  font-weight: 600;
  color: var(--accent-dark);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.qa-question::before {
  content: "Q";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

.qa-answer {
  padding: 20px 24px;
  color: var(--text-secondary);
  line-height: 1.8;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.qa-answer::before {
  content: "A";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-light);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

/* Related Grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.related-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}

.related-card:hover {
  background: var(--bg-accent);
}

.related-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 12px;
}

.related-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.related-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-logo::before {
  content: "🌿";
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 80px 24px;
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.6;
}

.error-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.error-btn {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s;
}

.error-btn:hover {
  background: var(--accent-dark);
  color: white;
}

/* Recommended Section */
.recommended-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.recommended-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.recommended-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.recommended-tags a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.recommended-tags a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Two Column Layout */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Responsive */
@media (max-width: 992px) {
  .category-grid,
  .sidebar-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav {
    display: none;
  }

  .search-box {
    display: none;
  }

  .hero {
    padding: 32px 24px;
  }

  .hero-title {
    font-size: 28px;
  }

  .main {
    padding: 16px;
  }

  .category-grid,
  .sidebar-grid,
  .related-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }

  .interview-item {
    flex-direction: column;
    text-align: center;
  }

  .qa-question,
  .qa-answer {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }

  .featured-card {
    padding: 20px;
  }

  .error-code {
    font-size: 80px;
  }
}
