/* 宠物美容 - 访谈问答风格样式 */

:root {
  --accent-color: #795548;
  --primary-color: #8D6E63;
  --secondary-color: #A1887F;
  --light-bg: #F5F5F5;
  --white: #FFFFFF;
  --text-dark: #3E2723;
  --text-muted: #6D4C41;
  --border-color: #D7CCC8;
  --shadow: 0 2px 8px rgba(121, 85, 72, 0.1);
  --shadow-hover: 0 4px 16px rgba(121, 85, 72, 0.15);
}

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

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

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

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

/* 页头 */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-dark);
  font-weight: 500;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--light-bg);
  border-radius: 24px;
  padding: 0.5rem 1rem;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 180px;
  font-size: 0.9rem;
}

.search-box button {
  border: none;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.85rem;
}

/* 主要内容区 */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero区域 */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  border-radius: 16px;
  padding: 3rem;
  color: var(--white);
  margin-bottom: 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

/* 区块标题 */
.section-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

/* 访谈卡片 */
.interview-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}

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

.interview-card h3 {
  color: var(--accent-color);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.interview-card .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.interview-card .meta span {
  margin-right: 1rem;
}

.interview-card p {
  color: var(--text-dark);
  line-height: 1.8;
}

/* 问答对 */
.qa-section {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.qa-pair {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.qa-pair:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.question {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.question-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.question-text {
  flex: 1;
  background: var(--light-bg);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.answer {
  display: flex;
  gap: 1rem;
  margin-left: 3.5rem;
}

.answer-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.answer-text {
  flex: 1;
  background: #FFF8E1;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  color: var(--text-dark);
  line-height: 1.8;
}

/* 人物介绍 */
.person-intro {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

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

.person-info h2 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.person-info .title {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.person-info p {
  color: var(--text-dark);
  line-height: 1.8;
}

/* 标签 */
.topic-tag {
  display: inline-block;
  background: var(--light-bg);
  color: var(--accent-color);
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
}

.topic-tag:hover {
  background: var(--accent-color);
  color: var(--white);
}

/* 时间戳 */
.timestamp {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 分类网格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.category-item {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.category-item h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.category-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 列表 */
.interview-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-item {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}

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

.list-item h4 {
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

.list-item .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.list-item .stats {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
}

/* 面包屑 */
.breadcrumb {
  background: var(--white);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

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

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

.breadcrumb span {
  color: var(--text-dark);
  font-weight: 500;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 500;
  box-shadow: var(--shadow);
}

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

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

/* 三栏布局 */
.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.column-box {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.column-box h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.column-box ul {
  list-style: none;
}

.column-box li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-bg);
}

.column-box li:last-child {
  border-bottom: none;
}

.column-box a {
  color: var(--text-dark);
  display: block;
}

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

/* 两栏布局 */
.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* 相关推荐 */
.related-bar {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.related-bar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.related-bar a {
  color: var(--text-dark);
}

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

/* 小卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.small-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.small-card h5 {
  color: var(--accent-color);
  font-size: 0.95rem;
}

/* 页脚 */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  margin: 0 1rem;
}

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

/* 404页面 */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
}

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

.error-page h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease;
}

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

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

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

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

  .search-box {
    width: 100%;
  }

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

  .hero {
    padding: 2rem 1.5rem;
  }

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

  .category-grid,
  .three-column,
  .card-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .person-intro {
    flex-direction: column;
    text-align: center;
  }

  .person-avatar {
    margin: 0 auto;
  }

  .answer {
    margin-left: 0;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .related-bar ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

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

  .qa-section,
  .interview-card,
  .person-intro {
    padding: 1.25rem;
  }

  .question,
  .answer {
    gap: 0.75rem;
  }

  .question-icon,
  .answer-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
}
