/* ========================================
   宠物美容 - 访谈风格样式表
   www.goumeirong.cn
   关键词: 宠物美容用品批发 专业宠物美容工具 宠物洗澡香波推荐
   ======================================== */

/* CSS 变量 */
:root {
  --accent-color: #795548;
  --accent-light: #8d6e63;
  --accent-dark: #5d4037;
  --bg-primary: #faf7f5;
  --bg-secondary: #f5f0ed;
  --text-primary: #3e2723;
  --text-secondary: #6d4c41;
  --text-muted: #8d6e63;
  --border-color: #d7ccc8;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(121, 85, 72, 0.1);
  --shadow-hover: 0 4px 16px rgba(121, 85, 72, 0.15);
  --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-color: 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 20px;
}

/* ========================================
   页头 Header
   ======================================== */
.header {
  background: var(--white);
  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: var(--header-height);
}

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

.logo span {
  color: var(--text-secondary);
  font-weight: 400;
}

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

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

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

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

.search-box button {
  border: none;
  background: var(--accent-color);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.search-box button:hover {
  background: var(--accent-dark);
}

/* ========================================
   面包屑 Breadcrumb
   ======================================== */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}

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

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

.breadcrumb span {
  margin: 0 8px;
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  color: var(--white);
  padding: 60px 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 {
  padding: 48px 0;
}

.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;
}

/* 特色访谈 */
.featured-interview {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

.featured-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.featured-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-color);
}

.featured-content {
  flex: 1;
}

.featured-label {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

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

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

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

/* 嘉宾分类 */
.guest-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.guest-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
}

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

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

.guest-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

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

.interview-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: center;
  transition: all 0.3s;
}

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

.interview-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.interview-info {
  flex: 1;
}

.interview-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}

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

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

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

/* ========================================
   三栏内容区
   ======================================== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.content-column {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.content-column h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  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(--bg-secondary);
}

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

.article-list a {
  color: var(--text-primary);
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

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

/* ========================================
   分类页样式
   ======================================== */
.category-header {
  background: var(--bg-secondary);
  padding: 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

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

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

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

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

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

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

/* ========================================
   文章页样式
   ======================================== */
.article-header {
  text-align: center;
  padding: 48px 0;
}

.article-guest-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-color);
  margin-bottom: 24px;
}

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

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

.article-intro {
  background: var(--bg-secondary);
  padding: 24px 32px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  border-left: 4px solid var(--accent-color);
}

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

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

.qa-question {
  background: var(--accent-color);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius) var(--radius) 0 var(--radius);
  font-weight: 600;
  position: relative;
}

.qa-question::before {
  content: "Q";
  display: inline-block;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  margin-right: 12px;
  font-size: 14px;
}

.qa-answer {
  background: var(--white);
  padding: 24px;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  box-shadow: var(--shadow);
  color: var(--text-secondary);
  line-height: 1.8;
}

.qa-answer::before {
  content: "A";
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--bg-secondary);
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  margin-right: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
  float: left;
}

/* 更多访谈 */
.more-interviews {
  margin-top: 48px;
}

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

.more-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

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

.more-card-content {
  padding: 16px;
}

.more-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.more-card-guest {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   推荐文章区
   ======================================== */
.recommended-section {
  background: var(--bg-secondary);
  padding: 32px 0;
  margin-top: 48px;
}

.recommended-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tag {
  background: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

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

/* ========================================
   页脚 Footer
   ======================================== */
.footer {
  background: var(--accent-dark);
  color: var(--white);
  padding: 48px 0 24px;
  margin-top: 48px;
}

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

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

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

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: var(--white);
  opacity: 0.7;
  font-size: 14px;
}

.footer-column a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

/* ========================================
   404 页面
   ======================================== */
.error-page {
  min-height: calc(100vh - var(--header-height) - 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}

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

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

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

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

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

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

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

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

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

  .search-box {
    order: 2;
  }

  .hero {
    padding: 40px 0;
  }

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

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

  .featured-image {
    margin: 0 auto;
  }

  .guest-categories {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

  .section {
    padding: 32px 0;
  }

  .featured-interview {
    padding: 20px;
  }

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

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