/* 水族宠物 - 访谈问答风格样式 */
:root {
  --accent-color: #795548;
  --primary-color: #5d4037;
  --secondary-color: #8d6e63;
  --bg-color: #faf7f5;
  --card-bg: #ffffff;
  --text-primary: #3e2723;
  --text-secondary: #6d4c41;
  --text-muted: #8d6e63;
  --border-color: #d7ccc8;
  --shadow: 0 2px 8px rgba(121, 85, 72, 0.1);
  --shadow-hover: 0 4px 16px rgba(121, 85, 72, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --gap: 24px;
  --gap-sm: 16px;
}

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

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

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

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

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

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo span {
  color: var(--accent-color);
}

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

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-color);
  border-radius: var(--radius);
  padding: 8px 16px;
  min-width: 200px;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

/* 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(--secondary-color) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: white;
  text-align: center;
  margin-bottom: var(--gap);
}

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

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--gap);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

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

.card-body {
  padding: var(--gap);
}

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

.card-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 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);
}

/* Guest Cards */
.guest-card {
  text-align: center;
  padding: var(--gap);
}

.guest-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.guest-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.guest-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Interview List */
.interview-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.interview-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: var(--gap);
  box-shadow: var(--shadow);
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

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

.interview-thumb {
  width: 120px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
}

.interview-content {
  flex: 1;
}

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

.interview-guest {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.interview-stats {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--card-bg);
  padding: 12px var(--gap);
  border-radius: var(--radius);
  margin-bottom: var(--gap);
  font-size: 0.9rem;
}

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

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

.breadcrumb span {
  color: var(--text-secondary);
  margin: 0 8px;
}

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

.category-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* Article Page */
.article-header {
  text-align: center;
  margin-bottom: var(--gap);
}

.article-guest {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
}

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

.article-meta {
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

/* Q&A Section */
.qa-section {
  margin-bottom: var(--gap);
}

.qa-pair {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: var(--gap-sm);
  overflow: hidden;
}

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

.question::before {
  content: "Q";
  background: rgba(255,255,255,0.2);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

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

.answer::before {
  content: "A";
  background: var(--bg-color);
  color: var(--accent-color);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* Topic Tags */
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

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

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

.pagination a,
.pagination span {
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s;
}

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

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

/* Sidebar Lists */
.sidebar-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: var(--gap);
  margin-bottom: var(--gap);
}

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

.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);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.sidebar-list .count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-color);
  padding: 2px 8px;
  border-radius: 12px;
}

/* Three Column Layout */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: var(--gap) 0;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 48px 0 24px;
  margin-top: 48px;
}

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

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

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-brand p {
  opacity: 0.8;
  line-height: 1.7;
}

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

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

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

.footer-links a {
  color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
  color: white;
}

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

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

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 24px;
}

.error-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.error-text {
  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(--primary-color);
  color: white;
}

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

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

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

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
  }

  .search-box {
    min-width: auto;
    flex: 1;
  }

  .hero {
    padding: 32px var(--gap);
  }

  .hero h1 {
    font-size: 1.75rem;
  }

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

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

  .interview-thumb {
    width: 100%;
    height: 160px;
  }

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

  .error-code {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --gap: 16px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .question,
  .answer {
    padding: 12px 16px;
  }
}
