/* 爬行动物 - 访谈风格样式 */
:root {
  --accent-color: #795548;
  --primary-bg: #faf8f5;
  --secondary-bg: #f5f0eb;
  --card-bg: #ffffff;
  --text-primary: #3d322b;
  --text-secondary: #6b5d52;
  --text-muted: #9a8b7d;
  --border-color: #e8e0d8;
  --shadow: 0 2px 8px rgba(121, 85, 72, 0.08);
  --shadow-hover: 0 4px 16px rgba(121, 85, 72, 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", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header */
.header {
  background: var(--card-bg);
  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: 10px;
  text-decoration: none;
  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: 20px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
}

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

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

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

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

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

.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  width: 160px;
  color: var(--text-primary);
}

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

/* Main */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, #5d4037 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  margin-bottom: 40px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 16px;
}

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

.hero p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
}

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

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

/* Featured Card */
.featured-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

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

.featured-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}

.featured-info h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

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

.featured-desc {
  color: var(--text-secondary);
  font-size: 15px;
}

/* QA Pair */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qa-item {
  background: var(--secondary-bg);
  border-radius: var(--radius);
  padding: 20px;
}

.qa-question {
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}

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

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

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

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

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

.category-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

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

/* Interview List */
.interview-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.interview-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-primary);
}

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

.interview-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondary-bg);
  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-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

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

.interview-arrow {
  color: var(--text-muted);
}

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

.col-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.col-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

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

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

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

.article-list a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.article-list a::before {
  content: '•';
  color: var(--accent-color);
}

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

/* 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);
  text-decoration: none;
}

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

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

/* Page Header */
.page-header {
  margin-bottom: 32px;
}

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

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

/* Content List (Category Page) */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.content-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 20px;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-primary);
}

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

.content-thumb {
  width: 120px;
  height: 90px;
  background: var(--secondary-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.content-body {
  flex: 1;
}

.content-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.content-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

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

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

.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 14px;
  text-decoration: none;
}

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

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

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

/* Article Page */
.article-container {
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

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

.article-intro {
  background: var(--secondary-bg);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
}

/* Related Section */
.related-section {
  margin-top: 40px;
}

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

.related-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
}

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

.related-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

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

/* 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: 16px;
  opacity: 0.3;
}

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

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

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

.error-btn:hover {
  opacity: 0.9;
}

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

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

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

.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);
  text-decoration: none;
  font-size: 14px;
}

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

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

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

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

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav {
    display: none;
  }

  .search-box {
    display: none;
  }

  .main {
    padding: 20px 16px;
  }

  .hero {
    padding: 32px 24px;
  }

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

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

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

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

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

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

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

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