/* ========================================
   露营装备 - 家庭露营指南
   www.jiatingluying.cn
   食谱风格 | 单栏布局
   ======================================== */

/* CSS 变量 */
:root {
  --accent-color: #ff9800;
  --accent-dark: #f57c00;
  --accent-light: #fff3e0;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --bg-primary: #fff;
  --bg-secondary: #f5f5f5;
  --bg-dark: #2c3e50;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --content-width: 800px;
  --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;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ========================================
   布局组件
   ======================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ========================================
   Header 页头
   ======================================== */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  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: 20px;
}

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

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

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

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

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

/* ========================================
   Footer 页脚
   ======================================== */

.footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 60px;
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  font-size: 14px;
}

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

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

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

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

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

/* ========================================
   面包屑
   ======================================== */

.breadcrumb {
  background: var(--bg-primary);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
  color: var(--text-light);
}

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

.breadcrumb li:last-child {
  color: var(--text-light);
}

/* ========================================
   Hero 区域
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-primary) 100%);
  padding: 60px 0;
  text-align: center;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-cta {
  display: inline-flex;
  gap: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

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

/* ========================================
   卡片组件
   ======================================== */

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

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-secondary);
}

.card-body {
  padding: 20px;
}

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

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 15px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: var(--text-light);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ========================================
   内容列表
   ======================================== */

.section {
  padding: 40px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.section-more {
  font-size: 14px;
  color: var(--text-light);
}

.section-more:hover {
  color: var(--accent-color);
}

/* 特色推荐网格 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.featured-grid .card-image {
  height: 180px;
}

/* 内容列表 */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-item {
  display: flex;
  gap: 20px;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

.content-item-image {
  width: 200px;
  height: 140px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.content-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.content-item-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.content-item-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 10px;
}

.content-item-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.content-item-tag {
  background: var(--accent-light);
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* ========================================
   三栏布局
   ======================================== */

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.col-section {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.col-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
  color: var(--text-primary);
}

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

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

.col-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

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

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

/* ========================================
   分类页样式
   ======================================== */

.category-header {
  background: var(--bg-primary);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.category-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.category-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 14px;
  color: var(--text-light);
}

.category-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}

.pagination a {
  background: var(--bg-primary);
  color: var(--text-secondary);
  box-shadow: var(--shadow);
}

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

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

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 15px;
}

/* ========================================
   文章页样式
   ======================================== */

.article-header {
  background: var(--bg-primary);
  padding: 40px 0;
  text-align: center;
}

.article-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta .author {
  color: var(--accent-color);
  font-weight: 500;
}

.article-featured-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 30px 0;
}

.article-content {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 30px 0 15px;
  color: var(--text-primary);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 25px 0 12px;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.article-content ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.article-content ol li {
  list-style: decimal;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* 装备清单样式 */
.equipment-list {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}

.equipment-list h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--accent-dark);
}

.equipment-list ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
}

.equipment-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.equipment-list li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* 步骤说明 */
.step-list {
  counter-reset: step;
  margin: 20px 0;
}

.step-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

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

.step-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  margin: 0;
  font-size: 14px;
}

/* 提示框 */
.tip-box {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 15px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}

.tip-box strong {
  color: #1976d2;
}

/* 相关文章 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

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

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

.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-card h4 {
  padding: 15px;
  font-size: 14px;
  font-weight: 500;
}

/* ========================================
   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: 60px 20px;
}

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

.error-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
}

.error-desc {
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 400px;
}

.error-actions {
  display: flex;
  gap: 15px;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 992px) {
  .featured-grid,
  .three-col-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .article-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .search-box {
    width: 150px;
  }

  .hero {
    padding: 40px 0;
  }

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

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

  .hero-cta {
    flex-direction: column;
  }

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

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

  .content-item-image {
    width: 100%;
    height: 180px;
  }

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

  .article-content {
    padding: 25px;
  }

  .article-title {
    font-size: 22px;
  }

  .equipment-list ul {
    grid-template-columns: 1fr;
  }

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

  .category-stats {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .error-actions {
    flex-direction: column;
  }
}
