/* 植物园样式 - 访谈风格适配 */
:root {
  --accent-color: #4a7c59;
  --accent-light: #6b9b7a;
  --accent-dark: #2d5a3d;
  --bg-primary: #f8faf8;
  --bg-secondary: #ffffff;
  --text-primary: #2c3e2d;
  --text-secondary: #5a6b5c;
  --text-muted: #8a9a8c;
  --border-color: #e0ebe2;
  --shadow: 0 2px 8px rgba(74, 124, 89, 0.1);
  --shadow-hover: 0 4px 16px rgba(74, 124, 89, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --gap: 24px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

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

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

/* Header */
.header {
  background: var(--bg-secondary);
  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: 16px var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

.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;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

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

.search {
  position: relative;
}

.search input {
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-primary);
  width: 240px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search input:focus {
  border-color: var(--accent-color);
}

.search::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-lg);
  padding: 60px var(--gap);
  text-align: center;
  color: white;
  margin-bottom: var(--gap);
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

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

/* Cards */
.card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.7;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Featured Section */
.featured {
  margin-bottom: var(--gap);
}

.featured-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent-color);
}

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

.featured-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.topic-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-tag {
  background: var(--bg-primary);
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* Category Browse */
.category-browse {
  margin-bottom: var(--gap);
}

.category-item {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
}

.category-item:hover {
  box-shadow: var(--shadow-hover);
  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 {
  margin-bottom: var(--gap);
}

.interview-item {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.interview-item:hover {
  box-shadow: var(--shadow-hover);
}

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

.interview-content {
  flex: 1;
}

.interview-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.interview-guest {
  font-size: 14px;
  color: var(--accent-color);
  margin-bottom: 8px;
}

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

/* Sidebar Sections */
.sidebar-section {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  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);
  font-size: 14px;
}

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

.sidebar-list a {
  color: var(--text-secondary);
  display: block;
}

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

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: var(--gap);
  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 {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: var(--gap);
  text-align: center;
  box-shadow: var(--shadow);
}

.category-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

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

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

.pagination a,
.pagination span {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
}

.pagination a {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  box-shadow: var(--shadow);
}

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

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

/* Article Page */
.article-header {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: var(--gap);
  text-align: center;
  box-shadow: var(--shadow);
}

.article-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-primary);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.article-title {
  font-size: 28px;
  margin-bottom: 12px;
}

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

.article-intro {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Q&A Section */
.qa-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow);
}

.qa-pair {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.qa-pair:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.question {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

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

.answer {
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 36px;
}

/* More Section */
.more-section {
  margin-bottom: var(--gap);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.more-item {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.more-item:hover {
  box-shadow: var(--shadow-hover);
}

.more-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.more-title {
  font-size: 14px;
  font-weight: 500;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 80px var(--gap);
}

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

.error-title {
  font-size: 24px;
  margin-bottom: 16px;
}

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

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

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

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

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px var(--gap);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 12px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

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

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

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

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

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

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .search input {
    width: 160px;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .grid-3,
  .grid-2,
  .more-grid {
    grid-template-columns: 1fr;
  }

  .interview-item {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .article-header {
    padding: 24px;
  }

  .qa-section {
    padding: 20px;
  }

  .answer {
    padding-left: 0;
    padding-top: 8px;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 16px;
  }

  .featured-card {
    padding: 20px;
  }

  .category-header {
    padding: 20px;
  }
}
