/* 水族宠物 - 访谈风格样式 */
/* 主色调: #795548 (棕色) */

:root {
  --accent-color: #795548;
  --accent-light: #8d6e63;
  --accent-dark: #5d4037;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --bg-primary: #fff;
  --bg-secondary: #fafafa;
  --bg-accent: #f5f0ee;
  --border-color: #e0e0e0;
  --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;
  --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;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
}

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

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

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

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

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

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

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

.logo span {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 8px;
}

.nav {
  display: flex;
  gap: var(--gap);
}

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

.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-secondary);
  border-radius: 20px;
  padding: 6px 16px;
  border: 1px solid var(--border-color);
}

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

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

/* Hero 区域 */
.hero {
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-secondary) 100%);
  padding: 60px 0;
  text-align: center;
}

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

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

/* 特色访谈 */
.featured {
  padding: 48px 0;
}

.section-title {
  font-size: 1.5rem;
  color: var(--accent-dark);
  margin-bottom: var(--gap);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.featured-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  gap: var(--gap);
  padding: var(--gap);
}

.featured-img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.featured-content {
  flex: 1;
}

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

.featured-content h3 {
  font-size: 1.5rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

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

/* 分类浏览 */
.categories {
  padding: 48px 0;
  background: var(--bg-secondary);
}

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

.category-card {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: var(--gap);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.category-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}

.category-card h4 {
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.category-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 访谈列表 */
.interview-list {
  padding: 48px 0;
}

.interview-item {
  display: flex;
  gap: var(--gap);
  padding: var(--gap);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

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

.interview-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.interview-info {
  flex: 1;
}

.interview-info h4 {
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

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

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

/* 底部三栏 */
.footer-columns {
  padding: 48px 0;
  background: var(--bg-secondary);
}

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

.footer-col h4 {
  font-size: 1rem;
  color: var(--accent-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

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

.footer-col li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}

.footer-col li:last-child {
  border-bottom: none;
}

.footer-col a {
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

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

/* 页脚 */
.footer {
  background: var(--accent-dark);
  color: rgba(255,255,255,0.8);
  padding: 32px 0;
  text-align: center;
}

.footer p {
  font-size: 14px;
}

.footer-links {
  margin-bottom: 16px;
}

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

.footer-links a:hover {
  color: #fff;
}

/* 面包屑 */
.breadcrumb {
  padding: 16px 0;
  background: var(--bg-secondary);
  font-size: 14px;
}

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

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

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

.breadcrumb strong {
  color: var(--accent-dark);
  font-weight: 500;
}

/* 分类页标题 */
.category-header {
  padding: 48px 0;
  text-align: center;
  background: var(--bg-accent);
}

.category-header h1 {
  font-size: 2rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

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

/* 文章列表 */
.article-list {
  padding: 48px 0;
}

.article-card {
  display: flex;
  gap: var(--gap);
  padding: var(--gap);
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--gap);
  transition: box-shadow 0.2s;
}

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

.article-img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.article-content {
  flex: 1;
}

.article-content h3 {
  font-size: 1.25rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.article-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

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

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 14px;
}

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

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

/* 文章详情页 */
.article-detail {
  padding: 48px 0;
}

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

.article-header h1 {
  font-size: 2rem;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.article-header .meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Q&A 问答区 */
.qa-section {
  max-width: 800px;
  margin: 0 auto;
}

.qa-pair {
  margin-bottom: 32px;
}

.question {
  background: var(--bg-accent);
  border-left: 4px solid var(--accent-color);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
}

.question::before {
  content: "Q: ";
  font-weight: 700;
  color: var(--accent-color);
}

.question p {
  display: inline;
  color: var(--accent-dark);
  font-weight: 500;
}

.answer {
  padding: 0 20px;
  color: var(--text-primary);
  line-height: 1.9;
}

.answer::before {
  content: "A: ";
  font-weight: 700;
  color: var(--accent-light);
}

.answer p {
  display: inline;
}

.answer ul,
.answer ol {
  margin: 12px 0 12px 24px;
}

.answer li {
  margin: 8px 0;
}

/* 相关文章 */
.related-section {
  padding: 48px 0;
  background: var(--bg-secondary);
  margin-top: 48px;
}

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

.related-card {
  background: var(--bg-primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-card h4 {
  padding: 16px;
  font-size: 1rem;
  color: var(--accent-dark);
}

/* 404 页面 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

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

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

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

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

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

/* 响应式设计 */
@media (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .featured-card {
    flex-direction: column;
  }

  .featured-img {
    width: 100%;
    height: 200px;
  }

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

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

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

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

  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .article-card {
    flex-direction: column;
  }

  .article-img {
    width: 100%;
    height: 180px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

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

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

  .search-box {
    display: none;
  }

  .nav {
    gap: var(--gap-sm);
    font-size: 14px;
  }

  .hero {
    padding: 40px 0;
  }

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

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

  .article-header h1 {
    font-size: 1.5rem;
  }
}
