/* 人体工学椅 - 访谈风格样式表 */
/* 主色调: #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-card: #f5f5f5;
  --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;
  --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: var(--bg-secondary);
}

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

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

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

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

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

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

.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(--accent-color) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  color: #fff;
  margin-bottom: 40px;
}

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

.hero-desc {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.7;
}

/* Section Title */
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--accent-color);
  border-radius: 2px;
}

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

.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-image {
  width: 100%;
  height: 180px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.card-body {
  padding: 20px;
}

.card-tag {
  display: inline-block;
  background: rgba(121, 85, 72, 0.1);
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

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

/* Interview Card (Featured) */
.featured-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
}

.featured-avatar {
  width: 200px;
  height: 200px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.featured-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.featured-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

/* Category Tags */
.category-tags {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-tag {
  padding: 12px 24px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 24px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.category-tag:hover,
.category-tag.active {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(121, 85, 72, 0.05);
}

/* List Section */
.list-section {
  margin-bottom: 40px;
}

.list-item {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  transition: box-shadow 0.2s;
}

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

.list-thumb {
  width: 120px;
  height: 90px;
  background: var(--bg-card);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
}

.list-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.list-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

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

.list-meta span {
  display: block;
  margin-bottom: 4px;
}

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

.qa-pair {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.question {
  background: var(--accent-color);
  color: #fff;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 18px;
}

.question::before {
  content: 'Q: ';
  font-weight: 700;
}

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

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

/* Person Intro */
.person-intro {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.person-avatar {
  width: 120px;
  height: 120px;
  background: var(--bg-card);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.person-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.person-bio {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Topic Tag */
.topic-tag {
  display: inline-block;
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px;
}

/* Timestamp */
.timestamp {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

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

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

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

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

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover,
.page-btn.active {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(121, 85, 72, 0.05);
}

/* Sidebar Grid */
.sidebar-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

/* Sidebar Widget */
.widget {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
}

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

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

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

.widget-list a {
  color: var(--text-secondary);
  font-size: 14px;
  display: block;
}

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

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

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

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

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

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.7;
}

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

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

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

.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: 14px;
}

/* 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: 24px;
}

.error-title {
  font-size: 28px;
  font-weight: 700;
  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: 24px;
  font-weight: 600;
  transition: background 0.2s;
}

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

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

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

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

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 16px;
    gap: 16px;
  }

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

  .search-box {
    display: none;
  }

  .hero {
    padding: 40px 24px;
  }

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

  .hero-desc {
    font-size: 16px;
  }

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

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

  .featured-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

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

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

  .list-meta {
    text-align: center;
  }

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

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

  .hero {
    padding: 32px 20px;
  }

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

  .section-title {
    font-size: 20px;
  }

  .category-tags {
    gap: 8px;
  }

  .category-tag {
    padding: 8px 16px;
    font-size: 14px;
  }
}