/* ===== 人体工学椅 - 访谈问答风格样式 ===== */
/* 主色调: #795548 (棕色系) */

/* ===== CSS 变量 ===== */
:root {
  --accent-color: #795548;
  --accent-light: #8d6e63;
  --accent-dark: #5d4037;
  --bg-primary: #fafafa;
  --bg-secondary: #f5f5f5;
  --bg-card: #ffffff;
  --text-primary: #212121;
  --text-secondary: #616161;
  --text-muted: #9e9e9e;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max-width: 1200px;
  --gap: 24px;
}

/* ===== 重置与基础 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

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

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

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

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

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

.nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  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-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.search-btn:hover {
  background: var(--border-color);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
}

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

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

/* ===== Section 标题 ===== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.section {
  padding: 48px 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

/* ===== 特色访谈卡片 ===== */
.featured-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 32px;
}

.featured-header {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.featured-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--bg-secondary);
}

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

.featured-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.featured-meta span {
  margin-right: 16px;
}

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

/* ===== 分类浏览 ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 32px;
}

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

.category-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow);
}

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

.category-card h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===== 访谈列表 ===== */
.interview-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.interview-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 20px;
}

.interview-item:hover {
  border-color: var(--accent-color);
}

.interview-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.interview-content {
  flex: 1;
}

.interview-content h4 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.interview-content h4 a {
  color: var(--text-primary);
}

.interview-content h4 a:hover {
  color: var(--accent-color);
}

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

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

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

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

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

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

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

/* ===== 页面标题区 ===== */
.page-header {
  padding: 32px 0;
  background: var(--bg-secondary);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

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

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

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

.question-label {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.question-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

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

.answer p {
  margin-bottom: 16px;
}

.answer-label {
  display: inline-block;
  background: var(--accent-light);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* ===== 嘉宾介绍 ===== */
.guest-profile {
  text-align: center;
  padding: 48px 0;
  background: var(--bg-secondary);
  margin-bottom: 48px;
}

.guest-avatar-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  border: 5px solid white;
  box-shadow: var(--shadow);
}

.guest-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.guest-title {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.guest-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-tag {
  display: inline-block;
  background: white;
  color: var(--accent-color);
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

/* ===== 侧边栏文章列表 ===== */
.sidebar-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

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

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

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

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

.article-list a {
  color: var(--text-primary);
  font-size: 0.9375rem;
  display: block;
}

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

.article-list .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 三栏布局 ===== */
.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* ===== 两栏布局 ===== */
.two-column {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.main-content {
  min-width: 0;
}

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

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.pagination a {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

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

/* ===== 相关推荐 ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.related-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.related-card:hover {
  border-color: var(--accent-color);
}

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

.related-content {
  padding: 16px;
}

.related-content h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.related-content h4 a {
  color: var(--text-primary);
}

.related-content h4 a:hover {
  color: var(--accent-color);
}

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

/* ===== 404 页面 ===== */
.error-page {
  text-align: center;
  padding: 80px 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;
  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;
}

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

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

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

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.8;
}

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

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

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

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

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .two-column {
    grid-template-columns: 1fr;
  }

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

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

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

  .nav {
    display: none;
  }

  .hero {
    padding: 48px 0;
  }

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

  .hero-desc {
    font-size: 1rem;
  }

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

  .three-column {
    grid-template-columns: 1fr;
  }

  .featured-header {
    flex-direction: column;
    text-align: center;
  }

  .featured-avatar {
    margin: 0 auto;
  }

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

  .interview-meta {
    justify-content: center;
  }

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

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

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

  .question-text {
    font-size: 1rem;
  }

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

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

  .section {
    padding: 32px 0;
  }

  .featured-card {
    padding: 20px;
  }

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

  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
}
