/* 宠物训练 - 访谈风格样式 */
:root {
  --accent-color: #795548;
  --primary-color: #5d4037;
  --secondary-color: #8d6e63;
  --bg-color: #fafafa;
  --card-bg: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --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;
  --max-width: 1200px;
  --gap: 24px;
}

* {
  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(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

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

/* Header */
.header {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

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

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

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

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

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

.search-box button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-light);
}

/* Main Container */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gap);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: var(--radius);
  padding: 60px var(--gap);
  text-align: center;
  color: white;
  margin-bottom: var(--gap);
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

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

/* Section Title */
.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

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

/* Card */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

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

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.card-text {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

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

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

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

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

/* Guest Card */
.guest-card {
  text-align: center;
  padding: 24px;
}

.guest-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 600;
}

.guest-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.guest-title {
  font-size: 13px;
  color: var(--text-light);
}

/* Interview Card */
.interview-card {
  display: flex;
  gap: 20px;
  padding: 20px;
}

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

.interview-content {
  flex: 1;
}

.interview-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.interview-desc {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}

.interview-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-light);
}

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

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

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

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

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

.answer {
  background: var(--card-bg);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  border: 1px solid var(--border-color);
  margin-top: 4px;
}

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

/* Breadcrumb */
.breadcrumb {
  background: var(--card-bg);
  padding: 12px var(--gap);
  border-radius: var(--radius);
  margin-bottom: var(--gap);
  font-size: 14px;
  color: var(--text-light);
}

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

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

.breadcrumb span {
  margin: 0 8px;
}

/* Sidebar Section */
.sidebar-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow);
}

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

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

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

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

.article-list a {
  color: var(--text-color);
  font-size: 14px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.article-list .num {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--bg-color);
  border-radius: 4px;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  margin-right: 8px;
  color: var(--text-light);
}

.article-list .num.hot {
  background: var(--accent-color);
  color: white;
}

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

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  color: var(--text-color);
  font-size: 14px;
  box-shadow: var(--shadow);
}

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

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

/* Guest Profile */
.guest-profile {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow);
}

.guest-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  font-weight: 600;
}

.guest-profile h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.guest-profile-info {
  color: var(--text-light);
  margin-bottom: 16px;
}

.guest-profile-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  line-height: 1.8;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 80px var(--gap);
}

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

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

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

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

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

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

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

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

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

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

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 20px var(--gap) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

/* Layout with Sidebar */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--gap);
}

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

  .content-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

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

  .interview-avatar {
    width: 80px;
    height: 80px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .guest-profile {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 20px;
  }

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

  .error-code {
    font-size: 80px;
  }
}
